(C++)  1.0.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 @Score value is an average value computed after taking the number of samples equal to @Visits. 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

◆ SimulatedGameActionMetadata()

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

◆ Score

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

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

◆ Visits

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

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



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