async function runSequence() {
  randomSequence();
  // activates class change to play current sequence array
  for (let i = 0; i < sequence.length; i++) {
    await delay(200);
    $('.' + sequence[i]).addClass('button-press');
    makeSound(sequence[i]);
    await delay(600);
    $('.' + sequence[i]).removeClass('button-press');
  }
  userTurn();
}
// Runs computer sequence for animation and sound, each call adds to sequence length
Runs computer sequence for animation and sound, each call adds to sequence length
Runs computer sequence for animation and sound each call adds to sequence length
async function runSequence() {
  randomSequence();
  for (let i = 0; i < sequence.length; i++) {
    await delay(200);
    $('.' + sequence[i]).addClass('button-press');
    makeSound(sequence[i]);
    await delay(600);
    $('.' + sequence[i]).removeClass('button-press');
  }
  userTurn();
}
async function runSequence ( ) { randomSequence ( ) ; for ( let i = 0 ; i < sequence . length ; i ++ ) { await delay ( 200 ) ; $ ( '.' + sequence [ i ] ) . addClass ( 'button-press' ) ; makeSound ( sequence [ i ] ) ; await delay ( 600 ) ; $ ( '.' + sequence [ i ] ) . removeClass ( 'button-press' ) ; } userTurn ( ) ; }
Runs computer sequence for animation and sound, each call adds to sequence length
Runs computer sequence for animation and sound each call adds to sequence length
// activates class change to play current sequence array