Skip to content

Anurag050/CodSoft-Task-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

The Number Game required me to use my knowledge of Java Programming to create a game that generates a random number and allows the user to guess it within a certain number of tries. I had to incorporate various concepts such as loops, conditional statements, and user input to make the game functional and user-friendly.

Here are the instructions on which my project is based on:-

  1. Generate a random number within a specified range, such as 1 to 100.
  2. Prompt the user to enter their guess for the generated number.
  3. Compare the user's guess with the generated number and provide feedback on whether the guessis correct, too high, or too low.
  4. Repeat steps 2 and 3 until the user guesses the correct number.
  5. Limit the number of attempts the user has to guess the number.
  6. Add the option for multiple rounds, allowing the user to play again.
  7. Display the user's score, which can be based on the number of attempts taken or rounds won.