game_solver

Function solve

source
pub fn solve<T: Game<Player = impl TwoPlayer> + Eq + Hash>(
    game: &T,
    transposition_table: &mut dyn TranspositionTable<T>,
) -> Result<isize, T::MoveError>
Expand description

Solves a game, returning the evaluated score.

The score of a position is defined by the best possible end result for the player whose turn it is. In 2 player games, if a score > 0, then the player whose turn it is has a winning strategy. If a score < 0, then the player whose turn it is has a losing strategy. Else, the game is a draw (score = 0).