Tower of Hanoi by youz

(defun s(a b l)(sublis`((,a .,b)(,b .,a))l))(do((i(read))(l()`(,@(s'b'c l)a,@(s'a'b l))))((<(decf i)0)(format t"~{~A~}
~{~A~}"l(reverse(s'a'c l)))))

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

download

return to the top page