Spaces:
Running
Running
Removed second pass and solved for british crossword
Browse files- BPSolver_inf.py +1 -1
- main.py +1 -1
BPSolver_inf.py
CHANGED
@@ -77,7 +77,7 @@ class BPCell:
|
|
77 |
def _connect(self, other):
|
78 |
self.crossing_vars.append(other)
|
79 |
self.directional_scores.append(None)
|
80 |
-
assert len(self.crossing_vars) <= 2
|
81 |
|
82 |
def _propagate_to_cell(self, other, belief_state):
|
83 |
assert other in self.crossing_vars
|
|
|
77 |
def _connect(self, other):
|
78 |
self.crossing_vars.append(other)
|
79 |
self.directional_scores.append(None)
|
80 |
+
# assert len(self.crossing_vars) <= 2
|
81 |
|
82 |
def _propagate_to_cell(self, other, belief_state):
|
83 |
assert other in self.crossing_vars
|
main.py
CHANGED
@@ -60,7 +60,7 @@ async def solve_puzzle(json):
|
|
60 |
solver = await solve_async()
|
61 |
|
62 |
async def solve_method_async():
|
63 |
-
return await asyncio.to_thread(solver.solve,num_iters=60, iterative_improvement_steps=
|
64 |
|
65 |
solution = await solve_method_async()
|
66 |
|
|
|
60 |
solver = await solve_async()
|
61 |
|
62 |
async def solve_method_async():
|
63 |
+
return await asyncio.to_thread(solver.solve,num_iters=60, iterative_improvement_steps=0)
|
64 |
|
65 |
solution = await solve_method_async()
|
66 |
|