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

A base class of a unit related to a rational/intelligent player. MCTS chooses actions for this kind of unit. See also SimulatedGameStochasticUnit. All units together represent the game state. More...

Inheritance diagram for Grail.SimulatedGames.SimulatedGameThinkingUnit:
Collaboration diagram for Grail.SimulatedGames.SimulatedGameThinkingUnit:

Properties

List< OfflineLearnerOfflineLearners [get, set]
 Add or remove objects for OfflineLearning. See and Offline Learning in SimulatedGames. More...
 
- Properties inherited from Grail.SimulatedGames.ISimulatedGameUnit
abstract uint TeamIndex [get]
 Returns the index of a team. Units with the same team index share the same game score. More...
 
List< ISimulatedGameHeuristicHeuristicReasoners [get]
 Add or remove heuristic. See . Heuristic is used to provide the action to play in certain moments without considering all the options. More...
 

Additional Inherited Members

- Public Member Functions inherited from Grail.SimulatedGames.ISimulatedGameUnit
abstract void Reset ()
 Resets state of the unit to the beginning of the SimulatedGame. More...
 
abstract List< ISimulatedGameActionGetAvailableActions ()
 Returns the actions the unit may perform. This method must always return the same set of actions in the same state. You can reuse ISimulatedGameAction objects, but create a new list before returning. More...
 
virtual ISimulatedGameAction GetRandomAvailableAction (Random random)
 Returns a random action to be chosen in simulation. The default implementation samples from GetAvailableActions(). Override the method if you are able to return a uniform random action without the need of computing all available actions. More...
 
virtual void AfterAction (in SimulatedGameRuntime gameRuntime)
 This method is called after action.Apply(). You may insert custom logic here - for example - code that always needs to be executed after any action. More...
 
virtual void FillDebugRepresentation (Dictionary< string, string > nameValueDictionary)
 Method used to gather data for GUI-based debugging. Insert properties of the state (key, value) you wish to view in the debugging tool. More...
 

Detailed Description

A base class of a unit related to a rational/intelligent player. MCTS chooses actions for this kind of unit. See also SimulatedGameStochasticUnit. All units together represent the game state.

Property Documentation

◆ OfflineLearners

List<OfflineLearner> Grail.SimulatedGames.SimulatedGameThinkingUnit.OfflineLearners
getset

Add or remove objects for OfflineLearning. See and Offline Learning in SimulatedGames.


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