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

    Function sudokuIsCardCritical

    • Whether a card is critical in a Sudoku variant: it is the last copy, and losing it lowers the max score. A stack without a start can start at any unused rank. When two starts give the same max score, losing a card that only one of them needs does not lower it.

      Parameters

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

      Returns boolean