Add MultiBombe

Runs the Bombe multiple times with different rotor specs.
Edits the core BombeMachine a little to add the ability to switch rotors
without rewiring everything
This commit is contained in:
s2224834 2019-01-10 18:04:02 +00:00
parent 8c757d1e03
commit 3eb44708e5
7 changed files with 411 additions and 13 deletions

View file

@ -171,6 +171,7 @@ class PairMapBase {
constructor(pairs, name="PairMapBase") {
// I've chosen to make whitespace significant here to make a) code and
// b) inputs easier to read
this.pairs = pairs;
this.map = {};
if (pairs === "") {
return;