Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed a6b9dbe

Extract a method.

  • Participants
  • Parent commits 5990916

Comments (0)

Files changed (1)

File solver/ruby/lib/kakuro_solver/board.rb

             return
         end
 
+        def calc_constraints_loop
+            DIRS.each do |dir|
+                calc_dir_constraint(dir)
+            end
+        end
+
         def calc_all
 
             @remaining_constraints = []
             @possible_cell_values = @initial_cell_values
 
-            DIRS.each do |dir|
-                calc_dir_constraint(dir)
-            end
+            calc_constraints_loop
 
             return
         end