function playClueSequence() {
  guessCounter = 0;
  clueHoldTime = clueHoldTime / 2; //playback decreases to make the game harder
  if (clueHoldTime <= 150) {
    clueHoldTime = 100; // making this the min hold time or else it will go too fast the user wont
  }
  let delay = nextClueWaitTime; //set delay to initial wait time
  for (let i = 0; i <= progress; i++) {
    // for each clue that is revealed so far
    console.log("play single clue: " + pattern[i] + " in " + delay + "ms");
    setTimeout(playSingleClue, delay, pattern[i]); // set a timeout to play that clue
    delay += clueHoldTime;
    delay += cluePauseTime;
  }
}
//of the player while also keeping track of the times clues are played and held
of the player while also keeping track of the times clues are played and held
of the player while also keeping track of the times clues are played and held
function playClueSequence() {
  guessCounter = 0;
  clueHoldTime = clueHoldTime / 2; 
  if (clueHoldTime <= 150) {
    clueHoldTime = 100; 
  }
  let delay = nextClueWaitTime; 
  for (let i = 0; i <= progress; i++) {
    console.log("play single clue: " + pattern[i] + " in " + delay + "ms");
    setTimeout(playSingleClue, delay, pattern[i]); 
    delay += clueHoldTime;
    delay += cluePauseTime;
  }
}
function playClueSequence ( ) { guessCounter = 0 ; clueHoldTime = clueHoldTime / 2 ; if ( clueHoldTime <= 150 ) { clueHoldTime = 100 ; } let delay = nextClueWaitTime ; for ( let i = 0 ; i <= progress ; i ++ ) { console . log ( "play single clue: " + pattern [ i ] + " in " + delay + "ms" ) ; setTimeout ( playSingleClue , delay , pattern [ i ] ) ; delay += clueHoldTime ; delay += cluePauseTime ; } }
of the player while also keeping track of the times clues are played and held
of the player while also keeping track of the times clues are played and held
//playback decreases to make the game harder // making this the min hold time or else it will go too fast the user wont //set delay to initial wait time // for each clue that is revealed so far // set a timeout to play that clue