示例#1
0
        private int GetGridSize()
        {
            var userInputGridSize = "";
            int size;

            while (!_userInputValidation.IsInitialGridSizeValid(userInputGridSize, out size))
            {
                Console.WriteLine("Please enter a grid size between 2 and 10: ");
                userInputGridSize = Console.ReadLine();
            }

            return(size);
        }