static void Main(string[] args) { World myWorld = new World(20); //myWorld.RamdomlySeedTheWorld(); //myWorld.SeedWithBlinkers(); //myWorld.SeedWithToad(); myWorld.SeedWithGlider(); //myWorld.SeedWithFourLevelPyramid(); myWorld.SeedWithSquare(2, 2, 10); myWorld.DisplayWorld(); Console.WriteLine(" -- SEED--"); Console.ReadLine(); for (int i = 0; i < 60; i++) { myWorld.ApplyTheRulesOfTheGame(); myWorld.DisplayWorld(); Console.WriteLine("Generation {0}", i + 1); //Console.ReadLine(); System.Threading.Thread.Sleep(750); } Console.ReadLine(); }
static void Main(string[] args) { World myWorld = new World(20); myWorld.RamdomlySeedTheWorld(); myWorld.DisplayWorld(); Console.WriteLine("SEED"); Console.ReadLine(); for (int i = 0; i < 40; i++) { myWorld.ApplyTheRulesOfTheGame(); Console.WriteLine("Generation {0}", i + 1); System.Threading.Thread.Sleep(1000); } Console.ReadLine(); }