lib/chess/bishop.rb
# Returns an array of northeast diagonal moves the bishop can make
Returns an array of northeast diagonal moves the bishop can make
Returns an array of northeast diagonal moves the bishop can make
def northeast_moves(row, column)
      moves = []
      row += 1
      column += 1
      until row > 7 || column > 7
        moves << [row, column]
        row += 1
        column += 1
      end
      moves
    end
def northeast_moves ( row , column ) moves = [ ] row += 1 column += 1 until row > 7 || column > 7 moves << [ row , column ] row += 1 column += 1 end moves end
Returns an array of northeast diagonal moves the bishop can make
Returns an array of northeast diagonal moves the bishop can make
row
<not_specific>
column
<not_specific>