A simple Java-based Number Guessing Game where the user tries to guess a randomly generated number between 1 and 100 within a limited number of attempts. The game tracks the player's score and provides an option to play multiple rounds.
- β Random number generation (1-100)
- β Limited attempts per round (default: 5 attempts)
- β Score tracking
- β Option to play multiple rounds
- β Simple and interactive console-based UI
- Programming Language: Java
- IDE: IntelliJ IDEA / Eclipse / VS Code
- Java Version: JDK 8 or later
1οΈβ£ Clone the Repository
- git clone https://github.com/Jigyasa5/number-guessing-game.git
- cd number-guessing-game
2οΈβ£ Compile the Java File
- javac NumberGuessingGame.java
3οΈβ£ Run the Game
- java NumberGuessingGame
- π¦ Number-Guessing-Game
- β£ π NumberGuessingGame.java # Main Java Program
- β£ π README.md # Documentation
- The game generates a random number between 1 and 100.
- The user has 5 attempts to guess the correct number.
- After each guess, the program provides hints ("Too high!" or "Too low!").
- If the user guesses correctly, their score increases.
- The user can choose to play again or exit after each round.
π© Gmail - jigyasavermadelhi@gmail.com
π GitHub - Jigyasa5