X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=enigma.py;h=cb57f7a26fd33a43bbddabac7bb9b9093ed3bf66;hb=6889a439393b5de11b205f96afd0e8eb6e2175d8;hp=72f480792170725c0b59462781d338961c534510;hpb=628c83045960e5d94ea55fe90437b465a860d4c7;p=cipher-tools.git diff --git a/enigma.py b/enigma.py index 72f4807..cb57f7a 100644 --- a/enigma.py +++ b/enigma.py @@ -1003,6 +1003,9 @@ class Enigma(object): ################################## # # Bombe ################################## +# +# Good explanation of [how the bombe worked](http://www.ellsbury.com/enigmabombe.htm) by Graham Ellsbury +# Signal = collections.namedtuple('Signal', ['bank', 'wire']) Connection = collections.namedtuple('Connection', ['banks', 'scrambler']) @@ -1046,7 +1049,7 @@ class Scrambler(object): self.wheel3.set_position(wheel3_pos) -class Bombe(object): +class Bombe(object): def __init__(self, wheel1_spec, wheel2_spec, wheel3_spec, reflector_spec, menu=None, start_signal=None, use_diagonal_board=True, verify_plugboard=True):