public static ICleanerPilot CreateCleaningRobotAt(Position startingPosition)
 {
     var grid = RectangularGrid.MinX(-100000).MaxX(100000).MinY(-100000).MaxY(100000);
     var robot = new RobotEngine(startingPosition);
     var restrictedRobot = new GridRestrictedRobotEngine(robot, grid);
     return new RobotPilot(restrictedRobot);
 }
예제 #2
0
        public static ICleanerPilot CreateCleaningRobotAt(Position startingPosition)
        {
            var grid            = RectangularGrid.MinX(-100000).MaxX(100000).MinY(-100000).MaxY(100000);
            var robot           = new RobotEngine(startingPosition);
            var restrictedRobot = new GridRestrictedRobotEngine(robot, grid);

            return(new RobotPilot(restrictedRobot));
        }