This is a Number Guessing Game GUI built with Python's tkinter library. The game generates a random number between 1 and 100, and the player has to guess the number within a limited number of attempts based on the chosen difficulty level.
- Easy: 10 attempts
- Hard: 5 attempts
- A graphical user interface (GUI) for the Number Guessing Game.
- The player can choose between easy and hard difficulty levels.
- The game provides feedback to the player after each guess, indicating whether the guess is too high or too low.
- The game displays the number of attempts remaining.
- When the player correctly guesses the number or runs out of attempts, appropriate messages are displayed.
- The player can restart the game and choose a different difficulty level.
- Python 3.x
- tkinter (comes with Python by default)
- random (comes with Python by default)
- Run the game by executing the
NumberGuessingGameGUI.py
script. - The GUI window will open with the game interface.
- Choose the difficulty level (easy or hard) by selecting the corresponding radio button.
- Click the "Start" button to start the game.
- Enter your guess in the text field and click the "Guess" button.
- After each guess, the game will provide feedback on whether the guess is too high or too low.
- Keep guessing until you correctly guess the number or run out of attempts.
- If you correctly guess the number, a congratulatory message will be displayed.
- If you run out of attempts, the correct number will be revealed, and a message indicating that you've lost will be displayed.
- You can start a new game by clicking the "Start" button again.
- The ASCII art logo is generated using the
art
library. - Created by Deric C. San Andres