Re: prolog predicates
- From: repairman2003@xxxxxxxxx
- Date: 31 Jan 2006 13:33:33 -0800
That's too complex of an answer for me. We've only talked about
declaring predicates not functions. But from that answer I figured out
the solution I could use:
high_card([],C):-
C=none.
high_card(Hand,C):-
member(ace,Hand),
C=ace,!;
member(king,Hand),
C=king,!;
member(queen,Hand),
C=queen,!;
member(jack,Hand),
C=jack.
Thanks for your help
.
- References:
- prolog predicates
- From: repairman2003
- Re: prolog predicates
- From: Markus Triska
- prolog predicates
- Prev by Date: Re: prolog predicates
- Previous by thread: Re: prolog predicates
- Index(es):