diff --git a/week3/material/agent_programs.py b/week3/material/agent_programs.py index bdb3690ccbd50f1db6c4fce01761956c34487030..a276c89a42c67daf0428ae50b4e07f7468d82b51 100644 --- a/week3/material/agent_programs.py +++ b/week3/material/agent_programs.py @@ -80,6 +80,8 @@ def search_behaviour(percepts, actuators, search_function): # the search_function should return a goal_node (an instance of the class GraphNode) # given the present agent location and a goal function: # goal_node = search_function(agent_location, a_goal_function_for_charging_dock) + # If you have not implemented any goal function yet, for now you can use a lambda function + # always returning False: lambda node_state: False # if the goal_node was found (not None/False), then we can generate the path to the goal # with the method .get_path() # We can set the value of path_to_dock to the found path