Skip to content

Latest commit

 

History

History
116 lines (78 loc) · 1.97 KB

File metadata and controls

116 lines (78 loc) · 1.97 KB

🎮 Hangman Game (Python)

A simple multiplayer Hangman game built using Python. Players take turns guessing letters of a randomly selected word. Correct guesses earn points, while incorrect guesses reduce the number of remaining chances.


📌 Features

  • 👥 Multiplayer gameplay
  • 🎲 Random word selection
  • ✅ Input validation
  • 🏆 Player score tracking
  • 🔤 Letter-by-letter guessing
  • 🎯 Win/Lose conditions
  • 🔄 Turn-based gameplay

🛠️ Technologies Used

  • Python 3
  • Random Module

📂 Project Structure

Hangman-Game/
│── hangman.py
└── README.md

▶️ How to Run

1. Clone the repository

git clone https://github.com/shrutiganbote0426/Hangman-Game.git

2. Open the project folder

cd Hangman-Game

3. Run the program

python hangman.py

🎮 How to Play

  1. Enter the number of players.
  2. Enter each player's name.
  3. A random word is selected.
  4. Players take turns guessing one letter at a time.
  5. Correct guesses reveal letters and increase the player's score.
  6. Incorrect guesses reduce the remaining chances.
  7. The player who completes the word wins.

📸 Sample Output

Want to play Hangman?

Enter the number of players: 2

Enter player 1 name: Alice
Enter player 2 name: Bob

Alice's turn:
_ _ _ _ _
Enter your guess: a
Correct guess!

Bob's turn:
a _ _ _ _
Enter your guess: e
Incorrect guess!

🚀 Future Improvements

  • Larger word dictionary
  • Difficulty levels (Easy, Medium, Hard)
  • Hangman ASCII art
  • Single-player mode
  • Play Again option
  • Timer for each turn
  • Categories (Animals, Fruits, Countries, etc.)
  • Save high scores

👩‍💻 Author

Shruti Ganbote

Computer Engineering Student | Data Science Enthusiast


📄 License

This project is created for educational and learning purposes.