This is a simple Java program that generates a random number between 1 and 100 and asks the user to guess the number. The program gives hints on whether the user's guess is too high or too low, and uses a binary search algorithm to find a match. The program also keeps track of the previous guesses and prevents the user from guessing the same number twice.
- Clone the repository to your local machine.
- Open the project in your preferred Java IDE (such as Eclipse or IntelliJ).
- Compile and run the
NumberGuessingGame.java
file. - Follow the on-screen instructions to play the game.
- Java 8
- Eclipse IDE
NumberGuessingGame.java
: The main class that contains the game logic.README.md
: This file.