Beispiel #1
0
        static void Main(string[] args)
        {
            Console.OutputEncoding  = Encoding.UTF8;
            Console.BackgroundColor = ConsoleColor.Black;
            Console.ForegroundColor = ConsoleColor.DarkRed;

            int  width = 40, height = 20, spawnProbability = 7;
            char aliveCell = '0', deadCell = ' ';

            Console.Read();
            GameOfLife game = new GameOfLife(width, height, 1, aliveCell, deadCell);

            game.RandomFill(spawnProbability);
            game.Start();
        }