Exemple #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);
            }
        }
        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);
            }
        }