Jump to content
IGNORED

For whom it may concern - Sudoku generator


RSS Bot

Recommended Posts

Pixelboy's Sudoku game got me thinking. Now I am wondering about a Sudoku game and especially a generator for the 2600. :ponder:

 

Some initial brainstorming:

1. Display: Has been discussed multiple times already. Should be able to display the digits (doable), annotiations (tricky, 2^9 combinations!) and a cursor. Later...

2. RAM: 10 different values per cell (~3.4 bits), should be easily direct accessible, so no fancy compression algorithms. So 2 cells/byte, 40.5 bytes in total. After generating the grid, 1 bit/cell for remembering the given cells, which cannot be changed. During generation... :ponder:

3. Generation: I had a look into the Java source code of my favourite mobile phone game 5ud0ku (its free!).

It basically works like this:

a. Fill a diagonal of 3x3 blocks with random numbers (clever idea)

b. Let a solver solve this puzzle and take one of the possible solutions. Now we have a vaild grid.

c. Remove n random digits and check after each removed digit if there is only one solution (solver). If not, either d. or maybe try a different digit

d. If you where able to remove the required number of digits, fine. If not, restart with a.

 

So everything looks pretty easy, execpt for the solver. This has to use some kind of backtracking which is tricky to implement within little memory. So this we be the first thing to analyze.

 

Sounds a challenge. Great! :)

 

http://www.atariage.com/forums/index.php?a...;showentry=4916

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...