Tic Tac Toe by yamaya

END{h="\n---+---+---\n"
for(t="1|9|4"h"7|2|9"h"5|6|3\n";sub(++i,i%2?" X ":" O ",t);){$0=t
gsub(/[0-9]/,"   ")
print}}

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

download

return to the top page