A simple guessing game
Challenge yourself with a number guessing game! The computer secretly picks a number between 0 and 1,000,000. Your job is to guess it! Each time you enter a number, you'll get a clue: higher if your guess is too big, or lower if it's too small. Keep guessing until you crack the code, and the game will reveal how many attempts it took you to win.
- The game picks a random secret number between 0 and 1,000,000.
- Players can guess the number by entering values in the GUI.
- Feedback is provided after each guess, indicating if the guess is higher or lower than the secret number.
- Once the player guesses correctly, the game displays the number of attempts it took to win.
- The GUI is built using Java Swing components.
Java Runtime Environment (JRE) 8 or later.
- Download the Guessing Game.jar file.
- Double-click the .jar file to run the game.
- Enter your guess in the text field and click the "Guess" button.
- The game will provide feedback on your guess.
- Keep guessing until you find the secret number!