/
baccarat7up.h
49 lines (41 loc) · 949 Bytes
/
baccarat7up.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
48
49
#ifndef BACCARAT_7UP_H
#define BACCARAT_7UP_H
#include <vector>
#include "mersenne64.h"
using namespace std;
#define NUM_SLOTS 40
class Hand : public vector<int> {
public:
Hand();
int getTotal();
bool isNatural();
};
class CSM {
protected:
Mersenne64 random;
vector<int> buffer;
int minBufferDepth;
vector<int> reservoir;
public:
CSM(int);
virtual int deal();
virtual void muck(int);
};
class ShuffleMaster126 : public CSM {
protected:
vector<int> slots[NUM_SLOTS];
void dropSlot();
int maxCardsPerSlot;
public:
ShuffleMaster126(int minDepth, int maxDepth);
virtual int deal();
virtual void muck(int);
};
class Rules7Up {
public:
static void deal(Hand &player, Hand &banker, CSM &shoe);
static double bankerOutcome(Hand &player, Hand &banker);
static double playerOutcome(Hand &player, Hand &banker);
static double super7s(Hand &player, Hand &banker);
};
#endif