function startNextTurn() {
  if (liveField.isExterminated()) {
    showStart();
    return;
  }
  turn = 1 - turn;
  if (players[turn]) {
    // Human turn.
    setHoverClass(true);
    inputMode = inputModes.PLAY;
  } else {
    // Computer turn.
    setHoverClass(false);
    if (inputMode !== inputModes.START) {
      inputMode = inputModes.BUSY;
    }
    cpuPlay();
  }
}
// Previous turn complete, start the other player's turn.
Previous turn complete, start the other player's turn.
Previous turn complete start the other player ' s turn .
function startNextTurn() {
  if (liveField.isExterminated()) {
    showStart();
    return;
  }
  turn = 1 - turn;
  if (players[turn]) {
    setHoverClass(true);
    inputMode = inputModes.PLAY;
  } else {
    setHoverClass(false);
    if (inputMode !== inputModes.START) {
      inputMode = inputModes.BUSY;
    }
    cpuPlay();
  }
}
function startNextTurn ( ) { if ( liveField . isExterminated ( ) ) { showStart ( ) ; return ; } turn = 1 - turn ; if ( players [ turn ] ) { setHoverClass ( true ) ; inputMode = inputModes . PLAY ; } else { setHoverClass ( false ) ; if ( inputMode !== inputModes . START ) { inputMode = inputModes . BUSY ; } cpuPlay ( ) ; } }
Previous turn complete, start the other player's turn.
Previous turn complete start the other player ' s turn .
// Human turn. // Computer turn.