private BattleExperiment CreateExperiment(int warriors) { var experiment = new BattleExperiment(); var battleEvaluator = new BattleEvaluator<NeatGenome>(this); experiment._ea = experiment.CreateEvolutionAlgorithm(battleEvaluator, warriors); Debug.Log("Experiment created"); return experiment; }
public void LoadPopulation(string filename) { var battleEvaluator = new BattleEvaluator<NeatGenome>(this); experiment.CreateEvolutionAlgorithm(battleEvaluator, experiment.LoadPopulation(filename, AmoutOfWarriorsOwns)); }