get_paths_count_without_prev_square

Summary

get_paths_count_without_prev_square(squares: list[Square], square_id: int, dice: int, limit: int) int

As the title suggests, this function calculates the number of paths on a square, when a previous Square ID is not provided.

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

  • square_id (int) – The ID of the Square for which to get the paths count.

  • 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 the number of paths from that square.

Return type:

int

Importing

from cs_board_tools.validation.paths import get_paths_count_without_prev_square