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); } }
/// <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); }