No Feedback for Incorrect Input
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- game-dev
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100