NumGuess is a simple number guessing game written in Python using the tkinter library.
The goal is to guess a randomly generated number within a given range. The program provides feedback such as "Too low", "Too big", or "Correct" after each guess.
- Graphical user interface built with
tkinter - Random number generation between 1 and 250
- Keeps track of the number of guesses
- "New Game" button to reset the game
- Supports pressing Enter to submit a guess
- Python 3.8 or higher
tkinter(included with most standard Python installations)
-
Clone the repository:
git clone https://github.com/yourusername/NumGuess.git cd NumGuess -
Run the program:
py main.py-
Enter a number between 1 and 250 in the input field.
-
Press Enter or click Try to submit your guess.
-
Read the feedback message:
-
“Too low!” if your guess is smaller than the secret number.
-
“Too big!” if your guess is larger than the secret number.
-
“Correct!” if you found the number.