Hi. I asked your program for a Skill Level 5 sudoku, and it gave me this:
- Code: Select all
5| |
43 | 9 |
6 7| | 2
---+---+---
| |
| 5 | 1
4| |
---+---+---
5 |98 |
7 8|1 |
6 |3 | 7
Now, without even solving this, I know it has at least two valid solutions , because columns seven and nine (counting from the left) are empty. This means, whatever solution your program has in mind, you can interchange those columns, and have a different, valid, solution (think about it - it's true).
So I'm afriad your program must have a bug in it somewhere. I'm not enough of a coder to be able to figure out where from the source code though, I'm afraid.
For reference, the solution the program gives is:
185234697
432796158
697518324
216879543
879453216
354621789
523987461
748162935
961345872
but an equally valid answer is:
185234796
432796851
697518423
216879345
879453612
354621987
523987164
748162539
961345278
Anyhow, good luck with it.