Re: prolog predicates



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

.