Crate chessgen

Source

Structs§

BitBoard
Bit representation of board of 64 pieces.
ChessBoard
ChessBoard representation.
Generator
Chess moves generator. Can generate attacks (BitBoard) and Moves for all Chess pieces. Queen does not have it’s own generator, rather is considered both Rook and Bishop.
Index
BitBoard field Index.
Move
Chess Move definition.
PerfT
PerfT checker.
Zobrist
Zobrist hash generator for ChessBoard. This implementation uses deterministic random generator with a fixed seed, so all instances of Zobrist should be initialized with same unique numbers.

Enums§

Color
Chess piece color.
IllegalMoveError
An error returned when validating Move.
InvalidBitBoardStringError
An error returned when parsing a string into BitBoard.
InvalidChessBoardStringError
An error returned when parsing a string into ChessBoard.
InvalidColorNotationError
An error returned when parsing a string into Color.
InvalidFENStringError
An error returned when parsing a FEN string into ChessBoard.
InvalidIndexNotationError
An error returned when parsing a string into bitboard::Index.
InvalidMoveNotationError
An error returned when parsing move notation string into Move.
InvalidPieceNotationError
An error returned when parsing a string into Piece.
Piece
Chess piece representation. Piece without color information.