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