Module pleco::board [] [src]

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 castling_rights for determining castling rights throughout a game. Other utilities that may be of use are eval, which takes a board and evaluates it, and PGN, which parses a PGN File into a board.

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.

eval

Module for evaluating the strength of a current position.

fen

Contains both a fen validation function, alongside many pre-made fens.

movegen

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

piece_locations

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

Structs

Board

Represents a Chessboard through a Board.

MAGIC_HELPER

Statically initialized lookup tables created when first ran. Nothing will ever be mutated in here, so it is safe to pass around. See core::magic_helper::MagicHelper for more information.

RandBoard

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

Enums

BoardCheckError
FenBuildError

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

Type Definitions

Error