Koch Island by 51b

i,j,k;main(n,c,d){for(n=1<<getchar()%8*2;i<2*n;i++)for(j=2*n;~j--;putchar(~j?"\\/ "[c]:10))for(c=(i^j)/n,k=n;k/=4;c=c>1|(d?i:j)/k%4%3<1^c^d?2:!d)d=i/k+j/k&1;}

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

download

return to the top page