public static TycheAgentCompetition GetTrainingAgent(float biasFactor = -1.0f, bool useSecrets = false) { const bool ADJUST_EPISODES = false; const bool HERO_BASED_WEIGHTS = false; var weights = TyStateWeights.GetDefault(); if (biasFactor >= 0.0f) { weights.SetWeight(TyStateWeights.WeightType.BiasFactor, biasFactor); } var agent = new TycheAgentCompetition(weights, HERO_BASED_WEIGHTS, 0, ADJUST_EPISODES); agent.UsedAlgorithm = Algorithm.Greedy; agent._analyzer.EstimateSecretsAndSpells = useSecrets; return(agent); }
public TycheAgentCompetition(double time) : this(TyStateWeights.GetDefault(), true, DEFAULT_NUM_EPISODES_MULTIPLIER, true) { MAX_TIME = time; }
public static TycheAgentCompetition GetSearchTreeAgent(int episodeMultiplier) { return(new TycheAgentCompetition(TyStateWeights.GetDefault(), true, episodeMultiplier, true)); }