Skip to content

Commit

Permalink
Rename move_left
Browse files Browse the repository at this point in the history
  • Loading branch information
ColumODonovann committed Nov 10, 2023
1 parent 15c2fea commit 4ebb9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mars_rover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def execute_commands(commands)
when 'b'
move_backward
when 'l'
move_left
turn_left
when 'r'
move_right
end
Expand Down Expand Up @@ -54,7 +54,7 @@ def move_backward
end
end

def move_left
def turn_left
case point.direction
when 'E'
@point = Point.new(@point.x, @point.y, 'N')
Expand Down

0 comments on commit 4ebb9d6

Please sign in to comment.