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

    Function sudokuWalkUpAll

    • For Sudoku variants, given a boolean map for which ranks [1, 2, 3, 4, 5] are all discarded, returns an array for these ranks of the longest play sequences starting at these maps (indexed 0 through 4), and a boolean stating whether all ranks are still available, i.e. whether the returned array is [5, 5, 5, 5, 5]. This functions mimics the method sudokuWalkUpAll from the server file "variants_sudoku.go".

      Parameters

      • allDiscardedSet: ReadonlySet<1 | 2 | 3 | 4 | 5 | 7>
      • variant: Variant

      Returns {
          allMax: boolean;
          maxScoresForEachStartingValueOfSuit: Tuple<number, 1 | 2 | 3 | 4 | 5 | 7>;
      }