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(); }
public void TestSeedWithSquare2() { // test correct second parameter World myWorld = new World(10); myWorld.SeedWithSquare(1, -5, 10); }
public void TestSeedWithSquare3() { // test correct third parameter World myWorld = new World(10); myWorld.SeedWithSquare(5, 5, 20); }
public void TestSeedWithSquare1() { // test correct first parameter World myWorld = new World(10); myWorld.SeedWithSquare(-1, 5, 10); }