Skip to content

🎰🎲🔥Guess the Number Game is a fun and interactive Python project that challenges players to guess a random number within a given range. 🎮

Notifications You must be signed in to change notification settings

Krishan-Kant-11/Guess-the-number-game-using-tkinter-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Guess the Number Game

This is a simple Guess the Number game created using the Tkinter library in Python. The game allows two players to compete against each other in guessing a random number within a given range.

Installation

To run the game, you need to have Python installed on your system. Additionally, you need to install the Tkinter library, which is included in the standard Python distribution.

  1. Clone the repository or download the project files.
  2. Open a terminal or command prompt and navigate to the project directory.
  3. Run the following command to start the game:

How to Play

  1. Launch the game and enter the names of the two players.
  2. Specify the range of numbers within which the random number should be generated.
  3. Player 1 will be prompted to enter their guess.
  4. Player 2 will try to guess the number within the optimal number of tries.
  5. The game will provide feedback on each guess, indicating whether it is too high or too low.
  6. The players continue guessing until one of them correctly guesses the number or they reach the maximum number of attempts.
  7. The game will display the outcome and the number of attempts made by the winning player.

Features

  • Simple and intuitive GUI created with Tkinter.
  • Two-player mode for competitive gameplay.
  • Customizable range of numbers for more challenging games.
  • Optimal guessing strategy to minimize the number of attempts required.

Contributing

Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

🎰🎲🔥Guess the Number Game is a fun and interactive Python project that challenges players to guess a random number within a given range. 🎮

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages