Tic Tac Toe by MG (no \n)

$a=" 
---+---+---
";$b=" 1x x4$a 7x2x $a 5x6x3 

";map{$c=$_%2?X:O;$b=~s/$_/$c/;$_=$b;s/\d/ /g;s/x/ | /g;print}1..7;

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

download

return to the top page