Package-level declarations
Manages the flow of the chess game: turn management, special moves (castling, en passant), and game end conditions ( checkmate, stalemate, draw, etc.).
Types
Link copied to clipboard
Represents the castling rights for a player.
Link copied to clipboard
Represents the result of a chess game.
Link copied to clipboard
data class GameState(val currentPlayer: PieceColor, val castlingRights: Map<PieceColor, CastlingAvailability>, val enPassantTargetSquare: Square?, val halfMoveClock: Int, val fullMoveNumber: Int)
Represents the state of a chess game at a given moment.