A modern GUI-based Hangman game built using Python and CustomTkinter.
Features ASCII Art, Score Tracking, External Word Support, and Multi-Round Gameplay!
This project is a complete desktop version of the classic Hangman Game, developed with Python and a modern GUI powered by CustomTkinter.
It includes a sleek user interface, support for external word files, visual hangman drawing with ASCII art, and a built-in scoring system over multiple rounds.
This project serves as both a fun game and a strong portfolio project to demonstrate your skills in GUI development, file handling, and game logic using Python.
- At launch, enter the number of rounds you want to play.
- You’ll be shown blank spaces for a randomly chosen word from
words.txt. - Guess one letter at a time using the input box.
- You have 6 chances to guess the word correctly before the hangman is complete.
- Each correct guess fills in a letter.
- Incorrect guesses will build the ASCII hangman figure.
- After all rounds, your final score is displayed.
| Feature | Technology |
|---|---|
| Language | Python |
| GUI Framework | CustomTkinter |
| HTTP/Word Fetch | requests (optional) |
| Packaging | PyInstaller |
- ✅ Modern GUI using
customtkinter(dark mode) - ✅ ASCII Art Hangman Drawing
- ✅ Multi-Round Mode with scoring system
- ✅ External Word File Support (
words.txt) - ✅ Input Validation and error handling
- ✅ Executable Packaging with
.exesupport
Follow the steps below to set up the game on your computer:
git clone https://github.com/Bikash07-git/Hangman_game.git
cd Hangman_game
2. 📂 Install Dependencies
Install all required Python libraries from the requirements.txt file:
Copy code
pip install -r requirements.txt
pip install customtkinter requests
3. ▶️ Run the Game
python hangman_gui.py