Пример #1
0
        public void DeployRover(string deployCommand)
        {
            var parameters = deployCommand.Split(new [] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            var mapX       = Int32.Parse(parameters[0]);
            var mapY       = Int32.Parse(parameters[1]);

            var map = new Map(mapX, mapY);

            var roverX = Int32.Parse(parameters[2]);
            var roverY = Int32.Parse(parameters[3]);

            _rover.Land(map, roverX, roverY, ConvertOrientation(parameters[4]));
        }
Пример #2
0
 public void Execute()
 {
     rover.Land(plateu, Location, Direction);
 }