http://qs321.pair.com?node_id=1136666


in reply to Recursion: The Towers of Hanoi problem

Really simple implementation. You might be interested in this visualization of Towers of Hanoi: https://thewalnut.io/visualizer/visualize/1322/342/ It is based on a non-recursive algorithm, although the implementation is in Python, instead of Perl. I'm not experienced enough to port it yet...
  • Comment on Re: Recursion: The Towers of Hanoi problem