Function tic_tac_toe::minimax

source ·
pub fn minimax(board: Board, depth: u8) -> (i8, u8)
Expand description

Run minimax on a board.

This is negamax. The returned score is relative to the current player.

Returns

Returns a tuple. The first element is the score. The second is the move.