Welcome to the classic Hangman game, now with a fun twist! Guess the hidden word one letter at a time before the hangman is fully drawn. Can you save the day? ๐ต๏ธโโ๏ธ
- ๐ฒ Random word selection
- โ Tracks correct and incorrect guesses
- ๐ผ๏ธ ASCII art hangman visual
- ๐ Simple and clean terminal interface
- Python 3.x ๐
-
Clone this repository:
git clone https://github.com/batmanrizz/hangman-game.git cd hangman-game
-
(Optional) Setup a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
python hangman.py
- The game selects a random word. Your goal is to guess it, one letter at a time.
- Each wrong guess draws another part of the hangman. You lose if the drawing is completed! ๐ฑ
- Win by revealing the word before your guesses run out.
Welcome to Hangman! ๐น๏ธ
_ _ _ _ _
Guess a letter: e
Correct! ๐
_ e _ _ _
Guess a letter: a
Wrong! โ You have 5 attempts left.
- Add more words to
words.txt
or the list inhangman.py
๐ - Change the ASCII art for a new hangman look ๐จ
- Add hints, scoring, or even a GUI for extra fun!
Contributions are welcome! Fork, clone, and submit a pull request ๐
This project is licensed under the MIT License.
Enjoy playing Hangman! ๐ต๏ธโโ๏ธโจ