# File default/spy.rb, line 79 def task() start_strategy = StartStrategy.new() left_then_two = LeftTurnDecorator.new(start_strategy) axl = Accomplice.new(1, 3, EAST, 0, left_then_two) george = Accomplice.new(3, 3, EAST, 0, RightThenThree.new()) hari = Accomplice.new(3, 6, EAST, 0, left_then_two) bernie = Spy.new(1, 1, EAST, 0, start_strategy) bernie.follow_strategy() bernie.get_next_clue() # from axl bernie.follow_strategy() bernie.get_next_clue() # from george bernie.follow_strategy() bernie.get_next_clue() # from hari bernie.follow_strategy() end