Module minimax::interface

source ·
Expand description

The common structures and traits.

Enums

  • The result of playing a game until it finishes.

Constants

  • An absolutely wonderful outcome, e.g. a win.
  • An absolutely disastrous outcome, e.g. a loss.

Traits

  • Evaluates a game’s positions.
  • Defines the rules for a two-player, perfect-knowledge game.
  • Defines a method of choosing a move for the current player.

Type Aliases

  • 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.