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.
- Random number generation within a specified range
- User input handling
- Feedback on guesses (too high, too low, or correct)
- Number of attempts tracking
- Programming Language: Java
- IDE: [Your preferred IDE, e.g., IntelliJ IDEA, Eclipse]
- Build Tool: [If any, e.g., Maven, Gradle]
To run the Guessing Number Game on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/shivankushsingh09/Guessing-Number-Game.git
-
Navigate to the project directory:
cd guessing-number-game
-
Compile the Java source code:
javac GuessingNumberGame.java
-
Run the program:
java GuessingNumberGame
- Run the program.
- The game will prompt you to enter your guess.
- After entering your guess, you will receive feedback indicating whether your guess is too high, too low, or correct.
- Continue guessing until you find the correct number.
- The game will display the number of attempts made to guess the correct number.
- GuessingNumberGame.java: Main file containing the game logic and user interface.
Contributions to the Guessing Number Game project are welcome. If you have suggestions for improvements or bug fixes, please follow these steps:
-
Fork the repository.
-
Create a new branch
git checkout -b feature/your-feature
-
Commit your changes
git commit -am 'Add some feature'
-
Push to the branch
git push origin feature/your-feature
-
Open a pull request.
This project is licensed under the MIT License.
- Inspiration from w3schools.
- Thanks to the Java programming community for providing resources and support.
For any questions or feedback, please reach out to:
- Name: Shivankush Singh
- Email: mygithub09@gmail.com
- GitHub: https://github.com/shivankushsingh09