Adjusted message of "invalid" generations, matching the original.

This commit is contained in:
Dyego Maas
2022-01-12 20:22:26 -03:00
parent d52981de73
commit b93cc409e2

View File

@@ -96,9 +96,8 @@ void ProcessSimulation()
while (true)
{
Console.WriteLine($"GENERATION: {simulation.Generation}\tPOPULATION: {simulation.Population}");
if (isInvalid)
Console.WriteLine("INVALID!");
var invalidText = isInvalid ? "INVALID!" : "";
Console.WriteLine($"GENERATION: {simulation.Generation}\tPOPULATION: {simulation.Population} {invalidText}");
simulation.StartNewGeneration();