You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is due to setting userClickedPattern = [ ] in the nextSequence() function.
The userClickedPattern.length does not match gamePattern.length in the if statement inside the checkAnswer() function after level 2, thereby triggering the else statement containing the game over screen.
This bug is easily fixed by removing userClickedPattern = [ ] from the nextSequence() function and placing it inside the startOver() function.
The text was updated successfully, but these errors were encountered:
The Simon game does not progress past level 2
This is due to setting
userClickedPattern = [ ]
in thenextSequence()
function.The
userClickedPattern.length
does not matchgamePattern.length
in the if statement inside thecheckAnswer()
function after level 2, thereby triggering the else statement containing the game over screen.This bug is easily fixed by removing
userClickedPattern = [ ]
from thenextSequence()
function and placing it inside thestartOver()
function.The text was updated successfully, but these errors were encountered: