Last commit before another big refactor

This commit is contained in:
2021-07-12 09:31:22 -07:00
parent 1b2bf0c434
commit 25ab7cc101
20 changed files with 5475 additions and 116 deletions

View File

@@ -54,8 +54,8 @@ int32_t cardContainsNumber(card_t *hand, uint8_t length, uint8_t number) {
return -1;
}
uint8_t cardCountPairs(
card_t *in, uint8_t inCount, uint8_t number, int32_t out[CARD_SUIT_COUNT]
uint8_t cardCountPairs(card_t *in, uint8_t inCount, uint8_t number,
int32_t out[CARD_SUIT_COUNT]
) {
uint8_t i, count;
int32_t index;
@@ -68,4 +68,8 @@ uint8_t cardCountPairs(
}
return count;
}
void cardShuffle(card_t *hand, uint8_t length) {
arrayShuffle(sizeof(card_t), hand, length);
}