Koch Island by nn

for(i=n=[0,8,32,128][m=System.in.read()&3];i--;println())n.times{q->p=i
g=2*m
for(v=2-(p>>g^q>>g);g;v=v?1526906730-444161385*v>>2*(p>>--g<<2|q>>g)&3:0){p%=h=2**g--
q%=h}
print' /\\'[v]}

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

download

return to the top page