Skip to content

Pencilmark Sudoku v1.2

Latest
Compare
Choose a tag to compare
@dobrichev dobrichev released this 14 Nov 12:39
· 5 commits to master since this release

Commands and options implemented

 --solve             Solve puzzles
   --vanilla             Input is vanilla 81-char puzzles (default is 729-char pencilmarks)
   --minimals            Check puzzles for minimality
   --count               Print solution count and reduced pencilmarks
     --maxsolutioncount <n>  Solves up to <n>-th solution (INT_MAX)
 --backdoor          Print backdoors size & exemplar
   --vanilla             Input is vanilla 81-char puzzles (default is 729-char pencilmarks)
 --solrowminlex      Transform valid puzzles to their solution lexicographically minimal row morph
   --vanilla             Input is vanilla 81-char puzzles (default is 729-char pencilmarks)
 --minimizerandom    Remove all redundant constraints from valid puzzles randomly
   --vanilla             Input is vanilla 81-char puzzles (default is 729-char pencilmarks)
   --buffersize <n>      Breadth search <n> subgrids are passed to next stage (default 0=disable)
   --numresults <n>      Stop after <n> puzzles are generated (10)
   --minsize <n>         Ignore puzzles smaller than <n> restrictions (0)
   --maxsize <n>         Ignore puzzles larger than <n> restrictions (729)
     --maxattempts <n>     Max attempts per input (INT_MAX) for buffersize=0
     --maxretries <n>      Max subsequent unsuccessful attempts per input (INT_MAX) for buffersize=0
 --maximizerandom    Add then remove all redundant constraints from valid puzzles randomly
   --numclues <n>        Add randomly <n> redundant clues to original (9)
   --addattempts <n>     Repeat adding redundant clues <n> times (600)
   --minimprovement <n>  Ignore generated puzzles of size < original + <n> (1)
   --maxattempts <n>     Max reduce attempts per add attempt (INT_MAX)
   --maxretries <n>      Max reduce subsequent unsuccessful attempts per add attempt (INT_MAX)
   --numresults <n>      Stop after <n> puzzles are generated per add attempt (10)
 --addredundantclues Add redundant constraints to valid puzzles in all possible ways
   --numclues <n>        Add <n> redundant clues to the original (1)
 --removeclues       Remove constraints in all possible ways
   --numclues <n>        Remove <n> constraints from the original (1)
 --addclues          Add constraints in all possible ways returning only valid puzzles
   --numclues <n>        Add <n> constraints to the original (1)
 --size              Output column with number of constraints (givens)

Linux 64-bit binary PencilmarkSudoku.v1.2 is included.