Skip to content

This repository contains a simple Java program that allows users to play a number guessing game.

Notifications You must be signed in to change notification settings

mpfdev/NumberGuessingGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing Game

This is a simple Java program that generates a random number between 1 and 100 and asks the user to guess the number. The program gives hints on whether the user's guess is too high or too low, and uses a binary search algorithm to find a match. The program also keeps track of the previous guesses and prevents the user from guessing the same number twice.

How to Run

  1. Clone the repository to your local machine.
  2. Open the project in your preferred Java IDE (such as Eclipse or IntelliJ).
  3. Compile and run the NumberGuessingGame.java file.
  4. Follow the on-screen instructions to play the game.

Technologies Used

  • Java 8
  • Eclipse IDE

Project Structure

  • NumberGuessingGame.java: The main class that contains the game logic.
  • README.md: This file.

About

This repository contains a simple Java program that allows users to play a number guessing game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages