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