lib/chess/rook.rb
# Returns an array of all left movements the rook can make
Returns an array of all left movements the rook can make
Returns an array of all left movements the rook can make
def left_moves(row, column)
      moves = []
      column -= 1
      until column < 0
        moves << [row, column]
        column -= 1
      end
      moves
    end
def left_moves ( row , column ) moves = [ ] column -= 1 until column < 0 moves << [ row , column ] column -= 1 end moves end
Returns an array of all left movements the rook can make
Returns an array of all left movements the rook can make
row
<not_specific>
column
<not_specific>