Joining the two logics together slowly.

This commit is contained in:
2021-07-28 09:22:58 -07:00
parent 54559e761c
commit 9b4589dfe8
35 changed files with 405 additions and 51 deletions

23
temp/round/deal.c Normal file
View File

@ -0,0 +1,23 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "deal.h"
void pokerDealInit(poker_t *poker) {
poker->round = POKER_ROUND_DEAL;
// Shuffle the deck
cardShuffle(poker->dealer.deck, CARD_DECK_SIZE);
// Deal 2 card to each player
pokerDealerDealAll(poker, POKER_DEAL_CARD_EACH);
// Deal 2 card to each player
pokerDealerDealAll(poker, POKER_DEAL_CARD_EACH);
printf("Cards Dealt\n");
pokerRoundBetInit(poker);
}