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)

Comments


Rincewind said:
Have fun. :) About time you got back into game programming.
(Posted on July, 22nd 2006, 23:02)


PB said:
Thanks :)

UPDATE:
The solution can now be stored within the same file. Which is a nice feature as long as there is no built in salver.

The way I've done it is that if the value is preceded with a configurable character (I use 0) the value is hidden until the user clicks "Salve game"...

Also the user is not able to edit fields that contain a value loaded from the file. Maybe I'll look into it later how to make it visible that a field is disabled.
(Posted on July, 22nd 2006, 23:52)


Fiona said:
It's "solve" not "salve" you're driving me insane with that. Good start.
(Posted on July, 24th 2006, 06:17)


Eckolin said:
Mine is more colourful :P

Good luck on your project.
(Posted on July, 24th 2006, 23:45)


PB said:
Well salvation is beter than solution anyway :P But ok, I'll probably call it solver in game then ;).

Eckolin, it seems yours isn't on this website :). I didn't know you had made one already, but I should have known I guess :P.

I posted this by the way to tell you that tomorow I'll leave on holiday for 3 weeks, so don't expect any updates anytime soon...
(Posted on July, 27th 2006, 23:10)

Post New Comment

You must log in or register to post comments.

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