Example #1
0
 public void ObstacleAhead(ICommands commands)
 {
     if (r.Next(2) == 0)
     {
         Turn(currentBearing.Clockwise90(), commands);
     }
     else
     {
         Turn(currentBearing.CounterClockwise90(), commands);
     }
 }