Added Unit Tests
This commit is contained in:
@@ -72,4 +72,10 @@ uint8_t cardCountPairs(card_t *in, uint8_t inCount, uint8_t number,
|
||||
|
||||
void cardShuffle(card_t *hand, uint8_t length) {
|
||||
arrayShuffle(sizeof(card_t), hand, length);
|
||||
}
|
||||
|
||||
uint8_t cardWriteDeck(card_t *hand) {
|
||||
uint8_t i;
|
||||
for(i = 0; i < CARD_DECK_SIZE; i++) hand[i] = i;
|
||||
return CARD_DECK_SIZE;
|
||||
}
|
Reference in New Issue
Block a user