public override bool ProcessInput(string input)
        {
            if (Input.CommandCount == 0)
            {
                Input.CommandCount = int.Parse(input);
                return(true);
            }

            return(NextInputHandler.ProcessInput(input));
        }
Exemplo n.º 2
0
        public override bool ProcessInput(string input)
        {
            if (Input.InitialPosition == null)
            {
                var initialPosition = Array.ConvertAll(input.Split(' '), int.Parse);
                Input.InitialPosition = new Position(initialPosition[0], initialPosition[1]);
                return(true);
            }

            return(NextInputHandler.ProcessInput(input));
        }