get_destinations¶
Summary¶
- get_destinations(squares: list[Square], prev_square_id: int, square_id: int) list[int]¶
Looks at a Square’s waypoints and returns a list of possible destinations for a given Entry ID.
- Parameters:
squares (list[Square]) – A list of Square objects to test.
prev_square_id (int) – The ID of the Previous Square, the one you previously walked over in-game. The one you have your back to.
square_id (int) – The ID of the Square for which to get the paths count.
- Returns:
Returns a list of Square IDs as Destinations.
- Return type:
list[int]
Importing¶
from cs_board_tools.validation.paths import get_destinations