Skip to content

The repository is based on the Number guessing game. This game is an interactive guessing game in Python. The computer will generate a random number between 1 to 20, and the user has to guess and will exit the game until the user gets the correct number. Based on the user’s guess computer will give various hints if the number is high or low. Wh…

Notifications You must be signed in to change notification settings

hrshita-kshyp/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

NUMBER GUESSING GAME

This Project is based on the Number guessing game This game is an interactive guessing game in Python. This is going to be a simple guessing game where the computer will generate a random number between 1 to 20, and the user have to guess and will exit the game until the user gets the correct number.

Based on the user’s guess computer will give various hints if the number is high or low. When the user guess matches the number computer will print the answer along with the number of attempts.

This game consists of 5 simple steps:

  • The function chooses a random integer between 1 and 20
  • Ask the user to guess what number has been chosen
  • Print accordingly for a guess: “too high”, “too low”, or “just right.”
  • Allow the program only to exit after the user guessed correctly
  • Ask user "Would you want to play again" and user have to answer that in Y or N before exiting

Technologies Used

OS USED Windows 10

  • PyCharm (For Code)
  • GitHub (For Documentation)
  • Bandicam (For making video)

OUTPUT

output ngg

How to Play this game?

Open Git Bash Clone the repository by using

git clone https://github.com/hrshita-kshyp/NGG  

Alternative way

use ngg

Enjoy the game!

Created by : Harshita

About

The repository is based on the Number guessing game. This game is an interactive guessing game in Python. The computer will generate a random number between 1 to 20, and the user has to guess and will exit the game until the user gets the correct number. Based on the user’s guess computer will give various hints if the number is high or low. Wh…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages