Tic Tac Toe by croyal

function t(b,v,p){
b=b.substring(0,p)+v+b.substring(p+1,b.length)
print(b)
return(b)}
b="   |   |   \n"
l="---+---+---\n"
t(t(t(t(t(t(t(b+l+b+l+b,'X',1),'O',29),'X',57),'O',9),'X',49),'O',53),'X',25)

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

download

return to the top page