Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: (Golf) Tic Tac Toe

by thospel (Hermit)
on Jun 07, 2004 at 17:11 UTC ( #362050=note: print w/ replies, xml ) Need Help??


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

Printing flaw fixed, and to 119:

s//123 456 789 z147,258,369,159,357/;$p=O;{/z/;print$`,$p^=O^X;/(.)\1\1/?die$1:/\d/|| +die Tie;$?=<>until s/$?/$p/g;redo}


Comment on Re^4: (Golf) Tic Tac Toe
Download Code
Re^5:
by Jasper (Chaplain) on Jun 17, 2004 at 16:22 UTC
    CORRECTION: I am stupid, after all.

    The OPs method of checking the verticals and diagonals was pretty clever.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-12-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls