class Tracers::East
Handles Eastern travel by rover
Public Instance Methods
move(rover)
click to toggle source
# File lib/tracers/east.rb, line 12 def move(rover) rover.increase_x end
to_s()
click to toggle source
# File lib/tracers/east.rb, line 16 def to_s 'E' end
turn_left()
click to toggle source
# File lib/tracers/east.rb, line 4 def turn_left Tracers::North.new end
turn_right()
click to toggle source
# File lib/tracers/east.rb, line 8 def turn_right Tracers::South.new end