Grail (C++)  1.1.1
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 @teamCount in SimulatedGame constructor or @teamIndex property in @ISimulatedGameUnit 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: