Skip to content

Commit bf0fff1

Browse files
committed
last
1 parent 63a893d commit bf0fff1

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src/players/informed.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,29 @@ int Informed::play() {
109109
// compute the expected values
110110
// -------------------------------------------------------
111111
init();
112-
for (int i = 0; i < 8; i++) {
112+
for (int i = 0; i < 100; i++) {
113113
dealer_bust_european_iteration();
114114
}
115115
dealer_european_to_american();
116116

117117
stand(upcard);
118118

119-
for (int i = 0; i < 8; i++) {
119+
for (int i = 0; i < 100; i++) {
120120
hit_iteration();
121121
}
122122
double_down();
123123
// -------------------------------------------------------
124124

125-
//#define BJDEBUG
125+
#define BJDEBUG
126126
#ifdef BJDEBUG
127+
for (int i = 0; i < SIZE; i++) {
128+
double s = 0;
129+
for (int f = 0; f < SIZE; f++) {
130+
s += dealer_hard[f][i];
131+
}
132+
std::cout << i << " " << s << std::endl;
133+
}
134+
127135
// for (int f = 0; f < 23; f++) {
128136
// std::cout << f << "\t";
129137
// for (int i = 0; i < 31; i++) {

0 commit comments

Comments
 (0)