Skip to content
Snippets Groups Projects
Commit 291651da authored by Jon's avatar Jon
Browse files

Fix bug

parent ac95e9f0
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,7 @@ def utility_function(model, cur_location, direction): ...@@ -250,7 +250,7 @@ def utility_function(model, cur_location, direction):
break break
# check if there is dirt in that direction # check if there is dirt in that direction
for cell in cells: for cell in filtered_cells:
if cell == 'D': if cell == 'D':
# there is dirt, return high utility # there is dirt, return high utility
return 999 return 999
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment