check_percent_walls

check_percent_walls(map_to_check: npt.NDArray, wall) float

Calculates and returns the percent of the map which is walls.

Parameters:
  • map_to_check – Map to check for coverage

  • wall – What should be considered a wall

Returns:

Percent of the map covered in walls