Welcome to the Number Guessing Game! This is a simple game where the computer selects a random number within a specified range, and the player tries to guess that number within a limited number of attempts.
-
Clone the repository to your local machine using the following command:
-
Navigate to the directory containing the game files:
-
Compile the game by running the appropriate command based on your compiler. For example:
-
Run the compiled executable:
-
Follow the prompts to enter your guess. If your guess is too high or too low, the game will provide feedback to help you narrow down your guesses.
-
Keep guessing until you correctly guess the number or run out of attempts.
-
After the game ends, you will have the option to play again or exit.
- Random number generation within a specified range.
- User input validation to ensure guesses are within the valid range.
- Feedback on each guess to indicate whether it is too high, too low, or correct.
- Option to play multiple rounds of the game.
- C++ compiler (e.g., g++)
- Standard C++ library
number_guessing_game.cpp
: Contains the main game logic.README.md
: Provides instructions and information about the game.
Contributions to improve the game are welcome! If you have any suggestions, bug fixes, or new features to add, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.