You will need to use a grouping predicate such as setof/3 like this:
setof(Name/Type/X, relation(Name,Type,X), Set),
where Set would be the List of all possible combinations. However I am not too sure how to filter out those possibilities where X is less than the weight specified
I am writing a bridge program.
I am trying to count the number of points present in the hand according the the number of cards in each suit.
It works when i do a single query to it, but in t1 refuses to work. I really do not know what else to try.
Please please please help, I am desperate.
N...
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.