Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 imbibing at the Monastery: (6)
As of 2014-09-20 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls