Commit graph

20 commits

Author SHA1 Message Date
9345b4e3f9 testThatTheMachineTurnsOn 2015-07-19 01:30:38 -07:00
b3bc058c1d Do rotors in the right directions, with inverted encoding as needed 2015-07-19 01:30:19 -07:00
799de761dc Add ringPosition 2015-07-19 01:29:55 -07:00
a01af97ffc Wiring init() for Rotors 2015-07-19 01:28:46 -07:00
e586c7e03d inverseEncode 2015-07-19 01:28:18 -07:00
586eacb2b5 Remove dead files 2015-07-19 00:01:35 -07:00
23c9676adc Add a bunch of standard wirings for rotors 2015-07-19 00:01:19 -07:00
9a7353e973 Expand Reflector to valid reflection series 2015-07-19 00:00:59 -07:00
6a2e4fd44e Rename Enigma.swift -> Machine.swift 2015-07-18 23:01:30 -07:00
bb1ba6a1fc Rename Rotor.swift -> Components.swift 2015-07-18 23:00:26 -07:00
b7798d2dcd Clean up components 2015-07-18 22:59:58 -07:00
cb437b7d96 Add Enigma.swift 2015-07-18 22:23:29 -07:00
ed0b46b601 A Plugboard
Along the way refactored some things into a super class called Cryptor
2015-07-18 18:37:58 -07:00
f997e84639 Add rot13 test for Rotor
This test checks the modulo functionality.

This change also refactors how tests are set up. Each test is responsible for creating its own rotor.
2015-07-18 10:47:14 -07:00
ccc1244e0c Remove boilerplate tests 2015-07-18 10:45:34 -07:00
31774fbc07 Basic unit test for unadvanced Rotor 2015-07-18 10:39:53 -07:00
56ae8cc5bb Comment InvalidCharacter error 2015-07-18 10:39:37 -07:00
9f2106ed94 Advance rotor by count positions
Default value of parameter is 1
2015-07-18 10:39:25 -07:00
f4b3982986 Rotor class 2015-07-18 10:23:54 -07:00
b3a98177bb Initial Commit 2015-07-18 08:48:07 -07:00