Handle on a vector of victory status for each game, giving easy access to relevant figures.
More...
#include <bandit.h>
|
BuildOrderConfig | config |
| Configuration for the build, providing acceptable races and priors This is not serialized, because the configuration needs to be implemented in one and only one location (see buildOrderConfigurations). More...
|
|
Handle on a vector of victory status for each game, giving easy access to relevant figures.
cherrypi::model::BuildOrderCount::BuildOrderCount |
( |
| ) |
|
|
inline |
void cherrypi::model::BuildOrderCount::addGame |
( |
bool |
won | ) |
|
|
inline |
Adds a value to the win history vector.
int cherrypi::model::BuildOrderCount::numGames |
( |
| ) |
const |
|
inline |
int cherrypi::model::BuildOrderCount::numLosses |
( |
| ) |
const |
|
inline |
int cherrypi::model::BuildOrderCount::numWins |
( |
| ) |
const |
|
inline |
template<class Archive >
void cherrypi::model::BuildOrderCount::serialize |
( |
Archive & |
ar | ) |
|
|
inline |
std::string cherrypi::model::BuildOrderCount::statusString |
( |
| ) |
const |
|
inline |
Returns a string of type "{numWins}/{numGames}" which is only useful for fast debugging and testing.
void cherrypi::model::BuildOrderCount::updateLastGame |
( |
bool |
won | ) |
|
Updates the last value of the win history vector.
float cherrypi::model::BuildOrderCount::winRate |
( |
| ) |
const |
|
inline |
const std::vector<bool>& cherrypi::model::BuildOrderCount::wins |
( |
| ) |
const |
|
inline |
Configuration for the build, providing acceptable races and priors This is not serialized, because the configuration needs to be implemented in one and only one location (see buildOrderConfigurations).
It must therefore be populated when required.
The documentation for this class was generated from the following files:
- src/models/bandit.h
- src/models/bandit.cpp