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