Sudoku Solver - A Netbeans 5.5 module
By winston on Feb 12, 2007
My 9 year old son is hooked on to Sudoku. To entertain him, I wrote a small swing application (sudoku-src.zip), which he uses to create new Sudoku puzzles and solve them on his computer. While discussing about it, Sandip "module" Chitale (he writes modules almost every day), casually mentioned, why not convert it in to a Netbeans module. Thought that was a good idea . While writing some serious code using Netbeans, why not take a break and try to solve a Sudoku puzzle or two. Down load the NBM (sudoku-nb55.nbm) or download the Netbeans Module sources (sudoku-nb55-src.zip) and enjoy.
Create a new Sudoku puzzle and start solving, by double clicking on the cell and entering valid value between 1-9. Based on Sudoku rules, if the value is invalid in that cell, then it would be displayed in red. If the value in the cell is valid, then it would be displayed in green. Finally, you can click on the solve button to let the program solve it for you.
Creating new puzzle in this module is nothing fancy. I have included templates of completed puzzles. New puzzles are created by randomly masking some of the cell values. Naturally, that gives any number of randomly solvable puzzles.