This script implements the classic Hangman game where the user tries to guess a secret word by suggesting letters within a certain number of guesses.
- Python 3.x
- Clone the repository or download the script files.
- Make sure you have Python 3 installed on your system.
- Place the
words.py
andimages.py
files in the same directory as the script file. Thewords.py
file should contain a functionchoose_word
that returns a random word from a predefined list. Theimages.py
file should contain a listIMAGES
of hangman images representing the stages of the game. - Run the script using the following command:
python script.py