Grail (C++)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
Interface that encapsulates an algorithm responsible for action-selection inside SimulatedGame (MCTS). This action-selection is performed in certain situations instead of sampling from the whole action space. The goal is to reduce the combinatorial complexity or just provide scripted behavior in certain moments of the game. More...
#include <ISimulatedGameHeuristic.hh>
Public Member Functions | |
virtual std::unique_ptr< ISimulatedGameAction > | GetAction () const =0 |
If IsHeuristicSituation() function returns true, then this method returns action to be executed. | |
virtual bool | IsHeuristicSituation (const ISimulatedGameUnit &unit) const =0 |
This function tests whether the heuristic should apply in the current moment in the game. More... | |
Interface that encapsulates an algorithm responsible for action-selection inside SimulatedGame (MCTS). This action-selection is performed in certain situations instead of sampling from the whole action space. The goal is to reduce the combinatorial complexity or just provide scripted behavior in certain moments of the game.
|
pure virtual |
This function tests whether the heuristic should apply in the current moment in the game.
unit |