A colorful, kid‑friendly Hangman game built with Python and Tkinter.
This project was created as part of the CodeAlpha Internship to demonstrate fundamental programming concepts while delivering a fun, modern UI experience.
- Random word selection from a list of 15 fruits
- Score counter (+10 per correct letter, +50 for full word, –5 per wrong guess)
- Colorful, cheerful UI with emojis and playful fonts
- Hangman drawing that updates with each wrong guess
- Replay button to start a new round instantly
- Buttons disabled after win/lose (only replay enabled)
- Kid‑friendly design: big alphabet buttons, bright colors, simple layout
- Randomization (
random.choice) - Loops (
while, event loops in Tkinter) - Conditional logic (
if-else) - Strings & Lists (word state, guesses)
- Functions & Classes (organized game logic)
- GUI programming (Tkinter widgets, events, canvas drawing)
CodeAlpha_Hangman/ │ ├── hangman.py # Main game file ├── README.md # Project documentation └── LICENSE # License file (MIT)
-
Clone the repository:
git clone https://github.com/<your-username>/CodeAlpha_Hangman.git
-
Navigate into the project folder: cd CodeAlpha_Hangman
-
Run the game: python hangman.py
Navigate into the project folder:
bash cd CodeAlpha_Hangman Run the game:
This project is licensed under the MIT License — see the LICENSE file for details.
Add sound effects for correct/wrong guesses Add background images or gradients for more immersive graphics Track high scores across rounds