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

    Function getNextPlayableRanksAfter

    • Like getNextPlayableRanks, but takes the rank of the card on top of the play stack (or undefined if no card has been played on it) instead of reading it from the deck.

      Parameters

      • suitIndex: 0 | 1 | 2 | 3 | 4 | 5
      • currentlyPlayedRank: 2 | 5 | 1 | 7 | 3 | 4 | undefined
      • playStackDirection: StackDirection
      • playStackStarts: Readonly<Tuple<2 | 5 | 1 | 7 | 3 | 4 | undefined, NumSuits>>
      • variant: Variant

      Returns readonly number[]