Game State
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.
Constructors
Link copied to clipboard
constructor(currentPlayer: PieceColor, castlingRights: Map<PieceColor, CastlingAvailability>, enPassantTargetSquare: Square?, halfMoveClock: Int, fullMoveNumber: Int)
Types
Properties
Link copied to clipboard
The castling rights for each player.
Link copied to clipboard
The player whose turn it is to move.
Link copied to clipboard
The square available for en passant capture, if any.
Link copied to clipboard
The number of the full move (incremented after Black's move).
Link copied to clipboard
The number of half-moves since the last pawn advance or capture.