This is a simple number guessing game written in C++. The computer generates a random number between 1 and 100, and the player has to guess it. Yay!
-
Open your terminal and navigate to the folder containing the C++ file (
guess_game.cpp
). -
Compile the code:
g++ guess_game.cpp -o guess_game
-
Run the executable:
./guess_game
- Open Command Prompt and navigate to the folder containing the C++ file.
- Compile the code:
g++ guess_game.cpp -o guess_game.exe
- Run the executable:
guess_game.exe
- The game provides hints for each guess ("Too high" or "Too low").
- The
guess_game.cpp
version allows players to play again without restarting the application.
Feel free to contribute to this project by opening issues or submitting pull requests.
This project is licensed under the MIT License.