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

    Function getNextPlayableRanks

    • Returns an array since it is possible in some variants to have two or more possible cards that are legal next plays.

      Parameters

      • suitIndex: 0 | 1 | 2 | 3 | 4 | 5
      • playStack: readonly number[]
      • playStackDirection: StackDirection
      • playStackStarts: Readonly<Tuple<null | 7 | 3 | 1 | 2 | 4 | 5, NumSuits>>
      • variant: Variant
      • deck: readonly CardState[]

      Returns readonly number[]