Example #1
0
 public void Move(IRover rover)
 {
     if (rover.GetPlateau().IsValidXCoordinate(rover.GetRoverPosition().X + 1))
     {
         rover.GetRoverPosition().X++;
     }
 }
Example #2
0
 public void Move(IRover rover)
 {
     if (rover.GetPlateau().IsValidYCoordinate(rover.GetRoverPosition().Y - 1))
     {
         rover.GetRoverPosition().Y--;
     }
 }