Online sudoku solver

This is an online sudoku solver, ive not quite finished implementing this yet so the input error checking isnt really very descriptive. Expect some changes soon. I originally made this to generate the solution to project euler problem 96.

I've recently converted the front end code to use Adodbe Flex - so this is now an Adobe Flex Sudoku Solver with a PHP back to it - this means i can do nice client side validation much more easily.

Most sudoku problems need at least 17 clues to generate a unique solution. My code will still generate solutions for problems with less than 17 clues however the solutions obviously wont be unique. The application will solve all problems, however i have implemented a 10 second timeout to prevent excessive server load.

While its quite efficient there is a great deal of scope to improve the code - I'll do this at some point in the future. I'll also add a function to generate the sudoku puzzles. In the mean time if your looking for a PHP generator you could try this PHP sudoku generator

If you want any features added, leave a comment below

My sourcecode for the old HTML/PHP sudoku solver can be downloaded here

5 Responses to “Sudoku Solver”

  1. Ben says:

    How easy would it be to extend this to 4×4 grids?

  2. Phil says:

    Shouldn’t be too hard to do – i’ll see what I can throw together at the weekend so watch this space – In theory all you need to do is set a new range and set the boundaries for each “sub-square”.

  3. Mike says:

    So whats the word on the 4×4 solver?

  4. Phil says:

    Been dragged away doing other things at the moment, hope to have something done in the next few weeks,

  5. kent says:

    hello, I’m a newbie with php want to explore the code for your sudoku.

    you said I can download the html/php code but when unzipped the file I only get the

    php file with class and functions inside..

    and How do I ran your sudoku apps?

Leave a Reply