No Feedback for Incorrect Input
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- game-dev
Research direction
Look for the checkAnswer() function in the codebase, likely in a main game logic file. Add an else block to handle incorrect guesses, providing feedback like changing header text to 'Game Over' and calling a startOver() function to reset the game state. Test by making an incorrect guess and verifying the game resets with appropriate feedback.
Written by the indexing model from the issue text.
Description
Title:
No Feedback or Reset Mechanism for Incorrect Input
Description:
Currently, when the user makes an incorrect guess, no feedback is provided, and the game doesn't reset. This makes it impossible for the user to understand when they've lost.
Expected Behavior:
The game should alert the user when they've made an incorrect selection and reset the game to start over.
Missing Logic:
An else block should be added to the checkAnswer() function to handle cases where the user's input does not match the correct pattern.
Suggested Fix:
Add an else block in checkAnswer() to provide feedback to the user (such as changing the text in the header to "Game Over" or adding animations).
Call startOver() inside the else block to reset the game.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 7xGit/7xGit_Task6
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
7xGit/7xGit_Task6#5 ·
-
good first issue invalid
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
7xGit/7xGit_Task6#3 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
7xGit/7xGit_Task6#2 ·
-
Level changes bug Openbug good first issue
Difficulty 3/5 1-2 days Newbie friendliness 35/100
7xGit/7xGit_Task6#1 ·
All issues in 7xGit/7xGit_Task6
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·