41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
|
Working:
|
||
|
multiple rotor wheels (5, choose 3) (8 for naval)
|
||
|
different wireing in each wheel
|
||
|
plug board link 2 letters (2 way link). 10 links, 20 letters used up
|
||
|
Fixed, non rotating wheel for relaying back through rotors
|
||
|
Letters could not be mapped to themselves! (Biggest flaw!)
|
||
|
|
||
|
|
||
|
Options:
|
||
|
Random generated rotors (use random seed)
|
||
|
rotors from given seed
|
||
|
rotors from actual setup (if available)
|
||
|
|
||
|
plug board from random seed or given seed
|
||
|
option to skip plug board
|
||
|
|
||
|
relay from random seed or given seed, or actual setup
|
||
|
|
||
|
option to output text character by character (no enter required!)
|
||
|
option to convert string (output letter individually)
|
||
|
option to read / write string to file.
|
||
|
option to read all setup from file.
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Process:
|
||
|
Keyboard : Plug Board : Rotor 1 : Rotor 2 : Rotor 3 : Relay : Rotor 3 : Rotor 2 : Rotor 1 : Plug Board : Key lights
|
||
|
|
||
|
|
||
|
Code Steps:
|
||
|
Calculate rotor codes (store to dictionary) (create all 5)
|
||
|
select 3 random rotors
|
||
|
generate plug board values (store to dictionary)
|
||
|
|
||
|
Get input char
|
||
|
pass through plug board
|
||
|
rotor 1 2 3
|
||
|
pass through relay
|
||
|
rotor 3 2 1
|
||
|
pass through plug board
|