View previous topic :: View next topic |
Author |
Message |
| gtb
| Joined: 29 Sep 2005 | Posts: 5 | : | | Items |
|
Posted: Thu Sep 29, 2005 10:13 pm Post subject: My Sudoku Algorithm |
|
|
A pale just introduced me to Soduko and i thought this would be a nice coding task. The result can be found here, Source here.
I was searching for hard Sudokus so i checked this page: http://www.sudokusolver.co.uk/grids_nologic.html -- i tried the second sudoku on my algorithm and it said the sudoku is unsolvable... can anyone confirm this?
Code: |
3 * * 8 * * * * *
* 6 * 4 7 9 * * 3
* * 4 * 6 3 * 7 *
6 * * * * 1 * * *
* * 5 * * * 1 * *
* * * 2 * * * * 9
* 9 * 6 2 * 4 * *
7 * * 9 4 8 * 1 *
* * * * * 5 * * 2
|
greetz, gtb. |
|
Back to top |
|
|
| Moschopulus
| Joined: 12 Aug 2005 | Posts: 39 | : | | Items |
|
Posted: Thu Sep 29, 2005 11:38 pm Post subject: |
|
|
I don't know what you mean by "unsolvable".
This puzzle has one solution, so it is a valid sudoku puzzle. |
|
Back to top |
|
|
| gtb
| Joined: 29 Sep 2005 | Posts: 5 | : | | Items |
|
Posted: Fri Sep 30, 2005 11:16 am Post subject: |
|
|
ah i just found a bug now it solved it
Code: |
3 7 9 8 1 2 6 4 5
5 6 1 4 7 9 2 8 3
2 8 4 5 6 3 9 7 1
6 3 8 7 9 1 5 2 4
9 2 5 3 8 4 1 6 7
4 1 7 2 5 6 8 3 9
1 9 3 6 2 7 4 5 8
7 5 2 9 4 8 3 1 6
8 4 6 1 3 5 7 9 2
|
i also tried some other illogical sudokus and he solved em all by 'guessing' once or twice in later steps |
|
Back to top |
|
|
|