Subject: Re: List

From: "Leen Kievit" <[email-masked]>
Date: Sat, 2 Sep 2000 12:51:26 +0200

Given the way you set this up, you should require that Card1 has a lower
StackCard value than Card2 (since that solution will have been found
before).

So:

check_fourteen(Card1,Card2,StackCard1,StackCard2):-
    topcard(Card1,StackCard1),
    topcard(Card2,StackCard2),
    StackCard1 < StackCard2,
    is_fourteen(Card1,Card2).

Didn't test it, but I'm sure it works.

Leen