The Number Guessing Game GUI is a simple and interactive game built using Java Swing.
The program randomly selects a number, and the player has to guess it based on feedback such as “Too High”, “Too Low”, or “Correct!”.
It is designed to demonstrate:
- Event-driven programming using Java Swing.
- Random number generation.
- GUI components such as buttons, labels, and text fields.
- Real-time feedback and game restart functionality.
- 🧩 Random number generation within a defined range.
- 💬 Dynamic feedback based on player’s guess.
- 🔁 “Play Again” button to restart the game.
- 🎨 Simple and clean Java Swing interface.
- ✅ Fully tested and beginner-friendly.
- Language: Java
- Libraries:
javax.swing,java.awt - Paradigm: Object-Oriented & Event-Driven
- Open your terminal or IDE (like IntelliJ, VS Code, or Eclipse).
- Navigate to the directory containing the file:
cd Java/MiniGames