Refactor round 1

This commit is contained in:
2021-07-12 15:04:10 -07:00
parent 67197178c2
commit 26eae71794
24 changed files with 653 additions and 508 deletions

17
src/poker/dealer.c Normal file
View File

@ -0,0 +1,17 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "dealer.h"
void pokerDealerDeal(poker_t *poker, uint8_t count) {
uint8_t i;
for(i = 0; i < count; i++) {
cardDeal(
poker->deck, &poker->deckSize,
poker->dealer.cards, &poker->dealer.cardsFacing
);
}
}