Function sudokuGetMaxScorePerStack

  • This function mimics variantSudokuGetMaxScore from the "variants_sudoku.go" file on the server. See there for corresponding documentation on how the score is calculated. Additionally, since here, we want to return the maximum score per stack (this is needed for endgame calculations, since the distribution of playable cards to the stacks matters for how many clues we can get back before the extra round starts), we will find an optimum solution (in terms of score) such that the distribution of the played cards to the stacks is lexicographically minimal (after sorting the values) as well, since this allows for the most amount of clues to be gotten back before the extra-round.

    Parameters

    Returns Tuple<number, NumSuits>