A modern Hangman game built with Python, featuring a clean CustomTkinter interface, theme switching (Light/Dark/Color themes), and custom images for hangman states.
✅ Classic Hangman gameplay
✅ Word list file support (load words from hangman_words.txt)
✅ Light & Dark mode toggle
✅ Theme customization (blue, green, dark-blue)
✅ Custom hangman images for each wrong guess
✅ Keyboard UI + Physical keyboard input
✅ Restart & Back-to-Menu options
✅ Win/Lose popups with word reveal
✅ Rules popup for new players
Hangman/ │── Hangman(Gui).py # Main game script │── hangman_words.txt # Word list file │── HANGMAN.jpg # Title image (Light mode) │── HANGMAN_d.jpg # Title image (Dark mode) │── hangman0.png # Hangman images (0 to 7 wrong guesses) │── hangman1.png │── hangman2.png │── ... │── hangman7.png │── hangman_win.png # Winning screen image
Make sure you have these installed before running:
pip install customtkinter pillow
Clone or download the repository.
Place all images (.jpg and .png) inside the Hangman folder.
Add your word list in hangman_words.txt (one word per line).
Run the game:
python Hangman(Gui).py
Click letters on the on-screen keyboard
Or type letters directly on your physical keyboard
Back button → return to main menu
Restart button → restart with a new word
Exit button → quit the game
Made BY Vaibhav-coder-king