|
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_SIMULATED_GAME_HELPER_H
2 #define GRAIL_SIMULATED_GAME_HELPER_H
6 #include "SimulatedGameRuntime.hh"
12 class SimulatedGameNode;
13 class SimulatedGameSnapshotObserver;
19 void SetTeamCount(
int teamCount);
20 void SetExplorationRatio(
double explorationRatio);
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{};
44 #endif //GRAIL_SIMULATED_GAME_HELPER_H
void Reset()
Resets to a state adequate to the start of a new simulation.
Definition: SimulatedGameHelper.cpp:29
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:36
Definition: SimulatedGameHelper.h:16
Definition: SimulatedGameSnapshotObserver.h:21
void BackpropagationWithTerminal(std::vector< float > &scores)
This is backpropagation that checks whether a state is terminal.
Definition: SimulatedGameHelper.cpp:62