Skip to content

Commit

Permalink
Js file modified
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsuthar00 committed Jun 15, 2024
1 parent f96807a commit 532776a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ $(document).keydown(function(){
}
});

$(document).click(function(){
if (!started){
$("#level-title").text("level " + level);
nextSequence();
started = true;
}
});

function checkAnswer(currentLevel){

if (gamePattern[currentLevel] === userClickedPattern[currentLevel]){
Expand Down

0 comments on commit 532776a

Please sign in to comment.