- Pi Runner for the calc
- 25 Nov 2015 02:56:15 pm
- Last edited by Caleb_J on 08 Dec 2015 03:40:17 pm; edited 3 times in total
I just came up with the idea to make the game Pi runner for the calculator, using the getKey command. Here it goes:
Code:
What do you guys think? Any code optimizations that you can think of?
Code:
[92,82,92,83,74,93,84,83,82]->L1 //getkey codes for 1,4,1,5,9,2,6,5, and 4//
1->B:0->C
Repeat C=1
If getKey!=0:Then
getKey->A
End
If A=L1(B):Then
B+1->B
Else:1->C
End
Disp "YOU KNOW",B,"DIGITS"
What do you guys think? Any code optimizations that you can think of?