function turnClick(square) {
  if (typeof origBoard[square.target.id] == "number") {
    turn(square.target.id, huPlayer);
    if (!checkTie()) {
      turn(bestSpot(), aiPlayer);
    }
  }
}
// TODO: Ask why turnClick is not pass in a parameter, but the below still recognize
Ask why turnClick is not pass in a parameter, but the below still recognize
Ask why turnClick is not pass in a parameter but the below still recognize
function turnClick(square) {
  if (typeof origBoard[square.target.id] == "number") {
    turn(square.target.id, huPlayer);
    if (!checkTie()) {
      turn(bestSpot(), aiPlayer);
    }
  }
}
function turnClick ( square ) { if ( typeof origBoard [ square . target . id ] == "number" ) { turn ( square . target . id , huPlayer ) ; if ( ! checkTie ( ) ) { turn ( bestSpot ( ) , aiPlayer ) ; } } }
TODO: Ask why turnClick is not pass in a parameter, but the below still recognize
TODO : Ask why turnClick is not pass in a parameter but the below still recognize