tic tac toe by jpl

while a=$<.read(13)
i=0;i+=1until a[i]<46&&(t=''+a;t[i]='X';t)=~/X(X|..(X|.X.|..X..)..)X/m
$><<t
end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top