Chess API Reference
The @chess-barebones/chess package provides a concrete implementation of the rules of chess, built on top of @chess-barebones/core.
Key Exports
RegularChess: A ready-to-useGamesubclass with the rules of chess.Figure: An enum of all the chess pieces.ChessFigureFactory: AFigureFactorythat creates decorated chess figures.StandardChessInitializer: AHandlerthat sets up the standard initial position.- Processors: A set of
Handlers that implement the rules of chess (e.g.,CheckmateProcessor,StalemateProcessor). AlgebraicNotationSerializer: AMoveSerializerfor standard algebraic notation.- Decorators:
applyCheckDecoratorandapplyPinDecoratorfor adding check and pin logic to figures.