1 #ifndef GRAIL_SIMULATED_GAME_HELPER_H
2 #define GRAIL_SIMULATED_GAME_HELPER_H
6 #include "SimulatedGameRuntime.hh"
12 class SimulatedGameNode;
13 class SimulatedGameObserverForGUI;
19 void SetTeamCount(
int teamCount);
20 void SetExplorationRatio(
double exploratioRatio);
21 void SetFreezeVisitsTreshold(
size_t treshold);
29 void Backpropagation();
34 double explorationConstant;
35 size_t freezeVisitsTreshold;
36 std::vector<SimulatedGameNode*> visitedNodes;
37 std::vector<size_t> actionIndicesHistory;
38 std::unique_ptr<SimulatedGameRuntime> runtimeControl;
Definition: SimulatedGameObserverForGUI.h:22
Definition: SimulatedGameHelper.h:17
void ApplyActions() const
Applies deferred actions (to be called when the process falls out of the tree and Monte Carlo phase i...
Definition: SimulatedGameHelper.cpp:37
void BackpropagationWithTerminal(std::vector< float > &scores)
This is backpropagation that checks whether a state is terminal.
Definition: SimulatedGameHelper.cpp:62
void Reset()
Resets to a state adequate to the start of a new simulation.
Definition: SimulatedGameHelper.cpp:30