Directions of the star road by nn

r=[i=j=t=32]
for(System.in.each{it<t?i+=t-i%t:(r[i++]=it)};[t,-t,1,k=-1,31,-31,33,-33].any{r[j]=k++;r[n=j+it]>t};j=n)print'|-/\\'[k>>1]

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

download

return to the top page