4 ms·
There seems to be a bug here. Suppose that in a puzzle there is only one 8 and one 9 that do not overlap in any way (row, column, or 3x3 square). Now, suppose t
by dooglius 10y ago
There seems to be a bug here. Suppose that in a puzzle there is only one 8 and one 9 that do not overlap in any way (row, column, or 3x3 square). Now, suppose that Peggy comes up with a false solution to the problem which sets both of these tiles to 8. Then, neither the 8 nor the 9 is allowed to be picked for the green squares, and so no test of Victor's can disprove Peggy's false solution.
Edit: this seems easily fixable too: rather than the whole green tiles thing, just allow Victor to query either a row/column/3x3 to prove the solution is a valid sudoku, or query the original filled in tiles, to show that the solution corresponds to the original problem.
- Manishearth 10y agoGood observation, and fixed! As I noted in the issue, I initially was going to go with a fourth "preset" option but I decided against it for some reason. Added it to the code and blog post.