forked from Fossana/cplusplus-cfr-poker-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathState.h
More file actions
40 lines (36 loc) · 979 Bytes
/
State.h
File metadata and controls
40 lines (36 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef STATE_H
#define STATE_H
#include "StreetEnum.h"
#include "PlayerState.h"
#include "Action.h"
#include <memory>
using std::unique_ptr;
class State
{
public:
Street street;
int potSize;
uint8_t board[5];
unique_ptr<PlayerState> p1;
unique_ptr<PlayerState> p2;
PlayerState* current;
PlayerState* lastToAct;
int minimumRaiseSize;
int minimumBetSize;
State();
State(State& state);
int get_highest_wager();
int get_call_amount();
bool is_uncontested();
bool both_players_are_allin();
bool apply_player_action(Action& action);
void go_to_next_street();
void initialize_current();
void initialize_lastToAct();
void update_current();
void reset_lastToAct();
int get_current_wager();
int get_current_stack();
int get_current_id();
};
#endif