From 291651da839d44a09d680f02ccf7768400efd7c5 Mon Sep 17 00:00:00 2001 From: Jon <vitale.jonathan@ymail.com> Date: Sat, 8 Jul 2023 13:51:19 +1000 Subject: [PATCH] Fix bug --- week2/solution/agent_programs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week2/solution/agent_programs.py b/week2/solution/agent_programs.py index b53fd00..049aa63 100644 --- a/week2/solution/agent_programs.py +++ b/week2/solution/agent_programs.py @@ -250,7 +250,7 @@ def utility_function(model, cur_location, direction): break # check if there is dirt in that direction - for cell in cells: + for cell in filtered_cells: if cell == 'D': # there is dirt, return high utility return 999 -- GitLab