Beispiel #1
0
        public int EnterColumn()
        {
            utilities.EnterColumnPrompt("noError");
            string columnInput = Console.ReadLine();

            while (!Validator.IsValidColumn(columnInput))
            {
                utilities.EnterColumnPrompt("error");
                columnInput = Console.ReadLine();
            }
            return(StringConverters.StringToInt(columnInput));
        }
Beispiel #2
0
        public string EnterOrientation()
        {
            utilities.EnterOrientationPrompt("noError");
            string orientationInput = Console.ReadLine();
            string orientation      = StringConverters.Orientation(orientationInput);

            while (orientation == ConstantsHandler.ORIENTATION_INPUT_ERROR)
            {
                utilities.EnterOrientationPrompt("error");
                orientationInput = Console.ReadLine();
                orientation      = StringConverters.Orientation(orientationInput);
            }
            return(orientation);
        }