Tic Tac Toe by nn

b='---+---+---\n'+(a='   |   |   \n')
s=(a+b+b).split('')
7.times{s[(int)'\x02\x1e:\n26\x1a'[it]]='XO'[it%2];println s.join()}

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

download

return to the top page