Skip to content

This is a simple Java console application for a number guessing game. The game randomly generates a number between 1 and 100, and the player has a limited number of attempts to guess the correct number. The game provides feedback to the player after each guess, indicating whether the guessed number is higher or lower than the target number.

Notifications You must be signed in to change notification settings

shruti-mishraa/Guess-the-number-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Number Guessing Game : This is a simple Java console application for a number guessing game. The game randomly generates a number between 1 and 100, and the player has a limited number of attempts to guess the correct number. The game provides feedback to the player after each guess, indicating whether the guessed number is higher or lower than the target number.

Features: Randomly generated target number between 1 and 100. Limited number of attempts for the player to guess the correct number. Clear and informative feedback messages for the player. Input validation to handle non-integer inputs.

How to Play:

  1. Clone the repository to your local machine.
  2. Compile the Java source code (app.java).
  3. Run the compiled Java class file (app.class).
  4. Follow the prompts to guess the target number.
  5. Have fun playing the number guessing game and see how quickly you can guess the correct number!

Author: Shruti Mishra.

About

This is a simple Java console application for a number guessing game. The game randomly generates a number between 1 and 100, and the player has a limited number of attempts to guess the correct number. The game provides feedback to the player after each guess, indicating whether the guessed number is higher or lower than the target number.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages