--- title: "The Hanoi Tower" type: "article" slug: "the-hanoi-tower" url: "http://localhost/article/the-hanoi-tower/" markdown_url: "http://localhost/article/the-hanoi-tower.md" published_at: "2026-01-20T20:45:34+00:00" modified_at: "2026-01-20T20:45:34+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "This version of the old game of moving a tower of disks from one peg to another, with one intermediate peg, has two interesting features. First, it shows the application of recursive programming which provides an elegant keel of code for the movement of the disks. Second, it gives an example of the use of…" post_tag: - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" - name: "Superbasic (programming language)" slug: "superbasic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/superbasic-programming-language/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Duane Parker" slug: "duane-parker" taxonomy: "indiv" url: "http://localhost/indiv/duane-parker/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" authors_r: - name: "Duane Parker" slug: "duane-parker" taxonomy: "indiv" url: "http://localhost/indiv/duane-parker/" volume: "7" issue: "6" issues_articles: - id: 38899 title: "CATS v7 n6" type: "issue" url: "http://localhost/issue/cats-v7-n6/" pages: "5, 4" pubdate: "October 1989" archive_link: false --- # The Hanoi Tower This version of the old game of moving a tower of disks from one peg to another, with one intermediate peg, has two interesting features. First, it shows the application of recursive programming which provides an elegant keel of code for the movement of the disks. Second, it gives an example of the use of color blocks in different layers. This program is set up for the “Skip Fisher” RBG or a color composite TV.