KiTraining
 All Data Structures Functions
Public Member Functions | Data Fields
ai::AI Class Reference

Public Member Functions

 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 >
 

Data Fields

ml::Mlp
< aiTools::State::FEATURE_VEC_LEN, 200, 200, 1 > 
stateEstimator
 

Member Function Documentation

auto ai::AI::getNextAction ( const communication::messages::broadcast::Next &  next) const -> std::optional<communication::messages::request::DeltaRequest>

Returns the AIs next action

Parameters
next
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
statenew State
winningSideTeamSide of the winning team if game ended, nullopt otherwise
sideTeamSide 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: