Welcome to the Hangman Game! This is a simple implementation of the classic word-guessing game. The game randomly selects a word from a predefined list, and the player has to guess the word letter by letter.
The Hangman game allows a player to guess a word by suggesting letters within a certain number of guesses. The game provides visual feedback for each incorrect guess, displaying the state of a hangman figure. The player wins if they can guess the word before the hangman figure is fully drawn.
To install and run the Hangman game, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/mstfgul/hangman.git
-
Navigate to the project directory:
cd my_hangman
To start the Hangman game, run the following command in your terminal:
python main.py
---for macOS users---
python3 main.py
'''
## 📂 Project Structure
The project is organized as follows:
hangman
│
└───draft
│ └──draft.py
└───utils
│ └──game.py
| └──__init__.py
└───main.py
- `main.py`: The entry point of the game. It initializes and starts the Hangman game.
- `utils/game.py`: Contains the `Hangman` class that implements the game logic.
- `utils/__init__.py`: An optional file that can include initializations for the utils package.
## ''' 👨💻 Contributors
- Denis
- Nicolas