Thank you very much. It was very helpful. I also went back and googled a bit on list manipulation. Its amazing the kind of power prolog has, but its hard to get my head around. I managed to get it running smoothly. Thank you.
okay. I didnt know I could include those parentheses, however that function works correctly. It return yes or no if a path exists between X and Y.
What I want to create is a function that would look like
trave(X,Y,L) :- ? ?
if i told it travel(metz,losAngele, L).
it should return L =...
Hello all,
this is my first time on these forums. I am not new to programming at all, but am very lost with prolog. I have been reading through "Learn Prolog Now!"
they as me to build a predicate that would let me know if i can travel from one place to another.
the assertions that I have...
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.