Just getting the betting cycle done.

This commit is contained in:
2021-08-13 10:09:37 -07:00
parent eddc5bfafd
commit 98b50f5987
8 changed files with 59 additions and 25 deletions

View File

@ -13,20 +13,6 @@
#include "card.h"
#include "winner.h"
/** Rounds that the game can be in */
#define POKER_ROUND_MATCH 0x00
#define POKER_ROUND_START 0x01
#define POKER_ROUND_BLINDS 0x02
#define POKER_ROUND_DEAL 0x03
#define POKER_ROUND_BET0 0x04
#define POKER_ROUND_FLOP 0X05
#define POKER_ROUND_BET1 0x06
#define POKER_ROUND_TURN 0x07
#define POKER_ROUND_BET2 0x08
#define POKER_ROUND_RIVER 0x09
#define POKER_ROUND_BET3 0x0A
#define POKER_ROUND_WINNER 0x0B
/** How many cards to deal each player during the deal round */
#define POKER_DEAL_CARD_EACH 2
@ -51,6 +37,7 @@ typedef struct {
/** Which player is the small blind for this round */
uint8_t roundSmallBlind;
/** Which player is the big blind for this round */
uint8_t roundBigBlind;
} poker_t;

View File

@ -11,6 +11,7 @@
#define POKER_TURN_TYPE_OUT 0x00
#define POKER_TURN_TYPE_FOLD 0x01
#define POKER_TURN_TYPE_BET 0x02
#define POKER_TURN_TYPE_CHECK 0x03
typedef struct {
uint8_t type;