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