calculate_max_paths

Summary

calculate_max_paths(squares: list[Square], dice: int, limit: int) [<class 'int'>, <class 'int'>]

Calculates the Max Paths value for all squares.

Parameters:
  • squares (list[Square]) – A list of Square objects to test.

  • dice (int) – The Maximum Dice Roll value of the board, which is used as the search depth in the calculation.

  • limit (int) – An upper limit of Max Paths to prevent computer slowdown.

Returns:

Returns a tuple with the square ID with the maximum max paths count, and the max paths count itself.

Return type:

[int, int]

Importing

from cs_board_tools.validation.paths import calculate_max_paths