Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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
Replies are listed 'Best First'.
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 scrutinizing the Monastery: (8)
As of 2015-07-08 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls