[][src]Module pleco::board

This module contains Board, the object representing the current state of a chessboard. All modifications to the current state of the board is done through this object, as well as gathering information about the current state of the board.

This module also contains structures used by the board, such as CastlingRights for determining castling rights throughout a game. Other utilities that may be of use are PieceLocations, which maps squares on a chessboard to pieces and players.

Modules

board_state

Contains the BoardState structure for the Board. Helps to preserve the previous state of the board without needing to re-compute information.

castle_rights

Module for the Castling structure, which helps provide an easy way for the Board to keep track of the various castling rights available for each player.

fen

Contains various FEN (Forsyth–Edwards Notation) functions and constants.

movegen

Module for generating moves from a Board. Allow for generating Legal and Pseudo-Legal moves of various types.

perft

perft, or Performance Test, Move Path Enumeration, tests the correctness of move-generation.

piece_locations

Contains the PieceLocations structure that maps from squares of a board to a player / piece at that square.

Structs

Board

Represents a Chessboard through a Board.

RandBoard

Random Board generator. Creates either one or many random boards with optional parameters.

Enums

BoardError

Errors concerning the current Board position.

FenBuildError

Represents possible Errors encountered while building a Board from a fen string.