Skip to content

Hamadabcn/my_number_guess_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

my_number_guess.mp4

my_number_guess

Number Guessing Game

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.

How to Play:

  1. Start the Game: Once the game starts, a random number between 1 and 100 will be generated.
  2. 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.
  1. Get Feedback: The game will tell you if your guess is too high, too low, or correct.
  2. Keep Trying: Continue guessing until you find the correct number.
  3. Track Your Score: The game keeps track of the number of attempts you made. Try to improve your score with each game!
  4. Play Again: After guessing the correct number, you can click "Play Again" to start a new game.

Features

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

Installation

To run this game on your local machine, follow the steps below:

  1. Clone the Repository: git clone https: https://github.com/Hamadabcn/my_number_guess_game.git
  2. Navigate to the Project Directory: cd number-guessing-game
  3. Install Dependencies: Ensure you have Python and Pygame installed. If not, you can install Pygame using pip: pip install pygame
  4. Run the Game: python main.py

Usage

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.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to fork the repository and submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages