Beispiel #1
0
        static void Main()
        {
            do
            {
                PrintHeader(HeaderMessage);
                BoardGame board = ConfigureGrid();
                board.GenerateGrid();
                do
                {
                    Console.Clear();
                    PrintHeader(HeaderMessage);
                    board.PrintGrid(false);
                    board.PrintUtilitiesMessages();
                    board.ReadQuadrant("Please enter a column and row(e.g.A8): ");
                } while (board.GameOver == false);
                Console.Clear();
                PrintHeader(HeaderMessage);
                board.PrintGrid(true);
                board.PrintGameOverMessage();
            } while (!Console.ReadLine().Equals("QUIT", StringComparison.InvariantCultureIgnoreCase));

            Console.ReadLine();
        }