Crate rchess

Source

Structs§

BitBoard
The BitBoard struct stores a series of squares on a chess board.
BoardBuilder
The BoardBuilder struct helps construct a ChessBoard.
ChessBoard
The ChessBoard struct represents a chess board.
ChessGame
The ChessGame struct represents a game of chess.
MoveCreationError
The MoveCreationError struct signifies that there was an error while crating a move.
MoveGen
The MoveGen struct generates moves for a ChessBoard.
Piece
The Piece struct represents a chess piece.
ZobristHash
The ZobristHash is the hash of a ChessBoard.

Enums§

BoardBuilderError
The BoardBuilderError enum is the error type produced by the BoardBuilder.
BuilderConversionError
The BuilderConversionError enum is the error type for converting a BoardBuilder to a ChessBoard.
CastleSide
The CastleSide enum represents the side a king can castle.
Color
The Color enum represents the color of a chess piece.
Direction
The Direction enum represents a direction on the chess board.
DrawReason
The DrawReason enum represents the thing that caused a draw to occur.
FenFormatError
The FenFormatError enum is the error type for a fen’s formatting.
FenLoadError
The FenLoadError enum is the error type for loading a fen position.
File
The File enum represents a file of the chessboard.
GameResult
The GameResult enum represents the result of a chess game.
Move
The Move enum represents a move on a chess board.
PieceType
The PieceType enum represents a type of chess piece.
Rank
The Rank enum represents a rank of the chessboard.
Square
The Square enum represents a square of the chess board.
StrMoveCreationError
The StrMoveCreationError enum is the error type produced when creating moves.

Constants§

FILES
All the files in order.
RANKS
All the ranks in order.
SQUARES
All the squares in order.