Post Reply 
Weakest calculator/pocket computer that can do Tower of Hanoi?
08-11-2018, 08:35 PM
Post: #4
RE: Weakest calculator/pocket computer that can do Tower of Hanoi?
Doing it on the 25 does seem a bit ambitious. When I started writing the code, it turned out quite a bit longer than I thought. Devil in the details... It does fit in the 19C/29C, though:

Code:
01▸LBL 0
02 STO 0
03 2
04 ÷
05 FRAC
06 X≠0?
07 9
08 ENTER
09 1
10 2
11 3
12 +
13 STO 2
14 RCL 0
15 10↑X
16 9
17 ÷
18 INT
19 STO 3
20 CLX
21 STO 4
22 STO 5
23▸LBL 1
24 RCL 2
25 1
26 0
27 ÷
28 INT
29 LASTX
30 FRAC
31 EEX
32 3
33 ×
34 X<>Y
35 +
36 STO 2
37 LASTX
38 RCL 3
39 RCL 4
40 X>Y?
41 GTO 2
42 +
43 1
44 GTO 3
45▸LBL 2
46 +
47 X<>Y
48 1
49 0
50 ÷
51 INT
52 LASTX
53 FRAC
54 EEX
55 2
56 ×
57 +
58 X<>Y
59 1
60 CHS
61▸LBL 3
62 X<>Y
63 X=0?
64 RTN
65 LOG
66 INT
67 10↑X
68 ×
69 STO- 3
70 STO+ 4
71 R↓
72 R/S
73 RCL 3
74 RCL 4
75 RCL 5
76 STO 3
77 R↓
78 STO 5
79 R↓
80 STO 4
81 GTO 1
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Weakest calculator/pocket computer that can do Tower of Hanoi? - Thomas Okken - 08-11-2018 08:35 PM



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