(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::simulation::SimulatedGameActionMetadata Struct Reference

This class represents action defined in the SimulatedGames module with additional statistics (score, visits). More...

#include <SimulatedGameActionMetadata.hh>

Collaboration diagram for grail::simulation::SimulatedGameActionMetadata:

Public Member Functions

 SimulatedGameActionMetadata (double score, int visits, const ISimulatedGameAction *action)
 Constructs a new SimulatedGameActionMetadata object. More...
 
std::string ToString ()
 

Public Attributes

double Score = 0
 The average score of performing this action from the perspective of the unit that performed it. More...
 
int Visits = 0
 The number of times the action has been tested by the MCTS algorithm. The value is an average value computed after taking the number of samples equal to . More...
 
const ISimulatedGameActionAction = nullptr
 The action.
 

Detailed Description

This class represents action defined in the SimulatedGames module with additional statistics (score, visits).

Constructor & Destructor Documentation

grail::simulation::SimulatedGameActionMetadata::SimulatedGameActionMetadata ( double  score,
int  visits,
const ISimulatedGameAction action 
)

Constructs a new SimulatedGameActionMetadata object.

Parameters
scorethe average score (quality)
visitsthe number of times the action has been tested
action

Member Data Documentation

double grail::simulation::SimulatedGameActionMetadata::Score = 0

The average score of performing this action from the perspective of the unit that performed it.

int grail::simulation::SimulatedGameActionMetadata::Visits = 0

The number of times the action has been tested by the MCTS algorithm. The value is an average value computed after taking the number of samples equal to .


The documentation for this struct was generated from the following files: