Expand description
Game trait and related types.
Enums§
- Game
Score Outcome - Represents an outcome of a game derived by a score and a valid instance of a game.
- Game
State - 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).
- Normal
Impartial - 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.