7xGit / 7xGit/7xGit_Task6

Function Calls Missing

Ouverte Adaptée aux débutants
#3 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
good first issue invalid
Langage dominant
JavaScript
Étoiles
1
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
game-dev
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
75/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.