Package-level declarations
Handles everything related to the chessboard: board representation, squares, files (columns), and ranks (rows). Responsible for tracking piece positions, validating moves, and setting up positions (including from FEN strings).
Types
Link copied to clipboard
The Board class represents the positions of pieces on a chessboard at a specific moment. It tracks which Piece occupies each of the 64 squares, if any. This class focuses solely on the arrangement of pieces and provides methods for querying and updating positions, applying moves to generate new board configurations, and accessing pieces by square or algebraic notation. It does not track additional game state details such as castling rights, en passant targets, or move history.