Fill Loop Condition
- Dominant language
- C++
- Stars
- 1
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
The condition for the while loop that controls the guessing attempts is incomplete. Fill in the condition so that the loop runs while the number of attempts is less than the maximum allowed attempts and the player has not guessed correctly.
Acceptance Criteria:
The loop should continue until either the player guesses correctly or they reach the maximum number of attempts.
Contributor guide
No contributing guide indexed for this repository
Research direction
Look for the while loop controlling guessing attempts in the main game logic file (likely main.cpp or a similarly named file). The condition should check both attempts < maxAttempts and that the player's guess is not equal to the secret number. Run the program to verify the loop stops correctly on a correct guess or after max attempts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 80/100