Closed Dapid closed 5 years ago
From the solve_lookahead function, you have two return paths:
return possibilities[0][1] # type: NDArray[int8,:,:]
or
return pp # type: # type: Tuple[Dict[(int, int), Set[int]], NDArray[int8,:,:]]
they are incompatible.
I wrote a quick and not so smart sudoku solver. Unfortunately, Pythran cannot compile it. I have been trying to distill it to the minimal failing case and gotten somewhere. I have two fairly minimal versions where they fail, but I haven't been able to pinpoint the problem.
Any ideas?
Note: it takes 7 minutes to compile.