Abstract
Abstract
capturedColor and type of the captured piece.
IllegalArgument if the current move is not a capture, i.e. if isCapture returns false
.
Abstract
capturedType of the captured piece.
IllegalArgument if the current move is not a capture, i.e. if isCapture returns false
.
Abstract
colorAbstract
coloredColor and type of the promoted piece, in case of a promotion.
IllegalArgument if the current move is not a promotion, i.e. if isPromotion returns false
.
Abstract
enSquare containing the captured pawn, in case of a en-passant capture.
IllegalArgument if the current move is not a en-passant capture, i.e. if isEnPassant returns false
.
Abstract
fromOrigin square of the moving piece. In case of castling, this is the origin square of the king.
Abstract
isAbstract
isAbstract
isAbstract
isAbstract
movingAbstract
movingAbstract
promotionType of the promoted piece, in case of a promotion.
IllegalArgument if the current move is not a promotion, i.e. if isPromotion returns false
.
Abstract
rookOrigin square of the rook, in case of a castling move.
IllegalArgument if the current move is not a castling move, i.e. if isCastling returns false
.
Abstract
rookDestination square of the rook, in case of a castling move.
IllegalArgument if the current move is not a castling move, i.e. if isCastling returns false
.
Abstract
toDestination square of the moving piece. In case of castling, this is the destination square of the king.
Generated using TypeDoc
Feb 25, 2024
Describe a legal chess move, with its characteristics.