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