function randomizeBoard() {
  gameWonState.started = true;
  document.body.classList.remove('winning-animation');

  let count = 100;
  while (count > 0) {
    automaticMove();
    --count;
  }
  drawGame();
  document.getElementById('randomize-button').style.display = 'none';
  document.getElementById('next-button').style.display = 'none';
}
// We can't use a randomised configuration, as it only results in a solvable board 50% of the time.
We can't use a randomised configuration, as it only results in a solvable board 50% of the time.
We can ' t use a randomised configuration as it only results in a solvable board 50% of the time .
function randomizeBoard() {
  gameWonState.started = true;
  document.body.classList.remove('winning-animation');
  let count = 100;
  while (count > 0) {
    automaticMove();
    --count;
  }
  drawGame();
  document.getElementById('randomize-button').style.display = 'none';
  document.getElementById('next-button').style.display = 'none';
}
function randomizeBoard ( ) { gameWonState . started = true ; document . body . classList . remove ( 'winning-animation' ) ; let count = 100 ; while ( count > 0 ) { automaticMove ( ) ; -- count ; } drawGame ( ) ; document . getElementById ( 'randomize-button' ) . style . display = 'none' ; document . getElementById ( 'next-button' ) . style . display = 'none' ; }
We can't use a randomised configuration, as it only results in a solvable board 50% of the time.
We can ' t use a randomised configuration as it only results in a solvable board 50% of the time .