Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ 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

  1. Clone this repository or download the files: git clone https://github.com/harshvardhan60792/hangman.git cd hangman

  2. 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!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages