Sudoku (PB's Worklog)

Creating Sudoku in Java RSS Feed

First!

I've decided to spend little spare time behind my PC, hence that I hardly ever visit BS anymore. Also because I work fulltime in the holiday now, don't expect this project to be finished any time soon.

I've desided to create a Sudoku game, because this kind of puzles seem to be highly populair. I've planned the following features:

1. Users can create puzzles them selves
2. Save/Load game
3. The computer should be able to show illegal entries

- The computer should be able to give hints
- The computer should be able to salve the game
- The Sudoku salver algorithm should be saved in a separate file, so that it can be easilly upgraded.
- The computer should be able to create a salvable game.

Depending on how long I care for this project, I'm going to work on the numbered list from top to bottom. The dashed list I'm not 100% sure about the order yet, because they all have to do with each other.

Ok, so here's what I've done up till now:

I've created a GUI (oh wow, show me!):

(the puzzle in the image is salvable)

At the moment you are able to enter anything into the text fields. Maybe in the future this will be filtered to a number between 1 and 9. But maybe I won't do that, because being able to fill in anything, might help one to find a solution...

The values in this screenshot where filled by hand, so as you see point 1 of the feature list has been done. The game is cleared, when the user clicks "create game" from the menu.

Also I'm able to save and load the game already, but I'm not sure yet if I'll stick with the current file structure. Maybe I want certain other features into the level files.

I'm currently thinking about being able to store the solution in the same file, without showing it on screen when loaded.
(Posted on July, 22nd 2006, 18:14)
5 comments

Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!