Interface ActionDiscard

interface ActionDiscard {
    failed: boolean;
    order: CardOrder;
    playerIndex: PlayerIndex;
    rank: -1 | 1 | 2 | 3 | 4 | 5 | 7;
    suitIndex: -1 | 0 | 1 | 2 | 3 | 4 | 5;
    type: "discard";
}

Properties

failed: boolean
order: CardOrder
playerIndex: PlayerIndex
rank: -1 | 1 | 2 | 3 | 4 | 5 | 7

-1 represents a card of an unknown rank. This will only be -1 in special variants where the identity of discarded cards is not revealed.

suitIndex: -1 | 0 | 1 | 2 | 3 | 4 | 5

-1 represents a card of an unknown suit. This will only be -1 in special variants where the identity of discarded cards is not revealed.

type: "discard"