Explorar o código

testing succeeded! removing debugging prints

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
55a918e1c0
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      a1/sudoku.py

+ 0 - 5
a1/sudoku.py

@@ -221,8 +221,6 @@ def genVal(domains, working, unassigned):
     # get the best indices according to domain size
     for i in unassigned:
         rating = domsize(domains, i) / 9.0
-        if (rating == 0):
-            print(i)
         if (rating < bestrating):
             bestrating = rating
             heap = [i]
@@ -262,11 +260,8 @@ def solveh(working, domains, unassigned):
         nextThing = genVal(domains, working, unassigned)
         index = nextThing[0]
         val = nextThing[1]
-
         working[index[0]][index[1]] = val
         unassigned.remove(index)
-        if (index == (8, 8)):
-            print("value is: ", val)
     
         # check for invalidated nodes (empty domain)
         flag = True