Su Doku Puzzles

DALIEN51

Registered User.
Local time
Today, 19:38
Joined
Feb 26, 2004
Messages
77
I have written a Microsoft Access 2000 Su Doku Puzzle solver. It can solve any solvable Su Doku puzzle in under 20 minutes on any reasonable spec pc.

Has anyone else written a Microsoft Access Su Doku solver?

Im interested in what logic you employed.

Regards,

Dalien51
 
Su Doku Solver

You got me the chink in my armour....yes I to think 20 minutes its excessive...ive racked my brains for a way of improving the speed but considering the number of combinations it is having to deal with I dont see how!

In fairness this is the time relating to 'Fiendish' puzzles. Mild and Difficult can be solved in around 4 minutes.

Anyone else got a solution? Id be happy to discuss my methodology to anyone who can be bothered to listen lol!

Neil
 
What are Su Doku Puzzles ???
 
I made one today... The one listed on that page is solved perfectly in 10 seconds :)
And that is with "showing" the progres... Without showing it, just over 5 seconds....
Code:
Assignment
------------------
-|6|-|1|-|4|-|5|-
-|-|8|3|-|5|6|-|- 
2|-|-|-|-|-|-|-|1
------------------
8|-|-|4|-|7|-|-|6
-|-|6|-|-|-|3|-|-
7|-|-|9|-|1|-|-|4
------------------
5|-|-|-|-|-|-|-|2
-|-|7|2|-|6|9|-|-
-|4|-|5|-|8|-|7|-
------------------

Solution
------------------
9|6|3|1|7|4|2|5|8
1|7|8|3|2|5|6|4|9
2|5|4|6|8|9|7|3|1
------------------
8|2|1|4|3|7|5|9|6
4|9|6|8|5|2|3|1|7
7|3|5|9|6|1|8|2|4
------------------
5|8|9|7|1|3|4|6|2
3|1|7|2|4|6|9|8|5
6|4|2|5|9|8|1|7|3
------------------
Would love to try on a "hard" one.... to see if my code is "smarter" :)

Except I made it in Excel, but that doesnt matter (much) I think...
 
Last edited:

Users who are viewing this thread

Back
Top Bottom