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