We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493fd13 commit 9054eefCopy full SHA for 9054eef
agents.py
@@ -145,10 +145,10 @@ def program(percept):
145
return program
146
147
148
-def ModelBasedReflexAgentProgram(rules, update_state):
149
- "This agent takes action based on the percept and state. [Figure 2.12]"
+def ModelBasedReflexAgentProgram(rules, update_state, model):
+ "This agent takes action based on the percept and state. [Figure 2.8]"
150
def program(percept):
151
- program.state = update_state(program.state, program.action, percept)
+ program.state = update_state(program.state, program.action, percept, model)
152
rule = rule_match(program.state, rules)
153
action = rule.action
154
return action
0 commit comments