Knight Move by llhuii

gsub(r=E,FS){for(f=1;x+=f;)x%9?+(c=substr(s="abcdefgh",index(s,$1)+f*(-1~b=9-x-$2)+f,1>2%b)9-x)||r=r?b>1?c" "r:r" "c:c:--f}$0=r

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

download

return to the top page