sudoku assistant, solves easy ones, and helps with hard ones |
![]() |
May 11 2006, 07:19 PM
Post
#1
|
|
![]() Advanced Member ![]() ![]() ![]() ![]() Posts: 260 Joined: 18-March 06 From: Redmond, WA Member No.: 2,651 I'm running: 6000 |
I'm not a sudoku fanatic, but I've done a couple. I have a very mechanistic approach in the solution - so mechanistic that I knew I could write a program to do it. I also like to write DHTML programs, since that increases my gadget-fu.
Therefore, I have written the attached program/web-page. Just load it, enter the numbers from your sudoku puzzle, and it will either solve it for you, or if the puzzle is a more difficult one it will solve the squares that it can using my algorithm, and give you a nice graphical representation of the possible values in the remaining cells. Let me know what you think! p.s. rename 'sudoku.html.txt' to 'sudoku.html', and tell it to run the script when the security warning comes up. If you don't trust me, read the source code yourself. *grin* Update: here's a screenshot:
sudoku.PNG ( 8.7K )
Number of downloads: 18The black numbers are the ones I entered. The small grey squares indicate numbers that are not allowed in the associated cell. The red numbers are deduced by the program when a cell has eight grey squares filled in.
Attached File(s)
|
|
|
|
May 11 2006, 07:32 PM
Post
#2
|
|
![]() The Quiet One ![]() ![]() ![]() ![]() ![]() Posts: 1,049 Joined: 22-July 04 From: Atlanta, GA Member No.: 80 I'm running: Windows 7 RTM 64 Bit |
I'm not a sudoku fanatic, but I've done a couple. I have a very mechanistic approach in the solution - so mechanistic that I knew I could write a program to do it. I also like to write DHTML programs, since that increases my gadget-fu. Therefore, I have written the attached program/web-page. Just load it, enter the numbers from your sudoku puzzle, and it will either solve it for you, or if the puzzle is a more difficult one it will solve the squares that it can using my algorithm, and give you a nice graphical representation of the possible values in the remaining cells. Let me know what you think! p.s. rename 'sudoku.html.txt' to 'sudoku.html', and tell it to run the script when the security warning comes up. If you don't trust me, read the source code yourself. *grin* I am not getting the Security warning. I can only add a number into 1 box. -------------------- ![]() Remember Utakz |
|
|
|
May 11 2006, 07:51 PM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() Posts: 50 Joined: 30-April 05 Member No.: 690 |
|
|
|
|
May 11 2006, 08:32 PM
Post
#4
|
|
![]() The Quiet One ![]() ![]() ![]() ![]() ![]() Posts: 1,049 Joined: 22-July 04 From: Atlanta, GA Member No.: 80 I'm running: Windows 7 RTM 64 Bit |
Works Great!
Thanks Bruce. -------------------- ![]() Remember Utakz |
|
|
|
![]() |
|
Lo-Fi Version | Time is now: 9th February 2010 - 02:25 PM |