Skip to main content

Crate chess

Crate chess 

Source
Expand description

§Chess

Attempt at building an ergonomic, idiomatic, and fast foundation for Chess programming in Rust.

Modules§

board
finite
formats
game
id
position
Chess positions
square

Macros§

finite_for
Loops over all values of a generated finite set in const contexts.
finite_set
Defines a small finite enum, its table type, and optionally its record type.

Structs§

Board
Validated location of pieces on the board.
Game
A game of chess, including variations and annotations.
Id
Type of globally unique identifiers.
Move
Move that a player can make.
Piece
A chess piece, for instance a white pawn or a black queen.
Position
Chess position, including the board, turn, rights, and counters.
Scharnagl
Reinhard Scharnagl’s enumeration of all 960 starting positions.

Enums§

Node
A handle to a node in the tree of variations of a game of chess.
Player
Black and white
Role
A chess piece role, such as pawn, knight, bishop, etc.
Side
A side of the board to castle toward.
Square
The squares of a chess board.