- Run the program.
- The program will generate a random number between 1 and 100.
- Enter your guess and press Enter.
- The program will provide feedback if your guess is too high or too low.
- Keep guessing until you correctly guess the number.
- The program will display the number of tries it took to guess the correct number.
- Enjoy the game!
To run the game on your local machine, follow these steps:
- Ensure you have a C++ compiler installed.
- Clone this repository or download the source code file.
- Compile the source code using your C++ compiler.
- Run the compiled executable.
- Play the game!
Enter your guess (1-100): 50
Too high! Try again.
Enter your guess (1-100): 25
Too low! Try again.
Enter your guess (1-100): 37
Congratulations! You guessed the number in 3 tries.
Contributions to the project are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.