Exemple #1
0
        public void ProcessInput(string[] input)
        {
            var inputParser = new InputParser(input);

            inputParser.Parse();

            var plateau = new Plateau(inputParser.PlateauWidth, inputParser.PlateauHeight);

            Controller = new RoverController(plateau);

            foreach (var roverInputModel in inputParser.Rovers)
            {
                var deployedRover = Controller.DeployRover(roverInputModel.DeployPosition);
                Controller.RunRoverCommans(deployedRover, roverInputModel.Commands);
            }
        }