in reply to Re: (Golf) Tic Tac Toe
in thread (Golf) Tic Tac Toe

You have a typo I think:
1 9 4 7 5 3 6 1 8
1st column and major diagonal do not add to 15.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: (Golf) Tic Tac Toe
by thospel (Hermit) on Jun 07, 2004 at 18:14 UTC
    Run this with an odd argument (like 3) to get a magic square :-)
    print"@{$_=++$_%@F+$p--%@F*@F+1for@F,$p;F} "for@F=0..~-pop