Skip to content

michaelmawick/NumGuess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

NumGuess

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.


Features

  • 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

Requirements

  • Python 3.8 or higher
  • tkinter (included with most standard Python installations)

Installation and Usage

  1. Clone the repository:

    git clone https://github.com/yourusername/NumGuess.git
    cd NumGuess
  2. Run the program:

py main.py

How to Play

  1. Enter a number between 1 and 250 in the input field.

  2. Press Enter or click Try to submit your guess.

  3. Read the feedback message:

  4. “Too low!” if your guess is smaller than the secret number.

  5. “Too big!” if your guess is larger than the secret number.

  6. “Correct!” if you found the number.

Click New Game to start again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages