Function Calls Missing

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub

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 game's main JavaScript file, likely named game.js or script.js. Find the definitions of checkAnswer(), startOver(), and nextSequence(). The issue specifies where to call each function: after button clicks, after correct sequences, and on mistakes. Test by running the game and verifying the functions are triggered.

Written by the indexing model from the issue text.

Description

good first issue invalid

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.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 7xGit/7xGit_Task6

All issues in 7xGit/7xGit_Task6

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.