Added Unit Tests

This commit is contained in:
2021-10-01 00:27:36 -07:00
parent c05c81d9d3
commit 88001e67f8
10 changed files with 271 additions and 454 deletions

View File

@@ -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;
}