Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.70K
1 Posted Topic
** follow the algo ** on(floor,monkey) . on(floor,chair). in(room,monkey). in(room,chair). in(room,banana). at(calling,banana). strong(monkey). grasp(monkey). climb(monkey,chair). push(monkey,chair) :- strong(monkey). under(banana,chair) :- push(monkey,chair). canreach(banana,monkey) :- at(floor,banana); at(calling,banana), under(banana,chair), climb(monkey,chair). canget(banana,monkey) :- canreach(banana,monkey),grasp(monkey). **save it** **compile it** follow next step **canget(X,Y). ** press enter the result is.... X = banana Y = monkey
The End.