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