Skip to content

Latest commit

 

History

History
101 lines (64 loc) · 2.43 KB

README.md

File metadata and controls

101 lines (64 loc) · 2.43 KB

Guessing Number Game

Overview

The Guessing Number Game is a simple console-based game developed in Java where the player tries to guess a randomly generated number within a specified range. The game provides feedback on each guess and continues until the player guesses the correct number.

Features

  • Random number generation within a specified range
  • User input handling
  • Feedback on guesses (too high, too low, or correct)
  • Number of attempts tracking

Technologies Used

  • Programming Language: Java
  • IDE: [Your preferred IDE, e.g., IntelliJ IDEA, Eclipse]
  • Build Tool: [If any, e.g., Maven, Gradle]

Installation

To run the Guessing Number Game on your local machine, follow these steps:

  1. Clone the repository:

        git clone https://github.com/shivankushsingh09/Guessing-Number-Game.git
  2. Navigate to the project directory:

        cd guessing-number-game
  3. Compile the Java source code:

       javac GuessingNumberGame.java
  4. Run the program:

        java GuessingNumberGame

Usage

  1. Run the program.
  2. The game will prompt you to enter your guess.
  3. After entering your guess, you will receive feedback indicating whether your guess is too high, too low, or correct.
  4. Continue guessing until you find the correct number.
  5. The game will display the number of attempts made to guess the correct number.

Code Structure

  • GuessingNumberGame.java: Main file containing the game logic and user interface.

Contributing

Contributions to the Guessing Number Game project are welcome. If you have suggestions for improvements or bug fixes, please follow these steps:

  1. Fork the repository.

  2. Create a new branch

        git checkout -b feature/your-feature
  3. Commit your changes

        git commit -am 'Add some feature'
  4. Push to the branch

         git push origin feature/your-feature
  5. Open a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

  • Inspiration from w3schools.
  • Thanks to the Java programming community for providing resources and support.

Contact

For any questions or feedback, please reach out to: