-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbet_sizing.h
More file actions
39 lines (31 loc) · 997 Bytes
/
Copy pathbet_sizing.h
File metadata and controls
39 lines (31 loc) · 997 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
#pragma once
#include <Eigen/Dense>
#include "Node.h"
#include "arguments.h"
#include "game_settings.h"
#include "Windows.h"
#include <algorithm>
#include <memory>
using namespace std;
class bet_sizing_manager
{
public:
bet_sizing_manager();
// Constructor
// @param pot_fractions a list of fractions of the pot which are allowed
// as bets, sorted in ascending order
bet_sizing_manager(const VectorX& pot_fractions);
// Gives the bets which are legal at a game state.
// @param node a representation of the current game state, with fields :
//
// * `bets`: the number of chips currently committed by each player
//
// * `current_player`: the currently acting player
// @return an Nx2 tensor where N is the number of new possible game states,
// containing N sets of new commitment levels for each player.
ArrayX2f get_possible_bets(const Node& node);
// Sets new _pot_fractions value
void SetPotFraction(const VectorX& potFractions);
private:
VectorX _pot_fractions;
};