Re: Newbie out of depth in sudoku solver.



On Feb 14, 12:15 pm, Markus Triska <e0225...@xxxxxxxxxxxxxxxxxx>
wrote:
"charlie" <charlie.burr...@xxxxxxxxx> writes:
That didn't help too much. I couldn't interpret it's output, there
were too many _gXXX and [ X X X | ... ] for my poor little brain.

Strange, it worked for me -- I added:

solve_each([]).

, removed the definition of flatten/2 (which is a built-in), and get:


You are right, I just tested it again. I had already spotted the lack
of a solve_each termination case. That's really strange. Maybe it
wasn't re-consulting the rest of the file after the flatten errors.
Clearly I'm an idiot, I don't know why it kept failing and then only
succeeded just now. I feel suitably chagrined although I'm happy that
both the solvers now work just fine.

Sorry for wasting and thank-you for your time,
Charlie

.