Welcome to Hangman! This is a classic word guessing game where you try to guess the secret word before you run out of attempts.
- Run the Python script
hangman.py
. - You will be prompted to guess a letter.
- If the letter is in the word, it will be revealed. If not, you lose one attempt.
- Keep guessing letters until you guess the word correctly or run out of attempts.
- Random Word Selection: The game selects a random word from a predefined list of words.
- Interactive Gameplay: Enjoy an engaging user experience with clear prompts and feedback.
- Customizable Difficulty: Adjust the difficulty by changing the number of attempts allowed.
- Clone this repository to your local machine.
- Ensure you have Python installed.
- Run the script
hangman.py
in your terminal or IDE. - Start guessing and have fun!
python hangman.py
🎨 Customization Feel free to customize the game by modifying the list of words, adjusting the number of attempts, or adding new features.
🤝 Contribution Contributions are welcome! Whether it's bug fixes, feature enhancements, or UI improvements, feel free to submit a pull request.
📄 License This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgements Special thanks to the Python community for their support and inspiration.