This is a simple number guessing game implemented in Java. The program generates a random number between a specified range, and the player has to guess the correct number within a limited number of attempts.
1. Clone or download the repository to your local machine.2. Make sure you have Java Development Kit (JDK) installed.
3. Open the project in your preferred Java IDE.
4. Compile and run the NumberGuessingGame.java file.
1. The program will generate a random number between a minimum and maximum value, inclusive of both.
2. The player will be prompted to enter their guess.
3. The program will provide feedback on the guess:
----If the guess is correct, the player wins.
----If the guess is higher than the target number, the program will display "Too high."
----If the guess is lower than the target number, the program will display "Too low."
4. The player has a limited number of attempts to guess the correct number.
5. If the player fails to guess correctly within the specified number of attempts, they lose the game.
6. After each guess, the program will display the number of remaining attempts.
7. The player can choose to play again or exit the game.