dankcalculatorbro wrote:
Okay, so I should probably run this on my calculator to see if this works, but here is how I would think you would do this. I am using 1 as the head and 0 as the body, and have marked new and changed lines.
Code:
Code:
ClrHome
13A:5B:10X:1P:26D
X→dim(L1
X→dim(L2
A→G //changed
B→H //changed
Fill(B,L1
Fill(A,L2
Repeat K=45
Output(L1(P),L2(P),"[one space]
Output(B,A,"1 //changed (outputs head at new position)
Output(H,G,"0 //changed (outputs segment on top of old head)
B→L1(P):A→L2(P
P+1-X(P=X→P
getKey→K
A→G //changed
B→H //changed
If max(K={24,25,26,34
K→D
A+(D=26)-(D=24→A
B+(D=34)-(D=25→B
A+26((A=0)-(A=27→A
B+10((B=0)-(B=11→B
End
I just tried that code on my calculator after removing the quotes and replacing the squares with →. It keeps giving me a syntax error...