/Hangman_GUI

A modern Hangman game built with Python, Tkinter & CustomTkinter featuring dark/light mode, themes, and custom hangman images.

Primary LanguagePythonMIT LicenseMIT

🎮 Hangman Game (Tkinter + CustomTkinter)

A modern Hangman game built with Python, featuring a clean CustomTkinter interface, theme switching (Light/Dark/Color themes), and custom images for hangman states.

📌 Features

✅ 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

📂 Project Structure

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

⚡ Requirements

Make sure you have these installed before running:

pip install customtkinter pillow

▶️ How to Run

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

🎨 Controls

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

🖼️ Screenshots

image image image image image image image

🙋‍♂️ Author

Made BY Vaibhav-coder-king