This is a simple implementation of the classic Hangman game in Python with a graphical user interface (GUI) using Tkinter. Players guess a secret word letter by letter, with a limited number of attempts.
- Run the
hangman_gui.py
script in your Python environment. - A graphical window will pop up with the Hangman game interface.
- The game will choose a random word from a predefined list.
- You need to guess the word by entering one letter at a time in the input field provided.
- Click the "Guess" button or press Enter to submit your guess.
- The game will display your progress, the letters you've guessed correctly, and the attempts left.
- If you guess all the letters correctly before running out of attempts, you win!
- If you run out of attempts before guessing the word, you lose.
Enjoy the game and have fun!
- Python 3.x
To play the Hangman game, simply execute the hangman_gui.py
file using your Python environment.