-
Notifications
You must be signed in to change notification settings - Fork 3
/
Board.h
47 lines (41 loc) · 1023 Bytes
/
Board.h
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
//******************************************************************************
// Board.h
// Revision History:
//
// Date Author Description
// 11/28/2017 Jason Chen Added class
//******************************************************************************
#ifndef BOARD_H_
#define BOARD_H_
#include "Card.h"
#include "Player.h"
#include "helper.h"
class Board
{
private:
Player* human;
Player* AI;
Deck dek = Deck();
Card community[5];
int smallBlind=0;
int pot=0;
helper* help;
int smallBlindPlayer; //1: ai goes first, 0: player goes first
public:
Board(Player* hum, Player* AI, int smallBlindPlayer);
void setCommunity();
void setBlind(int bld);
void resetPot();
void printStack();
//returns true if folded
bool run();
bool runAI(int phase);
bool preflop();
bool flop();
bool turn();
bool river();
void result();
void printBoard();
void clearBoard();
};
#endif /* BOARD_H_ */