yzfwsf wrote:I mean to find the pearl puzzle of the difficulty specified by the user.
The way I check whether the puzzle is just one cell is also different from yours. I traverse the pencil mark of each cell to blast the pruning, so I don’t need to get all the solutions.
OK, thanks. One last contribution:
- Code: Select all
. . . . . . . . .
. . 3 6 . 1 7 . .
. 1 5 7 . 4 6 3 .
. 2 4 . . . 8 7 .
. . . . . . . . .
. 3 6 . . . 1 4 .
. 4 2 1 . 7 5 6 .
. . 1 2 . 5 4 . .
. . . . . . . . . No. of givens = 28
Mike