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
key
position
Chess positions
puzzle
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 tree and its game-level data.
Key
Type of chess lookup keys.
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§

Evaluation
Player
Black and white
PositionSlot
The allocated slot of a position within a game.
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.