Command line: SudokuP [-u] [-p] [-a] PuzzleFile
Input file format: Puzzles, one-per-line, standard format, ie: any characters not "1" - "9" map to 0.
Options: -p => print puzzle + solutions, -u => test uniqueness, -a => show all (up to max 100) solutions
Output: Solutions, one per line. For each source puzzle:
- if no solution the input puzzle is invalid and is printed with ": invalid" appended.
- if -p option given, input puzzle is always printed.
- if neither -p nor -a is given, prints first solution, untagged
- if -u is specified, then if the solution is unique it is shown with " (u)" tag. If not unique then the first 2 solutions are printed, each with " (*)" tag.
- if -a is specified, then output is same as for -u, but will list all solutions (up to max 100).
- added option -m (morph generation)
Example: given input file "TestM.txt" containing:
- Code: Select all
..3...........82.1.79......................7.2............3..............45......
.2........................2.7...........9..6.......15...1..............8.....8..3
Then command SudokuP -m TestM.txt will give following output:
- Code: Select all
..3...........82.1.79......................7.2............3...........5..4.......
..3...........82.1.79......................7.2............3...........6..4.......
.2........................2.7...........9........4.15...1..............8.....8..3
.2........................2.7...........9........6.15...1..............8.....8..3