A simple Hangman game created using Python's Pygame library, following the Object-Oriented Programming (OOP) paradigm.
This project consists of four specific modules:
buttons.py
: Contains theButtons
class and associated methods.hangman.py
: The main module that drives the Hangman game.man.py
: Contains theMan
class for rendering the Hangman figure.settings.py
: Includes theSettings
class for game configuration.
The game also incorporates media files:
/images
: Directory for image assets./sounds
: Directory for sound assets.
- Provides a hint for every word the user needs to guess.
- Allows the user to select letters by clicking buttons with alphabets.
- Offers an engaging Hangman gaming experience.
- Run
hangman.py
to start the game. - Use the on-screen buttons to select letters and guess the hidden word.
- Try to guess the word before the Hangman figure is completely drawn!
Make sure you have the following dependencies installed:
- Python (>=3.6)
- Pygame (install via
pip install pygame
)
Prashidika Tiwari
Special thanks to the Pygame community and contributors for their awesome library.
Happy gaming!