コード例 #1
0
 /// <summary>
 /// Constructs the Enigma Machine <see cref="Interpreter"/>.
 /// </summary>
 public Interpreter()
 {
     letterSetConfig = new LetterSetConfigurer();
     plugboardConfig = new PlugboardConfigurer(letterSetConfig.LetterSet);
     rotorConfig     = new RotorConfigurer();
     machineConfig   = new MachineConfigurer(letterSetConfig,
                                             plugboardConfig,
                                             rotorConfig);
     encipherer = new Encipherer();
 }