예제 #1
0
        public int AskForNumberOfPlayers()
        {
            UserInterface.AskNumberOfPlayersPrompt();
            int response;

            while (!int.TryParse(Console.ReadLine(), out response) || response < 1 || response > 2)
            {
                UserInterface.InvalidResponse();
                UserInterface.AskNumberOfPlayersPrompt();
            }
            return(response);
        }