tic tac toe by clock

gsub(/-/){$_="#$`X#$'";~/#{[0,2,3,4].map{|n|["X"]*3*("."*n)}*"|"}/m&&(print;break)}while gets$/*2

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

download

return top