Skip to content

Commit 746477a

Browse files
committed
Fix misspelled variable.
1 parent f502be9 commit 746477a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agents4e.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ def program(percept):
170170
return program
171171

172172

173-
def ModelBasedReflexAgentProgram(rules, update_state, trainsition_model, sensor_model):
173+
def ModelBasedReflexAgentProgram(rules, update_state, transition_model, sensor_model):
174174
"""
175175
[Figure 2.12]
176176
This agent takes action based on the percept and state.
177177
"""
178178

179179
def program(percept):
180-
program.state = update_state(program.state, program.action, percept, trainsition_model, sensor_model)
180+
program.state = update_state(program.state, program.action, percept, transition_model, sensor_model)
181181
rule = rule_match(program.state, rules)
182182
action = rule.action
183183
return action

0 commit comments

Comments
 (0)