Module minimax::interface [−][src]
The common structures and traits.
Enums
Winner | The result of playing a game until it finishes. |
Constants
BEST_EVAL | An absolutely wonderful outcome, e.g. a win. |
WORST_EVAL | An absolutely disastrous outcome, e.g. a loss. |
Traits
Evaluator | Evaluates a game's positions. |
Game | Defines the rules for a two-player, perfect-knowledge game. |
Move | Defines how a move affects the game state. |
Strategy | Defines a method of choosing a move for the current player. |
Zobrist | An optional trait for game state types to support hashing. |
Type Definitions
Evaluation | An assessment of a game state from the perspective of the player whose turn it is to play. Higher values mean a more favorable state. A draw is defined as a score of zero. |