Move
data class Move(val from: Square, val to: Square, val promotionPieceType: PieceType? = null, val isCapture: Boolean = false, val isCastlingKingside: Boolean = false, val isCastlingQueenside: Boolean = false, val isEnPassantCapture: Boolean = false, val comments: List<String>? = null)
Represents a chess move, including source and destination squares, optional promotion, and special move flags.
Constructors
Link copied to clipboard
constructor(from: Square, to: Square, promotionPieceType: PieceType? = null, isCapture: Boolean = false, isCastlingKingside: Boolean = false, isCastlingQueenside: Boolean = false, isEnPassantCapture: Boolean = false, comments: List<String>? = null)
Secondary constructor for moves with promotion specified as a character.
Secondary constructor for moves specified by string coordinates.