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.pyandimages.pyfiles in the same directory as the script file. Thewords.pyfile should contain a functionchoose_wordthat returns a random word from a predefined list. Theimages.pyfile should contain a listIMAGESof hangman images representing the stages of the game. - Run the script using the following command:
python script.py