public SkirmishNetworkEvaluator(uint agents, string shape)
 {
     numAgents = agents;
     substrate = new SkirmishSubstrate(5 * agents, 3 * agents, 5 * agents, HyperNEATParameters.substrateActivationFunction);
     try
     {
         currentShape = (Shapes)Enum.Parse(typeof(Shapes), shape, true);
     }
     catch(ArgumentException ex)
     {
         Console.WriteLine("Invalid Shape Entered, Defaulting to Triangle");
         currentShape = Shapes.Triangle;
     }
 }
Exemple #2
0
 public SkirmishNetworkEvaluator(uint agents, string shape)
 {
     numAgents = agents;
     substrate = new SkirmishSubstrate(5 * agents, 3 * agents, 5 * agents, HyperNEATParameters.substrateActivationFunction);
     try
     {
         currentShape = (Shapes)Enum.Parse(typeof(Shapes), shape, true);
     }
     catch (ArgumentException)
     {
         Console.WriteLine("Invalid Shape Entered, Defaulting to Triangle");
         currentShape = Shapes.Triangle;
     }
 }
Exemple #3
0
 private void setupSubstrate()
 {
     if (isMulti)
     {
         substrate = new SkirmishSubstrate(25, 15, 25, HyperNEATParameters.substrateActivationFunction);
         network = substrate.generateMultiGenomeModulus(seedGenome.Decode(null), 5).Decode(null);
     }
     else
     {
         substrate = new SkirmishSubstrate(5, 3, 5, HyperNEATParameters.substrateActivationFunction);
         network = substrate.generateGenome(seedGenome.Decode(null)).Decode(null);
     }
 }