SudSolver v0.23

I created the JUnit test file to replace my older testing methods. View the tutorial for JUnit test file to see how it works.

In the next version, the random puzzle button and the brute force search should work correctly(I hope).

Random puzzle and brute force search

I have been trying to implement the "random puzzle" function. So far, I have two versions of it in my program and both are behaving in a weird manner.

After some investigations I found out that my brute force search function isn't correct actually. It gives the correct solution in some situations but in tough cases where the number of solved cells is low, it doesn't solve the puzzle correctly.

I should mention that there's also the possibility that my function is correct, but I didn't get the correct result because of memory restrictions(from the way I implement the function, quite a lot of memory has to be consumed to hold all the temp variables).

Anyway, I'm currently working on a correctly implemented brute force search and hopefully, in my next version, you'll also see a working "random puzzle" button.

SudSolver v0.22

I fix the Clear button after realizing that I didn't check for the case when the square has number zero. I have tried my program on a few Sudoku puzzles that I found on the newspapers and so far it has solved any puzzle within a few secs and not give me any trouble. So, for anyone looking for a Sudoku solver, v0.22 should work fine and with the Clear button fixed, you no longer have to restart the program if you wish to continue solving another puzzle.

In the future, I may implement the Random Puzzle(it's still a dummy button now) or replace it with Print Puzzle or both. I may also do something related to Shidoku and Rokudoku(hence the posts) although that may require significant changes to my program.

Changelog
v0.22(May 4, 2009)
1) Clear button now works correctly

Rokudoku

Rokudoku is the 6x6 variant of Sudoku. Rokudoku and Shidoku(4x4 variant) are known as Kids Sudoku. All variants of Sudoku which has a smaller grid than the normal Sudoku are collectively known as Sub Doku.

Below is a sample puzzle of Rokudoku. Fill in the grid so that every row, every column, and every 2x3 block contains the digits 1 through 6.

Related Links
Sample Puzzles:
1) Free Kids Sudoku Puzzle
2) Kids Sudoku Puzzle
1) Sudoku for kids

Free printable online daily Sudoku puzzles for kids:
1) Sudoku.com.au (click on Kids Sudokus on the right panel)