C Programming Absolute Beginner's Guide (3rd Edition)

(Romina) #1

cardDup = 1;
}
}
// Next, check the new card against any newly drawn
// cards to avoid duplication
for (j=0; j < i; j++)
{
if ((finalRank[i] == finalRank[j]) &&
(finalSuit[i] == finalSuit[j]))
{
cardDup = 1;
}
}
} while (cardDup == 1);
ranksinHand[finalRank[i]]++;
suitsinHand[finalSuit[i]]++;
}
}


}

Free download pdf