|
@@ -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
|