(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
SimulatedGameActionMetadata.hh
1 #ifndef GRAIL_SIMULATED_GAME_ACTION_METADATA_H
2 #define GRAIL_SIMULATED_GAME_ACTION_METADATA_H
3 
4 #include <string>
5 
6 namespace grail
7 {
8  namespace simulation
9  {
10  class ISimulatedGameAction;
11 
14  {
21  SimulatedGameActionMetadata(double score, int visits, const ISimulatedGameAction* action);
22 
23  std::string ToString();
24 
28  double Score = 0;
29 
34  int Visits = 0;
35 
37  const ISimulatedGameAction* Action = nullptr;
38  };
39  }
40 }
41 #endif //GRAIL_SIMULATED_GAME_ACTION_METADATA_H
Definition: Action.hh:11
Base class for all actions in SimulatedGame. Derive from it for your actions.
Definition: ISimulatedGameAction.hh:41
This class represents action defined in the SimulatedGames module with additional statistics (score,...
Definition: SimulatedGameActionMetadata.hh:14
double Score
The average score of performing this action from the perspective of the unit that performed it.
Definition: SimulatedGameActionMetadata.hh:28
int Visits
The number of times the action has been tested by the MCTS algorithm. The @Score value is an average ...
Definition: SimulatedGameActionMetadata.hh:34
SimulatedGameActionMetadata(double score, int visits, const ISimulatedGameAction *action)
Constructs a new SimulatedGameActionMetadata object.
Definition: SimulatedGameActionMetadata.cpp:8