forked from kennethshackleton/SKPokerEval
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBot.h
More file actions
52 lines (45 loc) · 1.15 KB
/
Bot.h
File metadata and controls
52 lines (45 loc) · 1.15 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef BOT_H
#define BOT_H
#include <string>
#include <vector>
class Bot
{
public:
void run();
private:
// internal state
std::vector<int> handCards;
std::vector<int> tableCards;
int pot;
std::string opponentStatus;
int opponentBet;
int currentBet;
int myStack;
int opponentStack;
std::string playerHand;
std::string opponentHand; // We'll never get this, but the spec allows it
bool alreadyRaised;
// Match Settings
std::string botName;
std::string opponentBotName;
int timeBank;
int timePerMove;
int handsPerLevel;
int startingStack;
// Round Info
int roundPlaying;
int smallBlind;
int bigBlind;
std::string dealer;
std::string table;
int maxWinPot;
int amountToCall;
// Internal functions
void executeAction();
void parsePlayerMove();
void parseOpponentMove();
void parseMatch();
void parseSettings();
std::vector<int>& parseCards(std::string&, std::vector<int>&);
};
#endif