Commits

Anonymous committed dbca3c0

Small refactoring

  • Participants
  • Parent commits 5885e31

Comments (0)

Files changed (1)

File hitori-solver-in-ruby/hitori-solver.rb

             white_regions.each_region do |r|
                 unknowns = r.get_adjacent_unknowns()
                 if (unknowns.length == 1)
-                    coords = unknowns[0]
                     add_yx_move(
-                        coords,
+                        unknowns[0],
                         "white",
                         "Extending a white region to the only adjacent cell in an unknown state"
                    )