static void Main(string[] args) { Game game = new OscilatorGame(OscilatorGame.GameType.Beacon, MAX_GENERATIONS); while (game.CurrentGeneration <= game.MaxGenerations) { game.Show(); game.Evolve(); Thread.Sleep(100); } Console.WriteLine("Evaluation ended!\nPress any key to exit..."); Console.ReadKey(); }
static void Main(string[] args) { //Game game = new OscilatorGame(OscilatorGame.GameType.Beacon, MAX_GENERATIONS); //while (game.CurrentGeneration <= game.MaxGenerations) //{ // game.Show(); // game.Evolve(); // Thread.Sleep(1000); //} //Console.WriteLine("Evaluation ended!\nPress any key to exit..."); //Console.ReadKey(); Game game = new OscilatorGame(OscilatorGame.GameType.Pulsar, MAX_GENERATIONS); while (game.CurrentGeneration <= game.MaxGenerations) { game.Show(); game.Evolve(); Thread.Sleep(1000); } Console.WriteLine("Evaluation ended!\nPress any key to exit..."); Console.ReadKey(); }
static void Main(string[] args) { // Instanciranje na objekt od igrata Game game = new OscilatorGame(OscilatorGame.GameType.Pulsar, MAX_GENERATIONS); while (game.CurrentGeneration <= game.MaxGenerations) { game.Show(); game.Evolve(); Thread.Sleep(100); } /* Game game2 = new StillLifeGame(StillLifeGame.GameType.Beehive, MAX_GENERATIONS); * while (game2.CurrentGeneration <= game2.MaxGenerations) * { * game2.Show(); * game2.Evolve(); * Thread.Sleep(500); * * }*/ Console.WriteLine("Evaluation ended!\nPress any key to exit..."); Console.ReadKey(); }