示例#1
0
        public void RenderGetDimentions()
        {
            Console.WriteLine("What is the size of the board you would like");
            string size = Console.ReadLine();

            while (true)
            {
                if (ValidateDimentionInput(size))
                {
                    break;
                }
                else
                {
                    Console.WriteLine("Try Again. Make sure you input a number between 5 and 20!\n\n");
                    size = Console.ReadLine();
                }
            }
            gameController.SetBoardDimentions(int.Parse(size));
        }