Hi,
I've the following definitions.(* player(name,age) *)
player(peter,9).
player(paul,10).
player(chris,9).
player(susan,9).
games(X,Y) :- player(X,9),player(Y,9),X \== Y.
I want Prolog to return all possible games to play in a tournament, but only with people aged 9.
The problem is that...
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.