Skip to main content

Module chess

Module chess 

Source
Expand description

Bounded PGN collections and standard-chess FEN positions. Parsing, legal move replay and rendering perform no file or network access.

Structs§

Collection
Source spans and tree links; no board or raster is retained per move.
Game
Node
Position
RenderOptions

Enums§

Color
A side to move.
Error
Format
Piece
A chess piece. Pieces are ordered by approximate material value.
Square
A square on a chessboard. Squares are ordered in rank-major order (A1, B1, C1, … H8).

Constants§

MAX_DEPTH
MAX_NODES
MAX_PLIES
MAX_SOURCE
MAX_VALUE

Functions§

rasterize
to_svg
Render an 8×8 board with original vector piece silhouettes. No system fonts, external images or user-supplied SVG are used for pieces.

Type Aliases§

NodeId