Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Tower of Hanoi

    Work In Progress
    3
    4
    224
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gilman last edited by

      I wrote a simple Tower of Hanoi solver utilizing the classic recursive function. It uses an array of Struct variables for the tiles. Its a fun little implementation and it is commented pretty well. May be a good example for those new to programming. Let me know what you think

      Download ID: LYQ33MNDS4

      hanoi.jpg

      G 1 Reply Last reply Reply Quote 7
      • G
        gilman @gilman last edited by

        Hmm how do I embed a video? I shared it on twitter at the below link

        1 Reply Last reply Reply Quote 4
        • vinicity
          vinicity F last edited by

          Looks nice! Maybe you could turn it into a game and add a mode for letting the user try to solve it as well?

          1 Reply Last reply Reply Quote 0
          • spikey
            spikey F last edited by spikey

            I like this. This code only contains 70 lines and 1 x if. Nice recursion. It would be a nice example for a code-learning library, indeed.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post