>>31
The only way to produce a perfect sudoku without going through numerous attempts is to solve a board with pre-placed numbers all around the board.
The method that he uses is very similar to mine. If the puzzle is unsolvable it will replace it with a new version of it. At least that's what I think, then again I can't really read Python(I'm not a programmer, and python is hard to understand).