[][src]Crate myopic_board

Modules

parse

Structs

Discards
MutBoardImpl

Enums

Move
MoveComputeType
Termination

Represents the possible ways a game can be terminated, we only consider a game to be terminated when a side has no legal moves to make or if a special draw condition is met like position repetition. If a side has no legal moves and is currently in check then the game is lost, if it is not in check then the game is drawn.

Traits

MutBoard

Trait representing a mutable state of play of a chess game which can be evolved/devolved via (applicable) Move instances, compute the set of legal moves and queried for a variety of properties.

Functions

fen_position

Create a mutable board state from a fen string if it is valid.

start_position

Create a mutable board state representing the start of a standard chess game.