The Move and Variation data types, and miscellaneus functions
operating on moves.
Type representing a variation, i.e. a sequence of moves.
The source square of a move.
The destination square of a move.
The piece type to which the move promotes, or Nothing if the move is not
a promotion move.
Whether the move is a pawn promotion
Whether the move is a castling move.
Whether the move is a kingside castling move.
Whether the move is a queenside castling move.
Whether the move is an en passant capture.
Translate a move to UCI notation. Translating from UCI cannot be done by inspecting the move a lone, since it also requires a board.
Type representing a chess move. The move contains information about the from and to square, and whether the move is a castle, an en passant capture, or a pawn promotion.