예제 #1
0
        public void Glider()
        {
            game = new Game(20, 20);
            game.Set(0, 2, true);
            game.Set(1, 3, true);
            game.Set(2, 1, true);
            game.Set(2, 2, true);
            game.Set(2, 3, true);

            for (int i = 0; i < 100; i++)
            {
                game.Tick();
                game.Draw();
                Thread.Sleep(100);
            }
        }
        public static void Main()
        {
            var game = new Game(80, 26);

            // Glider
            game.Set(0, 2, true);
            game.Set(1, 3, true);
            game.Set(2, 1, true);
            game.Set(2, 2, true);
            game.Set(2, 3, true);
            while (true)
            {
                game.Tick();
                game.Draw();
                Thread.Sleep(100);
            }
        }
예제 #3
0
 public void DrawGame()
 {
     game.Draw();
 }