๐ฏ Hangman A fun and interactive Hangman game built with Python for your terminal. Challenge yourself with different difficulty levels and guess the word before the stick figure is complete!
๐ Features ๐ฎ Play directly in your terminal
๐ Three difficulty levels: easy, medium, hard
๐ง Random word selection from a JSON file
๐จ ASCII art for hangman stages
๐ Tracks repeated guesses and remaining lives
โ Win/loss detection with full word reveal
๐ฅ๏ธ How to Play
-
Clone this repository or download the files: git clone https://github.com/harshvardhan60792/hangman.git cd hangman
-
Make sure Python 3 is installed on your machine.
3)Run the game: python hangman.py 4)Choose a difficulty level and start guessing letters before you run out of lives!
๐ Project Structure hangman/ โโโ hangman.py # Main game logic โโโ wordlist.json # Word bank with difficulty levels โโโ README.md # Project documentation
๐ง Example Gameplay Choose difficulty (easy, medium, hard): medium
Guess a letter: a a is not in the word. You lose a life. Lives left: 5
Guess a letter: p p _ _ _ _ _ ...
๐ Future Improvements Option to guess the full word
Play-again feature
Score tracking system
GUI version with Tkinter or Pygame
๐ License This project is open-source and free to use for educational or personal projects.
Made with ๐ป and โ by harshvardhan60792
Let me know if you want to add badges, a screenshot, or any other section!