@hanabi-live/game
    Preparing search index...

    Function getNewClueTokensAfterAction

    • Gain a clue by discarding or finishing a stack.

      Parameters

      • action:
            | Readonly<
                Readonly<
                    {
                        identity?: Readonly<
                            { rank: 1
                            | 2
                            | 3
                            | 4
                            | 5
                            | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                        >;
                        order: number & $brand<"CardOrder">;
                        playerIndex: 0 | 1 | 2 | 3 | 4;
                        type: "discard";
                    },
                >,
            >
            | Readonly<
                Readonly<
                    {
                        identity?: Readonly<
                            { rank: 1
                            | 2
                            | 3
                            | 4
                            | 5
                            | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                        >;
                        order: number & $brand<"CardOrder">;
                        playerIndex: 0 | 1 | 2 | 3 | 4;
                        type: "misplay";
                    },
                >,
            >
            | Readonly<
                Readonly<
                    {
                        identity?: Readonly<
                            { rank: 1
                            | 2
                            | 3
                            | 4
                            | 5
                            | 7; suitIndex: 0 | 1 | 2 | 3 | 4 | 5 },
                        >;
                        order: number & $brand<"CardOrder">;
                        playerIndex: 0 | 1 | 2 | 3 | 4;
                        type: "play";
                    },
                >,
            >
      • clueTokens: number
      • variant: Variant
      • playStackComplete: boolean = false

      Returns number