示例#1
0
 static void StartOrRestartEvolution(string userName)
 {
     // If the user name is not registered, then it is a new process and we need to
     // create the evolution algorithm.
     if (!ActiveUsersList <NeatGenome> .DoesUserHaveEvolAlg(userName))
     {
         System.Diagnostics.Debug.WriteLine("Starting evolution process...");
         TryLaunchEvolution(LaunchEvolution, userName);
     }
     else
     {
         System.Diagnostics.Debug.WriteLine("Re-starting evolution process...");
         TryLaunchEvolution(ReLaunchEvolution, userName);
     }
 }