예제 #1
0
 public static IEnumerable <IStrategy> MakeStrategies(ManipulatorGrowthStrategy manipStrategy)
 {
     foreach (var boostersCount in boostersCount)
     {
         yield return(new CollectBoostersStrategy(boostersCount, manipStrategy));
     }
 }
예제 #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;
 }
예제 #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));
                 }
             }
         }
     }
 }
예제 #4
0
 public CollectBoostersStrategy(int boostersCount, ManipulatorGrowthStrategy manipStrategy)
 {
     this.boostersCount = boostersCount;
     this.manipStrategy = manipStrategy;
 }