Recursive Expansion by tails

f(y,x){return"\xa4O2\xd9"[x+y?f(x/2,y/2):0]>>y%2*4+x%2*2&3;}y;x;main(k,l){for(;y<=1<<-l%7;puts("|"+!y++))for(x=0;x<2<<-l%7;++x)printf("%.2s","|___| |_ _"+2*(y?l%3?f(x,y-1)^2:f(y-1,x):x?1:4));}

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

download

return to the top page