Weakest calculator/pocket computer that can do Tower of Hanoi?

08152018, 08:12 PM
Post: #30




RE: Weakest calculator/pocket computer that can do Tower of Hanoi?
Now that we know that binary operations and remainder are useful in an iterative solution here's a version for the HP16C:
Code: 01 RCL I Initialisiation DEC 1 STO I RTN Endless Loop R/S Y: to X: from Example: R/S 0 R↓ 2 R/S 0 R↓ 1 R/S 2 R↓ 1 R/S 0 R↓ 2 … Thus:
It doesn't tell you which disk to move but that's not needed. Kind regards Thomas 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)