|
|
|
|
20
|
|
20
|
|
21
|
Configuration
|
21
|
Configuration
|
22
|
-------------
|
22
|
-------------
|
23
|
-The program allows 3 optional arguments:
|
|
|
|
|
23
|
+The program allows 4 optional arguments:
|
24
|
- Generator type: The generator to use to create/load the sudoku. Possible values:
|
24
|
- Generator type: The generator to use to create/load the sudoku. Possible values:
|
25
|
- '-' (default): Read from std input
|
25
|
- '-' (default): Read from std input
|
26
|
- '0': Empty sudoku
|
26
|
- '0': Empty sudoku
|
27
|
- filename: load from the specified file
|
27
|
- filename: load from the specified file
|
28
|
-- Next value chooser: The way to select next value to fill. Possible values:
|
|
|
|
|
28
|
+- Next cell chooser: The way to select next cell to fill. Possible values:
|
29
|
- 'mrv' (default): Use the Minimum remaining values strategy
|
29
|
- 'mrv' (default): Use the Minimum remaining values strategy
|
|
|
30
|
+ - 'dh': Use the Degree heuristic strategy
|
30
|
- 'basic': Select the first blank value, from up to down and left to right
|
31
|
- 'basic': Select the first blank value, from up to down and left to right
|
|
|
32
|
+- Next number chooser: The way to select next number to the next to test in the cell. Possible values:
|
|
|
33
|
+ - 'lcv' (default): Use Least constraining value strategy
|
|
|
34
|
+ - 'basic': Select numbers in ascending order
|
31
|
- Empty characters: The characters that should be considered as empty cell. Default value: '0 .'
|
35
|
- Empty characters: The characters that should be considered as empty cell. Default value: '0 .'
|
32
|
|
36
|
|
33
|
Code
|
37
|
Code
|