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

    Function getStackDirectionAfterPlay

    • The direction of a play stack after a card is played on it. It depends only on the direction before the play and on the played card, not on the cards that are on the stack. Thus, it also works in a hypothetical where a stack base stands in for cards that are not on the stack.

      In Sudoku variants, playStackStart is the rank that the stack starts with, which counts the played card.

      Parameters

      • direction: StackDirection
      • playedRank: 1 | 2 | 3 | 4 | 5 | 7
      • playStackStart: 2 | 5 | 1 | 7 | 3 | 4 | undefined
      • variant: Variant

      Returns StackDirection