Moving pause location to the end of iteration.

This commit is contained in:
Dyego Maas
2022-01-11 20:47:08 -03:00
parent 3ffd2fdc52
commit c7c3d68a2e

View File

@@ -107,9 +107,6 @@ void ProcessSimulation()
while (true)
{
if (pauseBetweenIterations > TimeSpan.Zero)
Thread.Sleep(pauseBetweenIterations);
Console.WriteLine($"GENERATION: {simulation.Generation}\tPOPULATION: {simulation.Population}");
if (isInvalid)
Console.WriteLine("INVALID!");
@@ -242,6 +239,9 @@ void ProcessSimulation()
minY--;
maxX++;
maxY++;
if (pauseBetweenIterations > TimeSpan.Zero)
Thread.Sleep(pauseBetweenIterations);
}
}