Skip to content

ImanGholamii/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman

Mini Project 02 _ Mini Game

Welcome to Hangman! This is a classic word guessing game where you try to guess the secret word before you run out of attempts.

📝 How to Play

  1. Run the Python script hangman.py.
  2. You will be prompted to guess a letter.
  3. If the letter is in the word, it will be revealed. If not, you lose one attempt.
  4. Keep guessing letters until you guess the word correctly or run out of attempts.

💡 Features

  • 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.

🚀 Getting Started

  1. Clone this repository to your local machine.
  2. Ensure you have Python installed.
  3. Run the script hangman.py in your terminal or IDE.
  4. Start guessing and have fun!

🛠️ Usage

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.

Releases

No releases published

Packages

No packages published

Languages