-
Start terminal/command prompt
-
Run:
python hangman_game.py -
Player has to select 1 of 3 difficulty modes:
- Easy
- Medium
- Difficult
-
These modes help determine below 2 game parameters:
- Number of incorrect attempts
- Length of chosen word
| Modes | Number of turns | Length of chosen word |
|---|---|---|
| EASY | 3 times the number of unique letters in chosen word | 6 |
| MEDIUM | 2 times the number of unique letters in chosen word | 8 |
| DIFFICULT | Equal to the number of unique letters in chosen word | 10 |
hangman_game.py: This is the code that runs the entire game.hangman_stages.py: This is simple to store the hangman appearance as the game progress, i.e. as the number of turns remaing decreases.easy.py,medium.py,difficult.py: These files store the list of words according to word length permitted by the game difficulty respectively.

