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

@ -13,14 +13,28 @@
#include "../display/primitive.h"
/** How many cards the dealer can hold in their hand */
#define POKER_DEALER_HAND 5
#define POKER_DEALER_HAND_SIZE 5
/** How many cards the grave can hold */
#define POKER_DEALER_GRAVE_SIZE CARD_DECK_SIZE
/** Representation of the dealer state */
typedef struct {
/** Current Card Deck */
card_t deck[CARD_DECK_SIZE];
uint8_t deckSize;
/** Dealer Hand */
card_t cards[POKER_DEALER_HAND];
card_t cards[POKER_DEALER_HAND_SIZE];
uint8_t cardsFacing;
/** Card grave (where spent cards go when burned */
card_t grave[POKER_DEALER_GRAVE_SIZE];
uint8_t graveSize;
// Rendering assets (unfinished)
texture_t dealerTexture;
tileset_t dealerTileset;
primitive_t dealerPrimitive;