Skip to content

Commit

Permalink
Fix simulation end
Browse files Browse the repository at this point in the history
adjusted location of the Console.ReadLine() so that user doesn't have to press enter after the last generation to end the program
  • Loading branch information
DamanjitG committed Jul 30, 2020
1 parent 7283e90 commit 88894f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ static void Main(string[] args)
{
Console.WriteLine();
Console.WriteLine("Press enter to display the next generation");
Console.ReadLine();
}
Console.ReadLine();
}
Console.WriteLine();
Console.WriteLine("The simulation has ended.");
//Test test = new Test();
}
Expand Down

0 comments on commit 88894f1

Please sign in to comment.