Skip to content

A classic Hangman word-guessing game made using Python and Pygame. It contains name of movies in words.txt file

License

Notifications You must be signed in to change notification settings

Learnermeet/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game in Python

A classic Hangman game built using Python and Pygame, featuring clickable letters, a quit confirmation popup, and the ability to take screenshots. This project is perfect for beginners learning Python and Pygame, or anyone who loves classic word games.


🎮 Features

  • Clickable letter buttons to guess letters
  • Visual hangman with 6 incorrect guesses
  • Quit confirmation popup to prevent accidental exits
  • Take screenshots of the game by pressing S
  • Fullscreen support for an immersive experience
  • Random word selection from words.txt

🖼 Screenshots

Screenshot 1 Screenshot 2


▶️ How to Play

  1. Run the Hangman game: python hagman.py

2.Controls

Click letters on screen to guess. Press S to take a screenshot (screenshots saved in screenshots/). Press ESC to quit (confirmation popup appears). The game pauses automatically if the window loses focus.


📦 Dependencies

Python 3.x

Pygame — install with:

pip install pygame


❗ Common Tips

Make sure the assets/ folder contains all hangman images (hangman0.jpg … hangman6.jpg) for correct rendering. If you rename files, update the file paths in the code accordingly.

Made with ❤️ using Python and Pygame

About

A classic Hangman word-guessing game made using Python and Pygame. It contains name of movies in words.txt file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages