The Flash part is really my area of expertise, but I also had to hack together a PHP script to generate the puzzles. I found a script that does the right sort of thing, and modified it to output in my required format. However, over the years I’ve had a few people complain that it produces puzzles with multiple solutions (and then only accepts one of those solutions as the ‘correct’ answer).
I don’t know enough mathematics or PHP to correct the problem, so I’m putting out an appeal. If anyone wants to have a go at correcting the problem — or rewriting the script — please do so. You’ll be helping me and thousands of other Sudoku fans around the world.
Input parameters (via GET URL):
- Difficulty [currently 1, 2 or 3, but can be tweaked if necessary]
- Random [currently a six digit integer, but can be tweaked if necessary]
Output format (plain text):
Daily Random Sudoku: Medium
Your Name Here
Your Name Here and Grant Gibson
… where answer is the unique grid solution, and grid represents the intial state of the puzzle – dot for blank, o for a displayed number.
I’ve attached the Current Grid Script here. If you’d like to suggest any revisions, or post up an alternative version of the code please do so — either as a comment here, or directly to me by email. See my contact page for email details.
Thanks, and good luck!