|
|
|
|
|
by jsnell
2833 days ago
|
|
If the goal is puzzle generation, a backtracking solver is the wrong tool. When it comes to logic puzzles of this sort (Sudoku, Nonograms, etc) people don't like backtracking. There's often even an explicit promise that the puzzles can be solved with "just logic, no guessing needed". So what you want is a solver that uses only the kinds of (usually local) reasoning that a human would use. I don't have examples handy for Sudoku, but for Nonograms it would be things like this: https://webpbn.com/solving.html An added benefit is that this allows you to figure out how difficult the puzzle is to solve. What forms of reasoning are needed? How many squares are solvable at any one time? A backtracking solver, especially one that doesn't use any sort of heuristics, can't give that. |
|