$_="- - -\n"x3; $"=o;W:while($"=($"eq x?o:x)){$i=0;$O=$_;$O =~s/-/$i++/ge;print$O.$";$H=<>;$w=0;s/-/$w++==$H?$":$&/egs ;$B=$_;for$P(o,x){s/$P{3}/$&/;s/($P . .\n){3}/$&/; s/(. $P .\n){3}/$&/;s/(. . $P\n){3}/$&/; s/$P . .\n. $P .\n. . $P/$&/;s/. . $P\n. $P .\n$P . ./$&/; last(W)if$&=~m/o|x/}$_=$B}print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tic tac toe
by delirium (Chaplain) on Jun 04, 2004 at 13:57 UTC | |
|
RE: Tic tac toe
by ChuckularOne (Prior) on Aug 17, 2000 at 21:46 UTC | |
|
RE: Tic tac toe
by BigJoe (Curate) on Aug 17, 2000 at 16:36 UTC | |
by maverick (Curate) on Aug 17, 2000 at 18:53 UTC | |
by BigJoe (Curate) on Aug 17, 2000 at 19:06 UTC | |
by turnstep (Parson) on Aug 17, 2000 at 20:34 UTC | |
|
Re: Tic tac toe
by vek (Prior) on Jul 05, 2003 at 13:56 UTC |