On Tue, Nov 11, 2008 at 12:36 AM,  <brabuhr / gmail.com> wrote:
> On Mon, Nov 10, 2008 at 12:25 PM, Matthew Moss <matt / moss.name> wrote:
>>> ## Sudoku Generator (#182)
>>>
>>> _Quiz idea provided by Lloyd Linklater_
>
> a = (1..9).sort_by{rand}
> b = (1..9).sort_by{rand}
> c = (1..9).sort_by{rand}
>
> puzzle[0..2] = a[0..2]
> puzzle[9..11] = a[3..5]
> puzzle[18..20] = a[6..8]
>
> puzzle[30..32] = b[0..2]
> puzzle[39..41] = b[3..5]
> puzzle[48..50] = b[6..8]
>
> puzzle[60..62] = b[0..2]
> puzzle[69..71] = b[3..5]
> puzzle[78..80] = b[6..8]

:-( obviously I meant to use a,b,c not a,b,b when seeding the board;
that might make the puzzles slightly more interesting :-)