+ 1
How to test the uniqueness of a Sudoku Generated?
I have generated a soduku using Python. however it is not called a soduku until it is unique so I want to test the uniqueness of Sudoku however I can't find any math behind it. does anyone have any idea?
3 odpowiedzi
+ 2
Perhaps save the rows and cols of some puzzles in a String, then you can do the same for the puzzle you generate. Once that's done you can compare with the other strings, if they are equal then the puzzle is not unique.
+ 2
There would be a way to find the number of solutions if you can find a way to solve it.
Check out the 2nd or 3rd top answer here, hopefully it's helpful.
https://stackoverflow.com/questions/6924216/how-to-generate-sudoku-boards-with-unique-solutions
0
I am not sure if that will solve the purpose