Crate game_solver

Source
Expand description

game_solver is a library for solving games.

If you want to read how to properly use this library, the book is a great place to start.

Modules§

disjoint_game
game
Game trait and related types.
loopy
player
stats
transposition
Transposition tables for memoization.

Enums§

GameSolveError

Functions§

move_scores
Utility function to get a list of the move scores of a certain game. Since its evaluating the same game, you can use the same transposition table.
par_move_scores
Parallelized version of move_scores. (faster by a large margin) This requires the rayon feature to be enabled. It uses rayon’s parallel iterators to evaluate the scores of each move in parallel.
par_move_scores_with_hasher
Parallelized version of move_scores. (faster by a large margin) This requires the rayon feature to be enabled. It uses rayon’s parallel iterators to evaluate the scores of each move in parallel.
solve
Solves a game, returning the evaluated score.

Type Aliases§

CollectedMoves