The console game entirely in Python. Guess the word in 1-player and 2-player mode. In 1-player mode computer choose the word for you to guess. In 2-player mode one of the players chooses word for the other.
- The game logic is encapsulated in Hangcat class
- Guess words for 1-player mode are read from a text file
- A picture of a cat is being drawn after loosing a chance
- Player has 10 chances to guess
- Player can't enter the same letter again, they will be prompted to choose another letter
- Player can't enter non-letter as a guess
- If guess is more than 1 character long, first letter is taken as a guess
Run
pip install termcolor
in terminal (cmd) to install termcolor library be able run the script.
You might also need to run
pip install converters
Make sure Python is installed on the machine. In terminal (cmd) run:
python hangcat.py