Skip to content

r-ishabh12/NumberGuessingGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUMBER GUESSING GAME

A simple number guessing game where the player tries to guess a randomly generated number within a certain range. The game provides feedback on whether the guess is too high, too low, or correct, and tracks the number of attempts.

Screenshot

Number Guess CLI Screenshot

How it works?

  • The computer randomly picks number between 1 to 100
  • The player is prompted to guess the number
  • After each guess, the game gives you hint that the correct number is "less than" or "greater than" guess

Installation

1.Clone the repository

git clone https://github.com/r-ishabh12/NumberGuessingGaame.git
cd NumberGuessingGame

2.**Compile the JAVA file

javac Main.java

3.Run the game

java Main

Make sure to check the java is insatlled using java -version


Acknowledgement

About

Number Guessing Game (CLI)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages