Skip to content

Jigyasa5/Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Number-Guessing-Game

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.

πŸ“Œ Features

  • βœ… 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

πŸ› οΈ Technologies Used

  • Programming Language: Java
  • IDE: IntelliJ IDEA / Eclipse / VS Code
  • Java Version: JDK 8 or later

πŸš€ How to Run the Project

1️⃣ Clone the Repository

2️⃣ Compile the Java File

  • javac NumberGuessingGame.java

3️⃣ Run the Game

  • java NumberGuessingGame

πŸ“‚ Project Structure

  • πŸ“¦ Number-Guessing-Game
  • ┣ πŸ“œ NumberGuessingGame.java # Main Java Program
  • ┣ πŸ“œ README.md # Documentation

πŸ“œ Code Explanation

  • 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.

πŸ“§ Contact

πŸ“© Gmail - jigyasavermadelhi@gmail.com
🌐 GitHub - Jigyasa5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages