|
Gsusiso
|
Sudoku Simple Solver v0.2 |
|
|
The Gsusiso interface is a single window: the board (see fig 1). The board is the Sudoku grid, composed of 9 block of nine cells. Each row and each column has 9 cells. If you were on the moon for the last ten years and you don't know about Sudoku rules, see the rules below. Python source code and documentation are hosted by sourceforge. Setting the numbersPut the mouse in the board window, if you press one of keys 1,2,3,4,5,6,7,8 and 9, the number is set in the cell pointed by the mouse. To clear the cell, just press the space bar. You see the active cell border changes to gray, then press the key number you want to set. The cells with black numbers cannot be changed, these are the so-called hint cells. The cells you can change, even once you have set a number, are tries cells. The cells with blue numbers are hint cells too, but these are added once a new board has been generated, with the Give one command described hereafter.
|
|
|
|
The menuIt appears when you press the right button on the mouse. Press again the button to make it disappear, take care to have your mouse pointer out of the menu if you do not want to perform one of the menu actions. The menu actions are:
Some menu entries have keyboard shortcuts, for example if you want to have a hint, you can either press Control h or select Give one in the menu. The shortcut keys are shown in the menu itself, you guess that C-h stands for Control h. |
|
|
|
At any time you can ask Susiso to check the board. If this board has been edited by yourself, then Susiso has to solve it before giving you any piece of information. Then it may take time, depending on the board level and your computer.
Three examples of a Check. A red border indicates a bad count, showing the line, the column and the block with the bad count. Note that in some cases, there is too much red lines everywhere on the board to really understand what is going on... A green border indicates a correct board. |
|
|
|
|
|
|
|
Sometimes a small information box appears with a message, just click on the box to make it vanish.
Sudoku rules
A board is composed of 81 cells, 9 lines by 9 columns.
A block is a 3 by 3 square of cells, a board has 9 blocks shown with bold lines.
When you start, the empty board has a set of already defined cells, these couldn't be changed.
You have to fill the blank cells with one digit in 1 to 9.
A given number can only appear once in a row and in a column and in a block.
The progam is a one file Python program. This shows how powerful, nice and complete is the Python programming language. The original program, Susiso had one file, the Gsusiso added a GUI ontop of susiso. The two files were merged to reduce release packaging ;)