Hi,
I am learning prolog and I am not able to fullfill the following excercise:
1. I have a list of facts:
f(name0).
m(name1).
-> these are persons, f(x) means female, m(x) means male.
child_of(x,y).
-->x is a child of y.
2. I want to now if x is and descendent of y:
descendent(x,y) :-...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.