1 #ifndef GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
2 #define GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
4 #include "ISimulatedGameUnit.hh"
5 #include "ISimulatedGameAction.hh"
13 class SimulatedGameRuntime;
38 virtual size_t GetRandomActionIndex(std::vector<std::unique_ptr<const ISimulatedGameAction>>& actions, RandomGenerator& rand_gen)
const;
41 bool IsStochastic()
const final;
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:27
The main interface class for the SimulatedGame reasoner based on the MCTS algorithm....
Definition: SimulatedGame.hh:29
This class should not be visible to developers at all.
Definition: SimulatedGameNode.h:24
A base class of a unit in SimulatedGame that peforms actions according to some probability distributi...
Definition: SimulatedGameStochasticUnit.hh:22
virtual int GetTeamIndex() const
TeamIndex is relevant for SimulatedGameStochasticUnit only for GUI purposes (to show it as a separate...
Definition: SimulatedGameStochasticUnit.cpp:7
virtual size_t GetRandomActionIndex(std::vector< std::unique_ptr< const ISimulatedGameAction >> &actions, RandomGenerator &rand_gen) const
This function returns index of the action (rather than the action itself) chosen according to the uni...
Definition: SimulatedGameStochasticUnit.cpp:12