private static void Main() { Console.Title = "Conway's Game of Life"; Console.OutputEncoding = Encoding.Unicode; Console.CursorVisible = false; Console.WindowWidth = 90; Console.BufferWidth = 90; Console.WindowHeight = 40; Console.BufferHeight = 40; Console.BackgroundColor = ConsoleColor.Gray; Console.Clear(); Console.ForegroundColor = ConsoleColor.Black; var userConfig = UserConfig.UserInput(); var gameOfLife = new GameOfLife(userConfig); gameOfLife.Initialise(); gameOfLife.Run(); }
static void Main() { using (var game = new GameOfLife()) game.Run(); }