Module: MoveMethods

Defined in:
lib/helper_tools/move_methods.rb

Instance Method Summary collapse

Instance Method Details

#move_downObject



6
7
8
# File 'lib/helper_tools/move_methods.rb', line 6

def move_down
  current_square[0] += 1 
end

#move_leftObject



10
11
12
# File 'lib/helper_tools/move_methods.rb', line 10

def move_left
  current_square[1] -= 1 
end

#move_rightObject



14
15
16
# File 'lib/helper_tools/move_methods.rb', line 14

def move_right
  current_square[1] += 1 
end

#move_upObject



2
3
4
# File 'lib/helper_tools/move_methods.rb', line 2

def move_up
  current_square[0] -= 1
end