rotor

package
v0.0.0-...-dea85fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rotor

type Rotor struct {
	Name  string      `json:"Name"`
	Wires *wiring.Set `json:"wires"`
	Pos   int         `json:"pos"`
	Notch int         `json:"notch"`
	Ring  int         `json:"ring"`
}

func Create

func Create(n string, p, r int) *Rotor

func (*Rotor) AtNotch

func (r *Rotor) AtNotch() bool

func (*Rotor) Backward

func (r *Rotor) Backward(c int) int

func (*Rotor) Forward

func (r *Rotor) Forward(c int) int

func (*Rotor) Turnover

func (r *Rotor) Turnover()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL