AbstractAbstractcapturedColor and type of the captured piece.
exception.IllegalArgument if the current move is not a capture, i.e. if isCapture returns false.
AbstractcapturedType of the captured piece.
exception.IllegalArgument if the current move is not a capture, i.e. if isCapture returns false.
AbstractcolorColor of the moving piece.
AbstractcoloredColor and type of the promoted piece, in case of a promotion.
exception.IllegalArgument if the current move is not a promotion, i.e. if isPromotion returns false.
AbstractenSquare containing the captured pawn, in case of a en-passant capture.
exception.IllegalArgument if the current move is not a en-passant capture, i.e. if isEnPassant returns false.
AbstractfromOrigin square of the moving piece. In case of castling, this is the origin square of the king.
AbstractisWhether the current move is a capture (either a regular capture or a en-passant capture) or not.
AbstractisWhether the current move is a castling move or not.
AbstractisWhether the current move is a en-passant capture or not.
AbstractisWhether the current move is a promotion or not.
AbstractmovingColor and type of the moving piece. In case of castling, the moving piece is considered to be the king.
AbstractmovingType of the moving piece. In case of castling, the moving piece is considered to be the king.
AbstractpromotionType of the promoted piece, in case of a promotion.
exception.IllegalArgument if the current move is not a promotion, i.e. if isPromotion returns false.
AbstractrookOrigin square of the rook, in case of a castling move.
exception.IllegalArgument if the current move is not a castling move, i.e. if isCastling returns false.
AbstractrookDestination square of the rook, in case of a castling move.
exception.IllegalArgument if the current move is not a castling move, i.e. if isCastling returns false.
AbstracttoDestination square of the moving piece. In case of castling, this is the destination square of the king.
Describe a legal chess move, with its characteristics.