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 fromAbstract isAbstract isAbstract isAbstract isAbstract movingColor and type of the moving piece. In case of castling, the moving piece is considered to be the king.
Abstract 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 toGenerated using TypeDoc
Describe a legal chess move, with its characteristics.