Welcome to the Number Guessing Game โ a simple and fun Java console game where you try to guess a randomly generated number based on your chosen difficulty. The game provides helpful hints to guide you toward the correct number.
-
๐ฏ Choose a difficulty:
- ๐ข Easy โ Range 1 to 10
- ๐ก Medium โ Range 1 to 100
- ๐ด Hard โ Range 1 to 1000
-
๐น Start guessing the number.
-
๐ก Youโll get hints if your guess is too high or too low.
-
๐ Enter
101at any time to exit the game.
- โ Three difficulty levels
- โ Random number generation
- โ Hint system (greater/lower)
- โ Exit option
- โ Clean and beginner-friendly code
To run this game, you need:
- โ Java Development Kit (JDK) version 8 or higher
- โ A code editor or IDE (recommended: VS Code or IntelliJ IDEA)
- โ A terminal or command prompt to compile and run the program
- Download the JDK and install it.
- Verify the installation:
java -version javac -version