![Logo](grail-logo-documentation2.png) |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_SIMULATED_GAME_RUNTIME_H
2 #define GRAIL_SIMULATED_GAME_RUNTIME_H
24 void SetScore(
int player,
float score);
35 std::vector<float> scores{};
37 bool terminationRequest =
false;
45 #endif //GRAIL_SIMULATED_GAME_RUNTIME_H
This class should not be visible to developers at all.
Definition: SimulatedGameNode.h:23
float GetScore(int player) const
Gets the score value set for a given player.
Definition: SimulatedGameRuntime.cpp:8
The main interface class for the SimulatedGame reasoner based on the MCTS algorithm....
Definition: SimulatedGame.hh:28
void SetScore(int player, float score)
Sets value in the array of scores indexed by teams. See @teamCount in SimulatedGame constructor or @t...
Definition: SimulatedGameRuntime.cpp:13
Definition: SimulatedGameHelper.h:16
An interface that is used to terminate simulation in MCTS and set scores to players....
Definition: SimulatedGameRuntime.hh:15
bool IsTerminationRequest() const
Checks whether the terminationProperty has been set by calling the corresponding setTerminationReques...
Definition: SimulatedGameRuntime.cpp:18
void SetTerminationRequest()
Call this function to indicate that the game has ended, i.e. the terminal conditions have been met.
Definition: SimulatedGameRuntime.cpp:23