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 |
castle_rights |
Module for the |
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 |
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 |
RandBoard |
Random board generator. Creates either one or many random boards with optional parameters. |
Enums
BoardCheckError | |
FenBuildError |
Represents possible Errors encountered while building a |
Type Definitions
Error |