Module: MoveMethods
- Defined in:
- lib/helper_tools/move_methods.rb
Instance Method Summary collapse
Instance Method Details
#move_down ⇒ Object
6 7 8 |
# File 'lib/helper_tools/move_methods.rb', line 6 def move_down current_square[0] += 1 end |
#move_left ⇒ Object
10 11 12 |
# File 'lib/helper_tools/move_methods.rb', line 10 def move_left current_square[1] -= 1 end |
#move_right ⇒ Object
14 15 16 |
# File 'lib/helper_tools/move_methods.rb', line 14 def move_right current_square[1] += 1 end |
#move_up ⇒ Object
2 3 4 |
# File 'lib/helper_tools/move_methods.rb', line 2 def move_up current_square[0] -= 1 end |