Esempio n. 1
0
 public static IEnumerable <IStrategy> MakeStrategies(ManipulatorGrowthStrategy manipStrategy)
 {
     foreach (var boostersCount in boostersCount)
     {
         yield return(new CollectBoostersStrategy(boostersCount, manipStrategy));
     }
 }
Esempio n. 2
0
 public BfsStrategy(
     ManipulatorGrowthStrategy manipStrategy,
     int recalcDistsFromCenterCount,
     int bfsExtraDepth,
     bool removeTurns,
     int numVisCoeff)
 {
     this.manipStrategy = manipStrategy;
     this.recalcDistsFromCenterCount = recalcDistsFromCenterCount;
     this.bfsExtraDepth = bfsExtraDepth;
     this.removeTurns   = removeTurns;
     this.numVisCoeff   = numVisCoeff;
 }
Esempio n. 3
0
 public static IEnumerable <IStrategy> MakeStrategies(ManipulatorGrowthStrategy manipStrategy)
 {
     foreach (var recalcsTime in new[] { 1, 10 })
     {
         foreach (var extraDepth in new[] { 1, 2, 3, 4, 5, })
         {
             foreach (var removeTurns in new[] { true, false })
             {
                 foreach (var numVisCoeff in new[] { 0, 1 })
                 {
                     yield return(new BfsStrategy(
                                      manipStrategy,
                                      recalcsTime,
                                      extraDepth,
                                      removeTurns,
                                      numVisCoeff));
                 }
             }
         }
     }
 }
Esempio n. 4
0
 public CollectBoostersStrategy(int boostersCount, ManipulatorGrowthStrategy manipStrategy)
 {
     this.boostersCount = boostersCount;
     this.manipStrategy = manipStrategy;
 }