Usage:
(1) num-p
Solver mode execution.
Input : Data-pattern was read from STDIN(key or PIPE).
Output: STDOUT
(2) num-p fileName
Solver mode execution.
Input : Data-pattern was read from specified file.
Output: STDOUT
(3) num-p make n
Generator mode
Input : NON
Output: STDOUT
n is a number to generate
Options
num-p -path ... : Output solved path.
num-p -help : output usage in Japanese.
--------------------------------------------------------------------
Data-Pattern format
Data-Pattern is 9 x 9 single number text like this.
0 0 4 0 5 0 0 1 0
6 0 0 2 0 0 5 0 0
0 3 0 0 0 7 0 0 9
0 0 5 0 3 0 0 8 0
7 0 0 6 0 8 0 0 4
0 4 0 0 7 0 3 0 0
8 0 0 5 0 0 0 9 0
0 0 6 0 0 4 0 0 8
0 2 0 0 6 0 7 0 0
Separetor is space.
Other format lines are ignored.
'0' or '.' mean blank.
',','|','[',']' is treated as ' '(space).
so, These are same data.
0 0 4 0 5 0 0 1 0
6 0 0 2 0 0 5 0 0
0 3 0 0 0 7 0 0 9
0 0 5 0 3 0 0 8 0
7 0 0 6 0 8 0 0 4
0 4 0 0 7 0 3 0 0
8 0 0 5 0 0 0 9 0
0 0 6 0 0 4 0 0 8
0 2 0 0 6 0 7 0 0
[0,0,4,0,5,0,0,1,0],
[6,0,0,2,0,0,5,0,0],
[0,3,0,0,0,7,0,0,9],
[0,0,5,0,3,0,0,8,0],
[7,0,0,6,0,8,0,0,4],
[0,4,0,0,7,0,3,0,0],
[8,0,0,5,0,0,0,9,0],
[0,0,6,0,0,4,0,0,8],
[0,2,0,0,6,0,7,0,0]
|-------+-------+-------|
| 0 0 4 | 0 5 0 | 0 1 0 |
| 6 0 0 | 2 0 0 | 5 0 0 |
| 0 3 0 | 0 0 7 | 0 0 9 |
|-------+-------+-------|
| 0 0 5 | 0 3 0 | 0 8 0 |
| 7 0 0 | 6 0 8 | 0 0 4 |
| 0 4 0 | 0 7 0 | 3 0 0 |
|-------+-------+-------|
| 8 0 0 | 5 0 0 | 0 9 0 |
| 0 0 6 | 0 0 4 | 0 0 8 |
| 0 2 0 | 0 6 0 | 7 0 0 |
|-------+-------+-------|
|-------+-------+-------|
| . . 4 | . 5 . | . 1 . |
| 6 . . | 2 . . | 5 . . |
| . 3 . | . . 7 | . . 9 |
|-------+-------+-------|
| . . 5 | . 3 . | . 8 . |
| 7 . . | 6 . 8 | . . 4 |
| . 4 . | . 7 . | 3 . . |
|-------+-------+-------|
| 8 . . | 5 . . | . 9 . |
| . . 6 | . . 4 | . . 8 |
| . 2 . | . 6 . | 7 . . |
|-------+-------+-------|