lib/board.rb
# Retrieves an array of available places indexes
Retrieves an array of available places indexes
Retrieves an array of available places indexes
def available_spaces
    available = []
    @board.size.times do |i|
      available << i if empty_place?(i)
    end
    available
  end
def available_spaces available = [ ] @board . size . times do | i | available << i if empty_place? ( i ) end available end
Retrieves an array of available places indexes
Retrieves an array of available places indexes