Re: Newbie out of depth in sudoku solver.
- From: "charlie" <charlie.burrows@xxxxxxxxx>
- Date: 14 Feb 2007 09:42:45 -0800
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
.
- Follow-Ups:
- Re: Newbie out of depth in sudoku solver.
- From: Markus Triska
- Re: Newbie out of depth in sudoku solver.
- References:
- Newbie out of depth in sudoku solver.
- From: charlie
- Re: Newbie out of depth in sudoku solver.
- From: Markus Triska
- Re: Newbie out of depth in sudoku solver.
- From: charlie
- Re: Newbie out of depth in sudoku solver.
- From: Markus Triska
- Newbie out of depth in sudoku solver.
- Prev by Date: Re: Newbie out of depth in sudoku solver.
- Next by Date: Re: Newbie out of depth in sudoku solver.
- Previous by thread: Re: Newbie out of depth in sudoku solver.
- Next by thread: Re: Newbie out of depth in sudoku solver.
- Index(es):