Exemplo n.º 1
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("Starting the game of life...");
            var game = new GameOfLife(20, 20, null);
            game.DrawBoard();
            System.Console.ReadLine();

            Observable.Interval(TimeSpan.FromMilliseconds(200)).Subscribe(l => { game.AdvanceGeneration(); game.DrawBoard(); });

            System.Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("Starting the game of life...");
            var game = new GameOfLife(20, 20, null);

            game.DrawBoard();
            System.Console.ReadLine();

            Observable.Interval(TimeSpan.FromMilliseconds(200)).Subscribe(l => { game.AdvanceGeneration(); game.DrawBoard(); });

            System.Console.ReadLine();
        }