示例#1
0
        private static void Main(string[] args)
        {
            while (true)
            {
                int size      = GetSize();
                int bombCount = GetBombCount();

                Board playBoard = new Board(size, bombCount);

                while (!playBoard.GameOver())
                {
                    playBoard.Render();

                    playBoard.HandleInput(Console.ReadLine());
                }

                playBoard.Render();

                Console.WriteLine("You Lose! Try again!");
            }
        }