game_solver

Module game

Source
Expand description

Game trait and related types.

Enums§

GameScoreOutcome
Represents an outcome of a game derived by a score and a valid instance of a game.
GameState
Represents a move outcome

Traits§

Game
Represents a combinatorial game.
Misere
Marks a game as being ‘misere’ (a game has the ‘misere play’ convention).
Normal
Marks a game as being ‘normal’ (a game has the ‘normal play’ convention).
NormalImpartial
Normal impartial games have the special property of being splittable: i.e., the disjunctive sum of two games is equal to another normal-play game.

Functions§

score_to_outcome
Utility function to convert a score to the amount of moves to a win or loss, or a tie.
upper_bound
Utility function to get the upper score bound of a game.