Browse Source

testing succeeded! removing debugging prints

tarfeef101 6 years ago
parent
commit
55a918e1c0
1 changed files with 0 additions and 5 deletions
  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