game/board.rb
# The commands are in order, and the offset determines 
# who started first
The commands are in order, and the offset determines
who started first
The commands are in order and the offset determines who started first
def update_grid commands, offset=0
    commands.each_with_index do |command, index|
      i = (index + offset) % 2
      filler = i == 0 ? 'XX' : 'OO'
      grid[command.row][command.column] = filler
    end
  end
def update_grid commands , offset = 0 commands . each_with_index do | command , index | i = ( index + offset ) % 2 filler = i == 0 ? 'XX' : 'OO' grid [ command . row ] [ command . column ] = filler end end
The commands are in order, and the offset determines
who started first
The commands are in order and the offset determines who started first
commands
<not_specific>
offset
<not_specific>