https://github.com/omanshu209/hangman
A word guessing game made using the Pygame library in Python [It contains a lot of bugs].
https://github.com/omanshu209/hangman
game hangman hangman-game pygame python python3
Last synced: 7 months ago
JSON representation
A word guessing game made using the Pygame library in Python [It contains a lot of bugs].
- Host: GitHub
- URL: https://github.com/omanshu209/hangman
- Owner: Omanshu209
- License: bsd-2-clause
- Created: 2022-11-08T11:10:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T15:52:44.000Z (about 2 years ago)
- Last Synced: 2025-01-30T09:13:30.856Z (9 months ago)
- Topics: game, hangman, hangman-game, pygame, python, python3
- Language: Python
- Homepage:
- Size: 2.06 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HangMan
A word guessing game msde using the Pygame library in Python [It contains a lot of bugs].

## Gameplay
When the game starts, a word is selected at random from a list of words. The player's objective is to guess the word by selecting letters from the alphabet.
The player has 11 attempts to guess the word. For every incorrect guess, a body part of the hangman is drawn on the screen. If the player runs out of attempts before guessing the word, the hangman is fully drawn, and the game is over. Otherwise, the player wins the game by guessing the word before the hangman is fully drawn.
## Features
Randomly selects a word from a list of words.
Allows the player to guess letters from the alphabet.
Displays the body parts of the hangman as the player makes incorrect guesses.
Informs the player whether they won or lost the game.
Plays background music while the game is running.
## Dependencies
The game depends on the following libraries:
> Pygame
## Installation
To play the game, first install Pygame using pip:
```
pip3 install pygame
```
Run the HangManGame_code.py file or the following command in the terminal :
```
python3 HangManGame_code.py
```
## Credits:
This game was developed by **Omanshu**.