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.

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.

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 pleco::MagicHelper for more information.

RandBoard

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

Enums

BoardCheckError