POV-Ray : Newsgroups : povray.animations : towers of hanoi : Re: towers of hanoi Server Time
9 Oct 2026 08:45:56 EDT (-0400)
  Re: towers of hanoi  
From: koppi
Date: 18 Aug 2026 00:01:20
Message: <6a83d910@news.povray.org>
On 8/17/26 16:39, kurtzlepirate wrote:
> On 16/08/2026 13:48, jr wrote:
> 
> invoked in this way:
> tower_of_hanoi(NumDisk, "1", "3", "2")
> 
> ... but from there on, it's difficult to implement the movement of the 
> discs to turn it into an animation. I never really found a solution. The 
> project fell through :(
> 
> 
> If anyone has the heart...

Did not know, it is possible with macros. Attached is the version with 
recursion + animation.

Happy POVing,
koppi


Post a reply to this message


Attachments:
Download 'hanoi-recursive.pov.txt' (8 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.