I posted my own entry, but wasn't satisfied with it. After some more tinkering and an epiphany or two, I came up with this, measuring in at 159 characters:
The challenge: Create a script that follows the rules below, in as few characters as possible.$_="123 456 789 147,258,369,159,357";$p=X;sub d{/.{12}/s;print$&.$p;die$_ for@_} n:d;$m=<>until$m=~/\d/&&s/$&/$p/g;/$p{3}/?d$p:!/\d/?d"Tie":$p=~y/XO/OX +/;goto n
Rules:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Golf) Tic Tac Toe
by ambrus (Abbot) on Jun 06, 2004 at 22:08 UTC | |
by jdhawke (Acolyte) on Jun 06, 2004 at 23:55 UTC | |
by QM (Parson) on Jun 06, 2004 at 23:56 UTC | |
by thospel (Hermit) on Jun 07, 2004 at 18:14 UTC | |
|
Re: (Golf) Tic Tac Toe
by belg4mit (Prior) on Jun 07, 2004 at 04:22 UTC | |
|
Re: (Golf) Tic Tac Toe
by Anonymous Monk on Jun 07, 2004 at 16:05 UTC | |
by thospel (Hermit) on Jun 07, 2004 at 16:17 UTC | |
by thospel (Hermit) on Jun 07, 2004 at 16:24 UTC | |
by thospel (Hermit) on Jun 07, 2004 at 17:11 UTC | |
by delirium (Chaplain) on Jun 08, 2004 at 11:52 UTC |