lib/chess/board.rb
# Returns a row of pawns as an array
Returns a row of pawns as an array
Returns a row of pawns as an array
def add_pawn_row(color, row)
      pawn_row = []
      8.times { |column| pawn_row << Pawn.new(color, [row, column]) }
      pawn_row
    end
def add_pawn_row ( color , row ) pawn_row = [ ] 8 . times { | column | pawn_row << Pawn . new ( color , [ row , column ] ) } pawn_row end
Returns a row of pawns as an array
Returns a row of pawns as an array
color
<not_specific>
row
<not_specific>