Added Linux Support, Improved code cleanliness

This commit is contained in:
2021-07-13 08:36:25 -07:00
parent 8b45b976d4
commit 6b027e6e4e
18 changed files with 110 additions and 75 deletions

View File

@ -35,9 +35,6 @@
#define POKER_ROUND_BET3 0x0A
#define POKER_ROUND_WINNER 0x0B
/** How many cards the grave can hold */
#define POKER_GRAVE_SIZE CARD_DECK_SIZE
/** GUI Height fix (To keep gui scaling nicely we use a fixed height) */
#define POKER_GUI_HEIGHT 2160
@ -47,18 +44,10 @@
#define POKER_FLOP_CARD_COUNT 3
#define POKER_TURN_CARD_COUNT 1
#define POKER_RIVER_CARD_COUNT 1
typedef struct {
//////////////////////////////////////////////////////////////////////////////
// Poker Logic Variables
//////////////////////////////////////////////////////////////////////////////
/** Current Card Deck */
card_t deck[CARD_DECK_SIZE];
uint8_t deckSize;
/** Card grave (where spent cards go when burned */
card_t grave[POKER_GRAVE_SIZE];
uint8_t graveSize;
/** Poker betting state */
pokerbet_t bet;