yzfwsf wrote:How can I analyze sukaku by pressing F9 in a GUI program?
You'll need to turn off the sudoku checks (17 clues, at least 8 of digits 1-9), then F9 should work on sukakus.
The quick fix is to modify (comment out) the sudoku checks in analyse() function found towards the end of Solver.java:
- Code: Select all
public Hint analyse(Asker asker) {
Grid copy = new Grid();
grid.copyTo(copy);
try {
SingleHintAccumulator accu = new SingleHintAccumulator();
try {
// for (WarningHintProducer producer : validatorHintProducers)
// producer.getHints(grid, accu);
// for (WarningHintProducer producer : warningHintProducers)
// producer.getHints(grid, accu);
Analyser engine = new Analyser(this, asker);
engine.getHints(grid, accu);
} catch (InterruptedException willProbablyHappen) {}
return accu.getHint();
} finally {
copy.copyTo(grid);
}
}
Rebuild SukakuExplainer.jar, F9 should now work on sukakus. I've tested this on a normal sukaku, not on sukaku-X.