Tic Tac Toe by yamaya

t=---+---+---
t="1|9|4
$t
7|2|9
$t
5|6|3
"
for i in {1..7};{
t=${t/$i/ $[i%2] }
tr 01 OX<<<"${t//[2-9]/   }"
}

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

download

return to the top page