blockmap.rb
# Build the list of positions in the block that is contiguous with the
# top-left corner and the same colour as it is
Build the list of positions in the block that is contiguous with the
top-left corner and the same colour as it is
Build the list of positions in the block that is contiguous with the top - left corner and the same colour as it is
def build_block_list
      @tl_list = [[0, 0]]
      @tl_list.each do |col, row|
        neighbours(col, row).each do |c, r|
          @tl_list << [c, r] if candidate?(c, r)
        end
      end
    end
def build_block_list @tl_list = [ [ 0 , 0 ] ] @tl_list . each do | col , row | neighbours ( col , row ) . each do | c , r | @tl_list << [ c , r ] if candidate? ( c , r ) end end end
Build the list of positions in the block that is contiguous with the
top-left corner and the same colour as it is
Build the list of positions in the block that is contiguous with the top - left corner and the same colour as it is