|
| AI (const std::shared_ptr< gameModel::Environment > &env, gameModel::TeamSide mySide, double learningRate, double discountRate, util::Logging log) |
|
void | update (const aiTools::State &state, const std::optional< gameModel::TeamSide > &winningSide, const std::optional< gameModel::TeamSide > &side) |
|
auto | getNextAction (const communication::messages::broadcast::Next &next) const -> std::optional< communication::messages::request::DeltaRequest > |
|
|
ml::Mlp
< aiTools::State::FEATURE_VEC_LEN, 200, 200, 1 > | stateEstimator |
|
auto ai::AI::getNextAction |
( |
const communication::messages::broadcast::Next & |
next | ) |
const -> std::optional<communication::messages::request::DeltaRequest> |
Returns the AIs next action
- Parameters
-
- Returns
void ai::AI::update |
( |
const aiTools::State & |
state, |
|
|
const std::optional< gameModel::TeamSide > & |
winningSide, |
|
|
const std::optional< gameModel::TeamSide > & |
side |
|
) |
| |
Updates the internal State
- Parameters
-
state | new State |
winningSide | TeamSide of the winning team if game ended, nullopt otherwise |
side | TeamSide of the team that was responsible for the last action, nullopt if not during player phase |
The documentation for this class was generated from the following files:
- /home/travis/build/SoPra-Team-10/KI-Training/src/AI/AI.h
- /home/travis/build/SoPra-Team-10/KI-Training/src/AI/AI.cpp