Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This is a simple guessing game built using Python's Tkinter library. The game generates a secret number between 1 and 1000, and the player has to guess the number within the given range.

License

Notifications You must be signed in to change notification settings

longle325/guess-the-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Guess The Number Game

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

Features

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

Requirements

  • Python 3.x
  • Tkinter library (usually comes pre-installed with Python)

How to Run

  1. Clone the repository:
git clone https://github.com/your-username/guess-the-number.git

2.Navigate to the project directory:

cd guess-the-number

3.Run the game:

python guess_the_number.py

Usage

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

Screenshots

image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License

Acknowledgements

About

This is a simple guessing game built using Python's Tkinter library. The game generates a secret number between 1 and 1000, and the player has to guess the number within the given range.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages