function init() {
  fixLinks();

  var m = document.cookie.match(/difficulty=([012])/);
  var difficultyIndex = m ? m[1] : 0;
  // Starting level for easy, normal and hard modes.
  START_LEVEL = [1, 4, 8][difficultyIndex];
  document.getElementById('difficulty').selectedIndex = difficultyIndex;
  registerOptions('difficulty');

  initSvgGrid();

  document.addEventListener('keydown', keyDown);
  document.addEventListener('keyup', keyUp);
  document.addEventListener('keypress', keyPress);
  document.getElementById('start').addEventListener('click', startGame);
  showStart();
}
// Initialize the board and start the game.
Initialize the board and start the game.
Initialize the board and start the game .
function init() {
  fixLinks();
  var m = document.cookie.match(/difficulty=([012])/);
  var difficultyIndex = m ? m[1] : 0;
  START_LEVEL = [1, 4, 8][difficultyIndex];
  document.getElementById('difficulty').selectedIndex = difficultyIndex;
  registerOptions('difficulty');
  initSvgGrid();
  document.addEventListener('keydown', keyDown);
  document.addEventListener('keyup', keyUp);
  document.addEventListener('keypress', keyPress);
  document.getElementById('start').addEventListener('click', startGame);
  showStart();
}
function init ( ) { fixLinks ( ) ; var m = document . cookie . match ( / difficulty=([012]) / ) ; var difficultyIndex = m ? m [ 1 ] : 0 ; START_LEVEL = [ 1 , 4 , 8 ] [ difficultyIndex ] ; document . getElementById ( 'difficulty' ) . selectedIndex = difficultyIndex ; registerOptions ( 'difficulty' ) ; initSvgGrid ( ) ; document . addEventListener ( 'keydown' , keyDown ) ; document . addEventListener ( 'keyup' , keyUp ) ; document . addEventListener ( 'keypress' , keyPress ) ; document . getElementById ( 'start' ) . addEventListener ( 'click' , startGame ) ; showStart ( ) ; }
Initialize the board and start the game.
Initialize the board and start the game .
// Starting level for easy, normal and hard modes.