Su Doku -- a puzzle
- 'print' changed meaning -- print the board to a file useful for addition to the library to /tmp/sudoku-board
- added 'offline' -- pretty-print the board for offline solution to /tmp/sudoku-print
- the 'load' and 'save' commands are reversed to saving the whole array in binary instead of ascii to allow keeping information about user moves between reloads.
- today and yesterday's changes include a major rewrite and cleaning of the code, breaking it into several files.
- 'check' -- check the current board and highlight the numbers that are incorrectly placed
- 'print' -- print the board to /tmp/sudoku-print in a readable format
- added middle-button action -- adds levels found in the boards/ directory (a library from sudoku.com, you can add levels you like to this directory as separate files)
- removed the coloring of incorrectly placed digits "red" -- it gives up too much information (one can click over all the squares in a box to see which ones fit) and it is incorrectly implemented.
This is an implementation of the Su Doku puzzle game, famous from magazines, etc. Original information and rules: http://www.sudoku.com
The interface is really simple -- select a number from the list at the top
of the window, then click on an empty square to fix it with that number. If
no number is selected, then clicking on a square will clear it. The digits
in blue are immutable, they are the initially exposed cells.
The right mouse button presents a menu with the following choices:
The middle button adds levels found in the boards/ directory.
- new -- generate a new (random) puzzle
- check -- check the current board and highlight the numbers that are incorrectly placed
- solve -- show a (the?) solution (note: the algorithm used isn't proven
to present a "true" su doku, i.e. one that has only one
- clear -- clear to the initial state, or to the state last loaded
- save -- dump the puzzle in /tmp/sudoku-save (only one puzzle can be
saved at any time)
- load -- load a puzzle from /tmp/sudoku-save
- print -- print the board to /tmp/sudoku-print in a readable format
- exit -- reboot the computer
If you plan to do a 'mk install' you'll need to edit the path to the image masks
Last Modified: 18, May, 2005
mirtchovski at gmail