Refactor struct part 2.

This commit is contained in:
2021-05-20 22:35:50 -07:00
parent 5ae1f1c0d4
commit f6a4be2f3c
18 changed files with 61 additions and 214 deletions

View File

@ -24,14 +24,14 @@ void pokerInit(poker_t *poker) {
poker->players[x].currentBet = 0;
}
pokerRoundInit();
pokerRoundInit(poker);
}
void pokerRoundInit(poker_t *poker) {
uint8_t x;
// Refill the deck
cardDeckFill(&poker->deck);
cardDeckFill(poker->deck);
poker->deckSize = CARD_DECK_SIZE;
// Reset the players