Commits

Cédric Bonhomme committed 99e3d03

Dislay the actual state of the rotor.

  • Participants
  • Parent commits 722b04b

Comments (0)

Files changed (1)

File pyenigma/rotor.py

         Name: %s
         Model: %s
         Date: %s
-        Wiring: %s""" % (self.name, self.model, self.date, self.wiring)
+        Wiring: %s
+        State: %s""" % (self.name, self.model, self.date, self.wiring, self.state)
 
 # 1924 Rotors
 ROTOR_IC = Rotor(wiring="DMTWSILRUYQNKFEJCAZBPGXOHV", name="IC", model="Commercial Enigma A, B", date="1924")
 ROTOR_Reflector_C = Reflector(wiring="FVPJIAOYEDRZXWGCTKUQSBNMHL", name="Reflector C")
 ROTOR_Reflector_B_Thin = Reflector(wiring="ENKQAUYWJICOPBLMDXZVFTHRGS", name="Reflector_B_Thin", model="M4 R1 (M3 + Thin)", date="1940")
 ROTOR_Reflector_C_Thin = Reflector(wiring="RDOBJNTKVEHMLFCWZAXGYIPSUQ", name="Reflector_C_Thin", model="M4 R1 (M3 + Thin)", date="1940")
-ROTOR_ETW = Rotor(wiring="ABCDEFGHIJKLMNOPQRSTUVWXYZ", name="ETW", model="Enigma 1")
+ROTOR_ETW = Rotor(wiring="ABCDEFGHIJKLMNOPQRSTUVWXYZ", name="ETW", model="Enigma 1")