 |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_SIMULATED_GAME_HEURISTIC
2 #define GRAIL_SIMULATED_GAME_HEURISTIC
10 class ISimulatedGameUnit;
11 class ISimulatedGameAction;
24 virtual std::unique_ptr<ISimulatedGameAction>
GetAction()
const = 0;
35 #endif //GRAIL_SIMULATED_GAME_HEURISTIC
Interface that encapsulates an algorithm responsible for action-selection inside SimulatedGame (MCTS)...
Definition: ISimulatedGameHeuristic.hh:18
virtual bool IsHeuristicSituation(const ISimulatedGameUnit &unit) const =0
This function tests whether the heuristic should apply in the current moment in the game.
virtual std::unique_ptr< ISimulatedGameAction > GetAction() const =0
If @IsHeuristicSituation() function returns true, then this method returns action to be executed.
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:26