Skip to content

A simple Python game where the computer selects a random number between 1 and 10, and the player has to guess it. The game provides feedback on whether the guess is too high or too low, and gives the option to play again.

Notifications You must be signed in to change notification settings

Abrar-Shahriar-04/Random-Number-Guesser-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Random Number Guesser

Random Number Guesser is a fun and simple Python-based game where the computer randomly selects a number between 1 and 10, and the player has to guess it. The game provides feedback after each guess, telling the player whether their guess is too high or too low, until they correctly guess the number. Once the correct guess is made, the player is given an option to play the game again.

Features:

  • Random number selection between 1 and 10
  • Tells the user if their guess is too high or too low
  • Keeps asking until the correct guess is made
  • Asks the player if they want to play again after finishing
  • Handles invalid inputs smoothly (like typing words instead of numbers)

How to Play:

  1. The game starts by asking the player to guess a number between 1 and 10.
  2. The player makes a guess, and the game tells them if the guess is too high, too low, or correct.
  3. If the guess is incorrect, the player can continue guessing until they get it right.
  4. After the player guesses correctly, the game will ask if they want to play again. If they answer with "yes" or "y", the game restarts. If they answer with "no" or "n", the game ends.

Technologies Used:

  • Python 3.x

About

A simple Python game where the computer selects a random number between 1 and 10, and the player has to guess it. The game provides feedback on whether the guess is too high or too low, and gives the option to play again.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages