Commits

Cédric Bonhomme  committed ab03d83

- Updated documentation of the Enigma class;
- Reorder arguments (rotors).

  • Participants
  • Parent commits 1579e4a

Comments (0)

Files changed (1)

File pyenigma/enigma.py

 class Enigma(object):
     """
     Represents an Enigma machine.
+    Initializes an Enigma machine with these arguments:
+    - ref: reflector;
+    - r1, r2, r3: rotors;
+    - key: initial state of rotors;
+    - plus: plugboard settings.
     """
-    def __init__(self, ref, r3, r2, r1, key="AAA", plugs="", ringset=1):
+    def __init__(self, ref, r1, r2, r3, key="AAA", plugs="", ringset=1):
         """
         Initialization of the Enigma machine.
         """