Function Calls Missing
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
Title:
Function Calls for Game Logic are Missing
Description:
The Simon Game's core functionality depends on several functions, but currently, these functions are not called anywhere in the code. As a result, the game doesn't work as intended.
Expected Behavior:
The game should respond to user interactions by checking their inputs, advancing the game, and playing the correct sequences.
Missing Function Calls:
checkAnswer(): This function should be called every time the user clicks a button to validate their input.
startOver(): This function should be called when the user loses the game to reset the game state.
nextSequence(): The next sequence should be generated after a correct answer is given.
Suggested Fix:
Add the appropriate function calls in the game logic at relevant points:
Call checkAnswer() after each button press.
Call nextSequence() when the user correctly completes the current sequence.
Call startOver() when the user makes a mistake.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。