Example #1
0
 public void PlaceAt(RobotPosition robotPosition)
 {
     if (robotPosition == null)
     {
         return;
     }
     _robotPosition = robotPosition;
 }
Example #2
0
 public Robot(RobotPosition robotPosition)
 {
     PlaceAt(robotPosition);
 }
Example #3
0
 public bool ValdatePosition(RobotPosition robotPosition)
 {
     return(robotPosition.X > _maxXUnits || robotPosition.X < 0 ||
            robotPosition.Y > _maxYUnits || robotPosition.Y < 0);
 }