Tic Tac Toe by MG

$a=" \n---+---+---\n";$b=" 1x x4$a 7x2x $a 5x6x3 \n\n";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