Iohorizontictactoeaix
Potential concerns with the unusual name:
Traditional Tic-Tac-Toe is a "solved" game. If both players play perfectly, it always ends in a draw. However, when you introduce the on a "Horizontic" (infinite or large-scale) plane, the permutations become nearly infinite. iohorizontictactoeaix
if (isMaximizing) let best = -Infinity; for (let move of emptyCells(board)) makeMove(move, 'O'); let score = minimax(board, depth + 1, false); undoMove(move); best = Math.max(score, best); for (let move of emptyCells(board)) makeMove(move