예제 #1
0
        static async Task Main()
        {
            GameOfLife          gameOfLife      = new GameOfLife(40, 90);
            GoL_GraphicsManager graphicsManager = new GoL_GraphicsManager(gameOfLife);

            while (true)
            {
                graphicsManager.Draw();
                gameOfLife.SpawnNextGeneration();
                await Task.Delay(125);
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            GameOfLife          gameOfLife      = new GameOfLife(40, 90);
            GoL_GraphicsManager graphicsManager = new GoL_GraphicsManager(gameOfLife);

            while (true)
            {
                graphicsManager.Draw();
                gameOfLife.SpawnNextGeneration();
                Thread.Sleep(125);
            }
        }