Tower of Hanoi by ksk

1.upto(2*z=1<<id%9){|n|putc$/[n%z]||(n%z+~n/z*n&=-n)*-z%3+65}

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

download

return top