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

An interface that is used to terminate simulation in MCTS and set scores to players. Scores are grabbed from here whenever a simulation ends. It is created automatically. More...

#include <SimulatedGameRuntime.hh>

Public Member Functions

 SimulatedGameRuntime (int teamCount)
 
float GetScore (int player) const
 Gets the score value set for a given player.
 
void SetScore (int player, float score)
 Sets value in the array of scores indexed by teams. See in SimulatedGame constructor or property in class.
 
bool IsTerminationRequest () const
 Checks whether the terminationProperty has been set by calling the corresponding setTerminationRequest().
 
void SetTerminationRequest ()
 Call this function to indicate that the game has ended, i.e. the terminal conditions have been met.
 

Friends

struct SimulatedGameHelper
 
class SimulatedGame
 
class SimulatedGameNode
 

Detailed Description

An interface that is used to terminate simulation in MCTS and set scores to players. Scores are grabbed from here whenever a simulation ends. It is created automatically.


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