Iohorizontictactoeaix Link

It may be:

  • Can the AI block when human has two in a row in row 0?
  • Does the AI always take its own win in row 1 if available?
  • Does the AI force a draw from any human starting move?

function minimax(board, depth, isMax) if (checkWin(board, 'O')) return 10 - depth; if (checkWin(board, 'X')) return depth - 10; if (isDraw(board)) return 0; iohorizontictactoeaix

What is IOHorizonticTacToeAIx?

Part 7: Optimizing AI Performance

iohorizontictactoeaix