spiral by grimjim

n=gets.toi;a=Arr.w(n){|y|Arr.w(n){|x|"#{[x,y]}"}};(n+n-1).ti{$*<<a.po;a=a.rv.tr};ps$**' '

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

download

return to the top page