@echecs/position
    Preparing search index...

    Interface Move

    A chess move — origin square, target square, and optional promotion.

    interface Move {
        from: Square;
        promotion?: PromotionPieceType;
        to: Square;
    }
    Index

    Properties

    Properties

    from: Square

    The square the piece moves from.

    promotion?: PromotionPieceType

    The piece type to promote to, if this is a promotion move.

    to: Square

    The square the piece moves to.