Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- connected_coords = []# this is the list of sides that are connected with the side being checked
- connected_coords += match_coord
- if new_tile["Middle"] == match_type:# this is necessary to make it crawl in all directions when the middle is the same type as the connection
- for i in new_tile[match_type]:
- next_tiles_to_check.append([i, new_tile])
- if i not in connected_coords:
- connected_coords.append(i)
- #[...]
- if meeples_in_cluster > 0:
- coord_with_meeple = connected_coords # this tell us on which side a meeple CANNOT be placed
- else:
- coord_with_meeple = []
- coord_with_meeple += new_tile["Farm"]# not possible to place a meeple on a farm for now
- return points, already_checked, coord_with_meeple
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement