Naprawiono bug z DFS

This commit is contained in:
Anna Nowak 2019-05-13 09:09:48 +02:00
parent 9b22d4a166
commit 1963068dd6

View File

@ -12,6 +12,7 @@ def DFS(grid, available_movement, gc_moveset, depth=0):
possible_goals.append([a,b-1])
house_in_area = False
for location in possible_goals:
if location[0]>=0 and location[1]>=0:
try:
cell = grid[location[0]][location[1]]
if(type(cell) == House and cell.container.is_full and cell.unvisited):