A fun and interactive command-line Hangman game built with Python. Includes difficulty levels, hints, visual ASCII art, and score tracking across rounds.
- โ Three Difficulty Levels: Easy, Medium, and Hard
- ๐ง Hints: Each word comes with a helpful clue
- ๐จ ASCII Hangman Drawing: Visual progress as you guess
- ๐ Score Tracking: Win (+10), Lose (-5), tracked across multiple rounds
- ๐ Leaderboard: Top 5 high scores saved in leaderboard.txt
- ๐ Play Again Option: Keep playing until you want to quit
- Python 3.6 or higher
- No external libraries required
- Clone this repository or copy the Python file:
git clone https://github.com/kumudasrip/hangman-game.git
cd hangman-game- Run the game:
python hangman.py- Enter your name and start.
- Choose a difficulty:
Easy,Medium, orHard. - A word will be chosen randomly, and a hint will be displayed.
- Guess one letter at a time.
- You lose an attempt for each wrong guess.
- The game ends when you either:
- Guess the word correctly โ
- Use up all your attempts ๐
- Your score updates after each round.
- At the end, your final score is saved in leaderboard.txt and top 5 scores are displayed.