Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: (Golf) Tic Tac Toe

by QM (Parson)
on Jun 06, 2004 at 23:56 UTC ( #361833=note: print w/ replies, xml ) Need Help??

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.

Quantum Mechanics: The dreams stuff is made of

Comment on Re^2: (Golf) Tic Tac Toe
Download Code
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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-11-27 02:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (714 votes), past polls