my_number_guess.mp4
This is a graphical number guessing game built using Python and Pygame. The game challenges you to guess a randomly selected number between 1 and 100 in the fewest attempts possible.
- Start the Game: Once the game starts, a random number between 1 and 100 will be generated.
- Make a Guess:
- You can type your guess directly into the input box and press Enter.
- Alternatively, you can use the on-screen Numpad and click the "Check" button.
- Get Feedback: The game will tell you if your guess is too high, too low, or correct.
- Keep Trying: Continue guessing until you find the correct number.
- Track Your Score: The game keeps track of the number of attempts you made. Try to improve your score with each game!
- Play Again: After guessing the correct number, you can click "Play Again" to start a new game.
- Graphical Interface: An intuitive and visually appealing interface using Pygame.
- User Input Options: Type your guess or use the on-screen Numpad for input.
- Real-Time Feedback: The game provides instant feedback on your guesses.
- High Score Tracking: The game records and displays your best score.
- Gradient Background: A smooth gradient background enhances the visual experience.
To run this game on your local machine, follow the steps below:
- Clone the Repository: git clone https: https://github.com/Hamadabcn/my_number_guess_game.git
- Navigate to the Project Directory: cd number-guessing-game
- Install Dependencies: Ensure you have Python and Pygame installed. If not, you can install Pygame using pip: pip install pygame
- Run the Game: python main.py
After running the game, simply follow the on-screen instructions to start guessing the number. Use the input box or Numpad to enter your guesses and try to find the correct number with the fewest attempts possible.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to fork the repository and submit a pull request.