Exemple #1
0
 public void Change(IReturnAlgorithm returnAlgorithm, IRobotCleaner robot)
 {
     returnAlgorithm.Step = new FourthStep();
     robot.TurnLeft();
     robot.TurnLeft();
     robot.Advance();
 }
Exemple #2
0
 public void Change(IReturnAlgorithm returnAlgorithm, IRobotCleaner robot)
 {
     returnAlgorithm.Step = new ThirdStep();
     robot.TurnLeft();
     robot.Back();
     robot.TurnRight();
     robot.Advance();
 }
Exemple #3
0
 public void Execute(IRobotCleaner robotCleaner)
 {
     robotCleaner.TurnLeft();
 }