Working on poker logic.

This commit is contained in:
2021-09-25 01:36:25 -07:00
parent 425faff720
commit 914741c175
7 changed files with 222 additions and 74 deletions

View File

@ -8,6 +8,7 @@
#pragma once
#include "../libs.h"
#include "poker.h"
#include "winner.h"
#define POKER_TURN_TYPE_OUT 0x00
#define POKER_TURN_TYPE_FOLD 0x01
@ -17,17 +18,6 @@
#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 */