mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Adjusted message of "invalid" generations, matching the original.
This commit is contained in:
@@ -96,9 +96,8 @@ void ProcessSimulation()
|
|||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"GENERATION: {simulation.Generation}\tPOPULATION: {simulation.Population}");
|
var invalidText = isInvalid ? "INVALID!" : "";
|
||||||
if (isInvalid)
|
Console.WriteLine($"GENERATION: {simulation.Generation}\tPOPULATION: {simulation.Population} {invalidText}");
|
||||||
Console.WriteLine("INVALID!");
|
|
||||||
|
|
||||||
simulation.StartNewGeneration();
|
simulation.StartNewGeneration();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user