Working on winning logic.

This commit is contained in:
2021-09-21 20:55:42 -07:00
parent 3be72f4ea6
commit ad50ff54f6
7 changed files with 63 additions and 8 deletions

View File

@ -17,13 +17,24 @@
#define POKER_TURN_TYPE_CALL_ALL_IN 0x04
#define POKER_TURN_TYPE_CHECK 0x05
#define POKER_TURN_CONFIDENCE_ROYAL_FLUSH 1.0f
#define POKER_TURN_CONFIDENCE_STRAIGHT_FLUSH 0.9f
#define POKER_TURN_CONFIDENCE_FOUR_OF_A_KIND 0.85f
#define POKER_TURN_CONFIDENCE_FULL_HOUSE 0.83f
#define POKER_TURN_CONFIDENCE_FLUSH 0.8f
#define POKER_TURN_CONFIDENCE_STRAIGHT 0.75f
#define POKER_TURN_CONFIDENCE_THREE_OF_A_KIND 0.75f
#define POKER_TURN_CONFIDENCE_TWO_PAIR 0.7f
#define POKER_TURN_CONFIDENCE_PAIR 0.6f
#define POKER_TURN_CONFIDENCE_HIGH_CARD 0.5f
/** The turn that a player/the AI decided to do for its turn */
typedef struct {
/** What type of action the turn is */
uint8_t type;
/** How many chips they did in their turn (if applicable) */
int32_t chips;
/** How confident the AI is about their turn. */
/** How confident the AI is about their turn. 0 = none, 1 = full */
float confidence;
} pokerturn_t;