robot_simulator.rb
# Reorients the robot to a specific direction
Reorients the robot to a specific direction
Reorients the robot to a specific direction
def orient(bearing)
    raise ArgumentError unless VALID_ORIENTATIONS.include? bearing
    @bearing = bearing
  end
def orient ( bearing ) raise ArgumentError unless VALID_ORIENTATIONS . include? bearing @bearing = bearing end
Reorients the robot to a specific direction
Reorients the robot to a specific direction
bearing
<not_specific>