Example #1
0
 public bool SetRoverLocation(Position position)
 {
     if (AcceptNextLanding)
     {
         if (CheckCoordinate(position))
         {
             AcceptNextLanding = false;
             return(false);
         }
         else
         {
             RoversPosition.Add(position);
             AcceptNextLanding = true;
             return(true);
         }
     }
     else
     {
         return(false);
     }
 }