in reply to Sudoku Generator
You don't check for neighbours. In every sudoku are at least four cells that are 2 in the same subsquare each neighbour to the other (or with a gap between, which is
neighbouring over the edge) which are repeated with the same 2 values and neighbouring in another subsquare. One of
these 4 cells has to be printed, otherwise there would be 2
solutions.
Re^2: Sudoku Generator
by turo (Friar) on Dec 16, 2005 at 12:26 UTC
|
Interesting, i'm going to include this later :-)
a lot of thanks
regards
turo
perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'
| [reply] [d/l] |
|