From: Carl Worth Date: Wed, 14 Feb 2007 17:01:59 +0000 (-0800) Subject: Merge branch 'master' of kevin:kub X-Git-Url: https://git.cworth.org/git?p=kub;a=commitdiff_plain;h=80d1bc0be0fd7f098e3c5a1928bb3691b43fe051 Merge branch 'master' of kevin:kub Conflicts: kub.c --- 80d1bc0be0fd7f098e3c5a1928bb3691b43fe051 diff --cc kub.c index 92cc533,88b678e..cf3c895 --- a/kub.c +++ b/kub.c @@@ -96,10 -117,8 +122,11 @@@ static int card_group_is_run_two(card_g return 0; } + /* Loop through all cards in the group, ensuring that they are all + * the same color and finding the highest and lowest number in the + * group. */ - run_color = card_group->cards[i].color; + run_color = card_group->cards[0].color; + for (i = 0; i < card_group->num_cards; i++) { if (card_group->cards[i].color != run_color)