Grail (C#)  1.2.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.SimulatedGames.SimulatedGameActionMetadata Class Reference

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

Public Member Functions

 SimulatedGameActionMetadata (double score, int visits, in ISimulatedGameAction action)
 Constructs a new SimulatedGameActionMetadata object. More...
 
override string ToString ()
 

Properties

double Score [get]
 The average score of performing this action from the perspective of the unit that performed it. More...
 
int Visits [get]
 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...
 
ISimulatedGameAction Action [get]
 The action. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ SimulatedGameActionMetadata()

Grail.SimulatedGames.SimulatedGameActionMetadata.SimulatedGameActionMetadata ( double  score,
int  visits,
in ISimulatedGameAction  action 
)
inline

Constructs a new SimulatedGameActionMetadata object.

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

Property Documentation

◆ Action

ISimulatedGameAction Grail.SimulatedGames.SimulatedGameActionMetadata.Action
get

The action.

◆ Score

double Grail.SimulatedGames.SimulatedGameActionMetadata.Score
get

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

◆ Visits

int Grail.SimulatedGames.SimulatedGameActionMetadata.Visits
get

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 class was generated from the following file: