soduku.rb
# finds all unknown (not solved) values, for each of those execute the passed block, giving it 
# row, col, box as parameters
finds all unknown (not solved) values, for each of those execute the passed block, giving it
row, col, box as parameters
finds all unknown ( not solved ) values for each of those execute the passed block giving it row col box as parameters
def each_unknown
      0.upto 8 do | row |
        0.upto 8 do | col |
          index = row * 9 + col
          next if @grid[index] != 0
          box = BoxOfIndex[index]
          yield row, col, box
        end 
      end 
    end
def each_unknown 0 . upto 8 do | row | 0 . upto 8 do | col | index = row * 9 + col next if @grid [ index ] != 0 box = BoxOfIndex [ index ] yield row , col , box end end end
finds all unknown (not solved) values, for each of those execute the passed block, giving it
row, col, box as parameters
finds all unknown ( not solved ) values for each of those execute the passed block giving it row col box as parameters