API Reference#

Summary#

chessengine.bitboard

A complete bitboard representation of a chessboard, with all the methods needed to play a game of chess.

chessengine.exceptions

Global exceptions for the engine

chessengine.lookup_tables

The lookup tables module provides mappings between different position representation formats, as well as utility bitboards that let you mask or clear individual ranks, files, or positions on the chess board.

chessengine.moves

Functions for generating moves for all supported pieces in all supported scenarios

chessengine.utils

Utility functions for common bitboard operations.

chessengine.pgn.node

Defines the Game and GameNode class, used to parse PGN files and create the opening book.

chessengine.pgn.parser

The PGN parser class