Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 720 Bytes

README.md

File metadata and controls

4 lines (3 loc) · 720 Bytes

PRODIGY_SD_02

The aim is to create a Java Programm in which a user is given K chances to estimate a randomly generated number. The game's rules are as follows: If the guessed number is more than the real number, the program will display the message "guessed number greater than the actual number.

The player has 3 rounds to play. In each round, the game generates a random target number between 1 and 100. The player has up to 10 attempts to guess the correct number in each round. After each guess, the game informs the player if their guess is too high or too low. If the player guesses correctly, they are awarded points based on the number of attempts. The game displays the total score at the end of all rounds.