-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.h
More file actions
45 lines (39 loc) · 808 Bytes
/
table.h
File metadata and controls
45 lines (39 loc) · 808 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
41
42
43
44
45
#ifndef TABLE_H
#define TABLE_H
#include "player.h"
#include "Dealer.h"
#include "shoe.h"
#include <windows.h>
#include <iostream>
#include <vector>
class Table {
public:
Table(int nbType1, int nbType0);
~Table();
void play(int nbRounds);
void check();
void bet();
void playing();
void replacePlayers(bool force);
void getStats(int nbRounds);
void debugWinners();
int getCard();
protected:
int totalWinsType0;
int totalWinsType1;
int maximumPayoutType1;
int maximumPayoutType0;
int totalPayoutType1;
int totalPayoutType0;
int totalPlayersType1;
int totalPlayersType0;
int dealersHand_;
int winners0_ = 0;
int winners1_ = 0;
bool done_ = false;
bool isLastHand_;
std::vector<Player> players_;
Shoe shoe_;
Dealer dealer_;
};
#endif