Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Sudoku Generator

by Anonymous Monk
on Dec 15, 2005 at 16:02 UTC ( [id://516995]=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
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"'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516995]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found