Virtual machine which simulates famous Enigma machine used by German leader and dictator Adolf Hitler for secure communication.
- Python 3
- Pip usually pre-installed with python, check with
pip3 --version. - Python module PyGame installable via pip.
- (OPTIONAL) Git required if you want to clone or fork repository.
git clone https://github.com/Kartikei-12/Enigma-Simulator
cd Enigma-Simulator-master
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txtgit clone https://github.com/Kartikei-12/Enigma-Simulator
cd Enigma-Simulator-master
python3 -m venv venv
./venv/bin/activate
pip install -r requirements.txtSimply run python main.py in the project directory which will show help.
Use python -m unittest discover --verbose to run tests.
| test_animation.AnimationTest | Status | |
|---|---|---|
| test_animation | Pass | |
| Total: 1, Pass: 1 -- Duration: 3.02 s | ||
| test_enigma.EnigmaTest | Status | |
|---|---|---|
| test_complete_process | Pass | |
| test_load_config | Pass | |
| test_process_char | Pass | |
| test_rotate_rotor | Pass | |
| Total: 4, Pass: 4 -- Duration: 42 ms | ||
| test_rotor.RotorTest | Status | |
|---|---|---|
| test___getitem__ | Pass | |
| test_generate_rotor_board | Pass | |
| test_generate_rotor_board_direct | Pass | |
| test_generate_rotor_board_non_reflection | Pass | |
| test_move | Pass | |
| test_rotate | Pass | |
| Total: 6, Pass: 6 -- Duration: 2 ms | ||