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

    Function isCardNeededForMaxScore

    • Returns true if the card is not yet played and is still needed to be played in order to get the maximum score. This mirrors the server function "Card.NeedsToBePlayed()".

      Parameters

      • suitIndex: 0 | 2 | 5 | 1 | 3 | 4 | undefined
      • rank: 2 | 5 | 1 | 7 | 3 | 4 | undefined
      • deck: readonly CardState[]
      • playStacks: Readonly<Tuple<readonly CardOrder[], NumSuits>>
      • playStackDirections: Readonly<Tuple<StackDirection, NumSuits>>
      • playStackStarts: Readonly<Tuple<2 | 5 | 1 | 7 | 3 | 4 | undefined, NumSuits>>
      • variant: Variant

      Returns boolean