Another little corner of the internet. Anything using fixed-width fonts and without pictures has surely got to be promising in this day and age, surely...
Any conversation
Érdekes ez a 4, 2-es irodalmi, valamint programozási hagyomány, amire Douglas Adams hívta fel a figyelmet, nálam ebből a hagyományból 4 a pszichiátriai, 2 a rehabilitációs téma, ami érdekes módon maga is 4, 2-es, ami olyan, mintha rekurzív kezdene lenni, de mégsem az teljesen www.textlog.hu/a-4-adel-es-2-szuzett/
This 4, 2 literary and programming tradition, which Douglas Adams drew attention to, is interesting. In my case, 4 of this tradition are psychiatric and 2 are rehabilitation topics, which is interestingly itself a 4, 2, which seems to be starting to be recursive, but it is not completely www.textlog.hu/a-4-adel-es-2-szuzett/
🐉
let N=6,D0=[0,1,0,-1],D1=[1,0,-1,0],s=[],g={},d=x=y=xa=xb=ya=yb=0;
for(let n=0;n<N;n++){s=s.concat([1]).concat(s.map(x=>!x).reverse())}
for(let i=0;i<s.length;i++) {
x<xa && (xa=x);y<ya && (ya=y);x>xb && (xb=x);y>yb && (yb=y);
let t=s[i]?1:-1,e=(d+t+4)%4;
g[x]||(g[x]={});
g[x][y]=g[x][y]?"┼":"┌┐└┘"[(t*(D0[d]+D0[e])>0?0:2)+(t*(D1[d]+D1[e])>0?0:1)];
x+=D0[e];y+=D1[e];d=e;
}
for(j=yb;j>=ya;j--) {
let u=""; for(i=xa;i<=xb;i++){u+=(g[i][j]||"·")} console.log(u);
}·┌┐┌┐·······
┌┘└┼┘····┌┐·
└··└┐┌┐···└┐
···┌┼┼┘···┌┘
···└┼┼┐┌┐┌┼┐
···┌┼┘└┼┼┘└┘
···└┼┐·└┼┐··
····└┘··└┘··
