-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Embark on a coding adventure with this interactive C++ task! This beginner-level challenge will introduce you to control statements and user input handling by guiding you to create a number guessing game.
Task:
Your challenge is to develop a C++ program for a number guessing game. Generate a random number between 1 and 100 and allow the user to guess the number. Provide hints (higher, lower) until the user correctly guesses the number.
Instructions:
- Fork this repository to your GitHub account.
- Clone the forked repository to your local machine:
git clone https://github.com/KALIIOWORK/basic_c-_programs.git - Create a new C++ file named
number_guessing_game.cpp. - Implement a function to generate a random number between 1 and 100.
- Implement the main game logic, allowing the user to input their guess and providing appropriate hints.
- Ensure the game displays a victory message when the user guesses the correct number.
- Test your number guessing game with multiple attempts to validate its functionality.
- Compile and run your program to confirm it works as intended.
- Commit your changes and push them to your forked repository.
- Open a pull request with your changes.
Note:
This task will strengthen your understanding of control statements and user interaction in C++. Building an interactive game is a fun way to practice your skills. Enjoy coding and happy gaming! 🎮✨
Reactions are currently unavailable