lib/number-placement.rb
# Find location x, y for a firm candidate v, or nil
Find location x, y for a firm candidate v, or nil
Find location x y for a firm candidate v or nil
def next_firm(x0, y0)
      xc, yc = x0, y0
      begin
        if v = self.candidates(xc, yc).key(1)
          return xc, yc, v
        end
        xc, yc = Board.next_cell_from(xc, yc)
      end while xc != x0 or yc != y0
      return nil
    end
def next_firm ( x0 , y0 ) xc , yc = x0 , y0 begin if v = self . candidates ( xc , yc ) . key ( 1 ) return xc , yc , v end xc , yc = Board . next_cell_from ( xc , yc ) end while xc != x0 or yc != y0 return nil end
Find location x, y for a firm candidate v, or nil
Find location x y for a firm candidate v or nil
x0
y0