Source

kakuro-cross-sums / solver / ruby / kakuro-board.rb

Diff from to

solver/ruby/kakuro-board.rb

             # TODO : Make sure the widths of all the lines are the same.
             width = 0
             row = []
-            while line.sub!(/\A\s*\[([^\]]+)\]\s*/, "")
+            while line.sub!(/\A\s*\[([^\]]*)\]\s*/, "")
                 content = $1
 
                 cell = Cell.new(_next_cell_id(), content)
                 row << cell.id
             end
             @width = width
-            @matrix << row
+            @matrix.push(row)
         end
 
         def cell_yx(row,col)