Beispiel #1
0
 public static void SaveSolution(int pathsAmount, bool first = false)
 {
     SaveLabel++;
     if (first)
     {
         CurrentSolution.Add(GetPath(true));
         CurSolAntsDis[0] = Map.AntsNumber;
         return;
     }
     for (var pathIndex = 0; pathIndex < pathsAmount; pathIndex++)
     {
         NextSolution.Add(GetPath());
     }
 }