function cpuPlay() {
  // The computer should appear to take a second to think of a move.
  // If it takes less that this, add an artifical delay.
  var startTime = Date.now();
  var best = cpuThink(liveField, turn, DIFFICULTY);
  var elapsedTime = Date.now() - startTime;
  timeoutPID = setTimeout(cpuPublish_.bind(null, best.x, best.y), 1000 - elapsedTime);
}
// Have the computer play one move.
Have the computer play one move.
Have the computer play one move .
function cpuPlay() {
  var startTime = Date.now();
  var best = cpuThink(liveField, turn, DIFFICULTY);
  var elapsedTime = Date.now() - startTime;
  timeoutPID = setTimeout(cpuPublish_.bind(null, best.x, best.y), 1000 - elapsedTime);
}
function cpuPlay ( ) { var startTime = Date . now ( ) ; var best = cpuThink ( liveField , turn , DIFFICULTY ) ; var elapsedTime = Date . now ( ) - startTime ; timeoutPID = setTimeout ( cpuPublish_ . bind ( null , best . x , best . y ) , 1000 - elapsedTime ) ; }
Have the computer play one move.
Have the computer play one move .
// The computer should appear to take a second to think of a move. // If it takes less that this, add an artifical delay.