This is a simple guessing game built using Python's Tkinter libray and object-oriented programming style. The game generates a secret number between 1 and 1000, and the player has to guess the number within the given range (or you can choose a number and someone else will guess).
- You can either be the player or the one who picks the numbers
- Allows the player to input a number to guess.
- Provides feedback on whether the guess is too high, too low, or correct.
- Validates user input to ensure it falls within the valid range.
- Offers an option to generate a random secret number or manually input one.
- Python 3.x
- Tkinter library (usually comes pre-installed with Python)
- Clone the repository:
git clone https://github.com/your-username/guess-the-number.git2.Navigate to the project directory:
cd guess-the-number3.Run the game:
python guess_the_number.py- When prompted, input a number between 1 and 1000 and click "Check".
- If the guess is incorrect, the game will provide feedback on whether the guess is too high or too low.
- If the guess is correct, a congratulatory message will be displayed, and the player can choose to play again or exit.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License
- This project was inspired by Gulsanober Saba.