Sudoku Solver - A Netbeans 5.5 module

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.

Comments:

So you ported your Swing application to the NetBeans Platform? Would be cool if you would dedicate some blog entries to (1) how you did that, (2) why you did that, and (3) what the benefits are, now that you've done it!

Posted by Geertjan on February 12, 2007 at 05:23 AM PST #

thanks :)

Posted by ceviri on July 01, 2007 at 05:21 AM PDT #

Awesome idea. You should try starting a blog that utilizes some of these -- like an extra perk for your subscribers. After all, if the paper can use it . . . Or maybe you could sell th idea to someone like Yahoo games. It’s too bad that you couldn’t do the same with a crossword puzzle, but I suppose randomly generating numbers is all about being able to plug in formulas, while crosswords require something entirely different. Still, I hear they are working on software that can grade papers, so perhaps anything is possible. Maybe one of these days they can write the papers too, and then we can all sit back, relax, and drink Mai Tais.

Posted by linen on August 05, 2007 at 12:11 PM PDT #

Interesting! Although this is really a neat idea, I still think this is quite useless for me. I have my own Sudoku and I’m really not sure where to fit in your file or module. Can this be transferred to my Sudoku from my PC?

Posted by oil paintings on canvas on August 12, 2007 at 02:57 PM PDT #

Don't let it get rusty in your blog here - put it onto http://plugins.netbeans.org/PluginPortal/, so lots of people can enjoy your module :)

Posted by Thomas Zillinger on August 19, 2007 at 05:16 PM PDT #

We made Automatic Puzzle Generator at http://puzzle.gr.jp/

Numpber Place (Sudoku) Generator V2.0 is very powerful.
I believe you love it.
The Java source program is available but it include some Japanese comment.

I'm very glad to hear any impression about our Sudoku Generator from you.

Posted by Hirofuji Fujiwara on December 17, 2007 at 05:41 PM PST #

w.e.

Posted by guest on January 08, 2008 at 03:38 AM PST #

Oh, thanks for the Informations :) Very usefully
Greetings,

Webdesign

Posted by Webdesign on March 29, 2008 at 02:14 AM PDT #

One time a friend of mine showed me his personal Sudoku. The gadget contains some introduction about the inventor of the game and several games. One game was about saying the color of the word which spells a different color. Another game was the memory game. And there was this game that is the same as the one you’re showing here. Do you have any idea where I can get the same device/gadget?

Posted by Oil paintings on April 27, 2008 at 07:59 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today