Hangman is a classic word-guessing game where players try to guess a hidden word one letter at a time. If they guess incorrectly too many times, they lose!
This version of Hangman is built using Tkinter, providing a graphical user interface (GUI) instead of a text-based console.
- ✅ GUI-based Hangman using Tkinter
- ✅ Dark mode UI with smooth fonts & animations
- ✅ ASCII art for Hangman stages inside the GUI
- ✅ Automatic win/loss detection
- ✅ Restart button to play again
- ✅ Handles repeated guesses & incorrect inputs gracefully
git clone https://github.com/yourusername/Hangman-Game.git
cd Hangman-Game
pip install tk
(Tkinter comes pre-installed with Python, but this ensures it’s available.)
python main.py
Hangman-Game/
|── main.py # GUI-based Hangman game (Tkinter)
|── README.md # Project documentation
- Run
main.py
. - A random word will be chosen, displayed as
_ _ _ _ _
(hidden format). - Guess a letter:
- Correct guess → The letter is revealed.
- Incorrect guess → You lose a life, and the Hangman ASCII art updates.
- Keep guessing until:
- 🎉 You win! (all letters are guessed)
- 💀 You lose! (all lives are gone)
- 🔹 Add difficulty levels (easy, medium, hard)
- 🔹 Allow users to enter custom word lists
- 🔹 Implement sound effects for correct/wrong guesses
- 🔹 Improve animations & UI effects
- 🔹 Add a leaderboard with scores
This project is open-source and available under the MIT License.
- Syed Mohammed Hussain - GitHub Profile