lib/chess/rook.rb
# Returns an array with all moves the rook can make on the board,
# assuming the board is empty
Returns an array with all moves the rook can make on the board,
assuming the board is empty
Returns an array with all moves the rook can make on the board assuming the board is empty
def possible_moves
      moves = []
      row = location[0]
      column = location[1]
      moves += down_moves(row, column) + up_moves(row, column) +
               left_moves(row, column) + right_moves(row, column)
    end
def possible_moves moves = [ ] row = location [ 0 ] column = location [ 1 ] moves += down_moves ( row , column ) + up_moves ( row , column ) + left_moves ( row , column ) + right_moves ( row , column ) end
Returns an array with all moves the rook can make on the board,
assuming the board is empty
Returns an array with all moves the rook can make on the board assuming the board is empty