static void Main(string[] args) { Console.CursorVisible = false; var sweeper = new Sweeper(autoSweep: true); sweeper.Run(); }
static void Main(string[] args) { Console.CursorVisible = false; var sweeper = new Sweeper(); Task.Run(() => sweeper.Run()); while (true) { if (Console.ReadKey(true).Key == ConsoleKey.Enter) { sweeper.Sweep(); } } }