forked from Fossana/cplusplus-cfr-poker-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTreeBuildSettings.cpp
More file actions
27 lines (26 loc) · 868 Bytes
/
TreeBuildSettings.cpp
File metadata and controls
27 lines (26 loc) · 868 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
#include "TreeBuildSettings.h"
TreeBuildSettings::TreeBuildSettings(
shared_ptr<RangeManager> rangeManager,
int inPositionPlayerId,
Street initialStreet,
uint8_t initialBoard[5],
int initialPotSize,
int startingStackSize,
unique_ptr<BetSettings> p1BetSettings,
unique_ptr<BetSettings> p2BetSettings,
int minimumBetSize,
float allinThreshold
)
{
this->rangeManager = rangeManager;
this->inPositionPlayerId = inPositionPlayerId;
this->initialStreet = initialStreet;
for (int i = 0; i < 5; i++)
this->initialBoard[i] = initialBoard[i];
this->initialPotSize = initialPotSize;
this->startingStackSize = startingStackSize;
this->p1BetSettings = move(p1BetSettings);
this->p2BetSettings = move(p2BetSettings);
this->minimumBetSize = minimumBetSize;
this->allinThreshold = allinThreshold;
}