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; }
public RoverInMars() { _turnLeftAlgorithm = new TurnLeftInMars(); _turnRightAlgorithm = new TurnRightInMars(); _advanceAlgorithm = new AdvanceInMars(); }