in reply to Sudoku solver
And warn doesn't -- it just prints a warning, and doesn't abort the current routines. So it makes the solver search for more solutions even after a solution is found. Which is why it takes much longer.
A possible (still hacky) approach is to do the BLOCK form of eval to catch the exception, print the result and then start the recursion anew with the next Sudoku.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sudoku solver
by davido (Cardinal) on Aug 11, 2012 at 15:49 UTC | |
|
Re^2: Sudoku solver
by Anonymous Monk on Aug 11, 2012 at 11:33 UTC |