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.
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.
- Clone the repository or download the project files.
- Open a terminal or command prompt and navigate to the project directory.
- Run the following command to start the game:
- Launch the game and enter the names of the two players.
- Specify the range of numbers within which the random number should be generated.
- Player 1 will be prompted to enter their guess.
- Player 2 will try to guess the number within the optimal number of tries.
- The game will provide feedback on each guess, indicating whether it is too high or too low.
- The players continue guessing until one of them correctly guesses the number or they reach the maximum number of attempts.
- The game will display the outcome and the number of attempts made by the winning player.
- 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.
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.