Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #107.70K
~6K People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for rahulrajcse

** 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

Member Avatar for Adarsh_4
0
6K

The End.