Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Standard Ctor
 /// </summary>
 /// <param name="gol">Game of Life object to be rendered</param>
 public GoL_GraphicsManager(GameOfLife gol)
 {
     m_gol = gol;
     Console.CursorVisible = false;
     Console.SetWindowSize(100, 45);
 }