Skip to content

About

A colorful, kid-friendly Hangman Game built with Python and Tkinter. Guess fruit names, earn points for correct letters, avoid the hangman, and enjoy a fun, interactive GUI designed with bright colors and playful elements.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game

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.


Features

  • 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

Concepts Demonstrated

  • 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)

Project Structure

CodeAlpha_Hangman/ │ ├── hangman.py # Main game file ├── README.md # Project documentation └── LICENSE # License file (MIT)


How to Run

  1. Clone the repository:

    git clone https://github.com/<your-username>/CodeAlpha_Hangman.git
    
  2. Navigate into the project folder: cd CodeAlpha_Hangman

  3. Run the game: python hangman.py

    Navigate into the project folder:

bash cd CodeAlpha_Hangman Run the game:

Screenshots

Start Game

image

Win Game

image

Lose Game

image

License

This project is licensed under the MIT License — see the LICENSE file for details.


Future Improvements

Add sound effects for correct/wrong guesses Add background images or gradients for more immersive graphics Track high scores across rounds

About

A colorful, kid-friendly Hangman Game built with Python and Tkinter. Guess fruit names, earn points for correct letters, avoid the hangman, and enjoy a fun, interactive GUI designed with bright colors and playful elements.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages