run

fun run(board: TicTacToeSolver.Board, ply: Double = Double.POSITIVE_INFINITY): Int

Play using the Alpha-Beta Pruning algorithm. Include depth in the evaluation function and a depth limit.

Parameters

board

the Tic Tac Toe board to play on

ply

the maximum depth