Weakest calculator/pocket computer that can do Tower of Hanoi?
|
08-13-2018, 01:07 PM
Post: #21
|
|||
|
|||
RE: Weakest calculator/pocket computer that can do Tower of Hanoi?
Very nice code, Thomas. I'll have to see if I can use any of that algorithm to improve my clumsy Casio fx-7000g version.
(N.B.: I've used the more standard ^ symbol for the x^y key, and (10^) to represent the small "10" that corresponds to 10^x.) Prog 0 Code: Mcl Prog 1 - This is a register-packing "get" routine. Code: P[Int(I÷9→Z Prog 2 - And this is the corresponding "put" routine. Code: D→H Prog 3 - Display routine. There's no way to selectively erase parts of the screen, so the entire screen must be cleared and redrawn after each move. Code: Cls |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)