Funge spiral by madshall

x=y=14;(s=[l=0])[464]='@';d=1;for(y++;l++<30;d=-d)for(i=2*l;!s[0]&&i--;s[x+30*y]='^>v<'[d+1+(i>=l)])i>=l?x+=d:y-=d;print(s.join('').replace(/.{30}/g,'$&\n'))

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

download

return to the top page