|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: Sudoku solverby davido (Bishop) |
| on Aug 11, 2012 at 15:49 UTC ( #986907=note: print w/ replies, xml ) | Need Help?? |
|
I actually found a non-obfuscated, non-golfed Sudoku solver in C++ once that used a similar technique; recurse, and then throw an exception for any branch that didn't pan out. There were exceptions at multiple levels, each being caught to wipe out branches. Worked pretty well, though I could faintly hear Dijkstra moaning when I ran it. I wish I could find and link to it now. It was interesting. Dave
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||