Last commit before another big refactor
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user