Ejemplo n.º 1
0
        public void testPlugBoard()
        {
            PlugBoard p = new PlugBoard();

            p.setPlugs("RS TU VW YZ LX MK JI HG EF QP CD ON AB");

            Console.WriteLine(p.swapLetter('R'));
            Console.WriteLine(p.swapLetter('S'));
        }
Ejemplo n.º 2
0
 public Machine(string plugSwaps, string rotorShifts, string rotorSelection)
 {
     plugBoard.setPlugs(plugSwaps);
     rotor    = new Rotors(rotorShifts, rotorSelection);
     rotorKey = rotorShifts;
 }