Working on poker logic.

This commit is contained in:
2021-05-31 08:06:43 -07:00
parent 68e6abe0de
commit 7b7526d346
43 changed files with 54542 additions and 48 deletions

14
src/poker/player.c Normal file
View File

@ -0,0 +1,14 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "player.h"
void pokerPlayerBet(poker_t *poker, pokerplayer_t *player, int32_t chips) {
poker->pot += chips;
player->chips -= chips;
player->currentBet += chips;
}