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')); }
public Machine(string plugSwaps, string rotorShifts, string rotorSelection) { plugBoard.setPlugs(plugSwaps); rotor = new Rotors(rotorShifts, rotorSelection); rotorKey = rotorShifts; }