Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 1c8984d

Made a method private.

  • Participants
  • Parent commits 3821940

Comments (0)

Files changed (1)

File solver/ruby/kakuro-board.rb

             return DIRS.map { |dir| board_control_cells[dir].constraint(dir) } 
         end
 
+        def filter_constraint_with_mask(dir, mask)
+            return set_new_constraint(
+                dir,
+                constraint(dir).select { |c| (c & mask) == c }
+            )
+        end
+
         public
 
         def solid?
             return flush_dirty
         end
 
-        def filter_constraint_with_mask(dir, mask)
-            return set_new_constraint(
-                dir,
-                constraint(dir).select { |c| (c & mask) == c }
-            )
-        end
-
         def filter_possible_constraint(dir, mask_promise)
             return constraint(dir) && 
                 filter_constraint_with_mask(dir, mask_promise.call())