Welcome to the Hangman Game! 🎯 This classic word guessing game challenges you to guess the letters of a fruit's name. It's a fun way to test your vocabulary while having a great time.
-
You will be provided with a random fruit name, with each letter represented by underscores.
-
You have a total of
num_letters + 3
chances to guess the correct word. -
In each turn, you need to guess the individual letters of the fruit's name.
-
If your guess matches a letter in the word, it will be revealed in its correct position.
-
If your guess is incorrect, you will be given a chance to try again.
-
Continue guessing letters until you either complete the word or exhaust your attempts.
-
You win the game if you guess the word correctly. If not, you lose, and the correct word will be revealed.
This Hangman Game code has been intentionally written using loops and if-else statements for simplicity, making it easy to understand and modify.
-
Clone this repository to your local machine using
git clone
. 📁 -
Run the game using the command:
python hangman.py
. ⚙️ -
Follow the on-screen instructions to play the game. 🕹️
If you'd like to contribute to this project, feel free to submit a pull request with your changes. We welcome contributions and improvements! 🚀
For any questions, feedback, or collaboration opportunities, please feel free to reach out:
- Email: vansh.kash05@gmail.com 📧
- LinkedIn: LinkedIn Profile 🔗
Enjoy playing the Hangman Game and test your word-guessing skills! 🎉