Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9232957

Browse files
committed
Fixed KB_Agent's use of KB.ask. (untested)
1 parent 66aa7b0 commit 9232957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, KB):
9898
def program(percept):
9999
t = steps.next()
100100
KB.tell(self.make_percept_sentence(percept, t))
101-
action = KB.ask(self.make_action_query(t))
101+
action = KB.ask(self.make_action_query(t))[expr('action')]
102102
KB.tell(self.make_action_sentence(action, t))
103103
return action
104104
self.program = program

0 commit comments

Comments
 (0)