Skip to content

Kartikei-12/Enigma-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enigma Simulator

License: GPL v3 Code Style

Introduction

Virtual machine which simulates famous Enigma machine used by German leader and dictator Adolf Hitler for secure communication.


System Requirements

  • 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.

Installation

With Git On LINUX/UNIX

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.txt

With Git on Windows

git clone https://github.com/Kartikei-12/Enigma-Simulator
cd Enigma-Simulator-master
python3 -m venv venv
./venv/bin/activate
pip install -r requirements.txt

How to use

Simply run python main.py in the project directory which will show help.

Tests

Use python -m unittest discover --verbose to run tests.

Contributer(s)

Kartikei Mittal

<title>Test Report</title>

Test Report

Start Time: 2019-11-03 12:55:43

Duration: 3.07 s

Summary: Total: 11, Pass: 11

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

About

Simple enigma simulator with animated rotors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages