示例#1
0
        public static void GameExecutor()
        {
            IChart chart = new Chart();
            int[,] matrix = GenerateBoard();
            PrintBoard(matrix);
            int userMoves = 0;
            string userInput = string.Empty;

            while (userInput != "EXIT")
            {
                Console.WriteLine("Enter a row and column: ");
                userInput = Console.ReadLine();
                userInput = userInput.ToUpper().Trim();

                try
                {
                    ProcessGame(userInput, ref matrix, chart, ref userMoves);
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Wrong input! Try Again!" + ex.Message);
                }
            }
        }
示例#2
0
 public void GoodEnoughForChartTest()
 {
     Chart testChart = new Chart();
 }