Exemple #1
0
 public RoverSpaceVehicle(
     ITurnLeft turnLeftAlgorithm
     , ITurnRight turnRightAlgorithm
     , IAdvance advanceAlgorithm
     , MarsOrientations roverOrientation)
 {
     _turnLeftBehavior        = turnLeftAlgorithm;
     _turnRightBehavior       = turnRightAlgorithm;
     _advanceBehavior         = advanceAlgorithm;
     _roverPositionInMars     = new Position(); //Default 0 , 0 Coordination;
     _roverOrientationsInMars = roverOrientation;
 }
Exemple #2
0
 public RoverInMars()
 {
     _turnLeftAlgorithm  = new TurnLeftInMars();
     _turnRightAlgorithm = new TurnRightInMars();
     _advanceAlgorithm   = new AdvanceInMars();
 }