This is a 2 player battle game that I made and posted on my YouTube channel (CalcNerd). I hope you enjoy it! To move the Pi you use the arrow keys and the [graph] button to place a mine (randomly) on the screen. To move the i you use the [X,t, theta,n] button, the [math] button, the [apps] button, and the [prgm] button. To place a mine for the i, use the [alpha] button. You can lose by hitting either "mine".
I am fairly new to Ti-Basic so I am very open to suggestions that all you Pros have :)! Here is the program…
:ClrDraw
:ClrHome
:16->X
:8->Y
:1->Z
:1->R
:1->G
:1->H
:1->A
:8->B
:0->K
:While 1
:Lbl Theta (I don't know how to get a theta)
:GetKey->K
:ClrHome
:Output(R,Z,"*
:Output(G,H,"*
:Output(Y,X,"i (the I from [2nd] [.])
:Output(B,A,"PI (I don't know how to get a Pi)
:If K=32
:Y-1->Y
:If K=41
:X-1->X
:If K=43
:X+1->X
:If K=42
:Y+1->Y
:If K=24
:A-1->A
:If K=25
:B-1->B
:If K=26
:A+1->A
:If K=34
:B+1->B
:If A=17
:1->A
:If A=0
:16->A
:If B=0
:8->B
:If B=9
:1->B
:If X=17
:1->X
:If X=0
:16->X
:If Y=9
:1->Y
:If Y=0
:8->Y
:If A=H and B=G
:Goto 3
:If A=Z and B=R
:Goto 4
:If X=H and Y=G
:Goto 5
:If X=Z and Y=R
:Goto 6
:If K=31
:Goto 1
:If K=15
:Goto 2
:End
:Lbl 1
:randInt(1,16)->Z
:randInt(1,8)->R
:Output(R,Z,"*"
:Goto Theta
:Lbl 2
:randInt(1,8)->G
:randInt(1,16)->H
:Output(G,H,"*"
:Goto Theta
:Lbl 3
:Lbl 4
:ClrHome
:Output(4,5,"i Wins!"
:Stop
:End
:Lbl 5
:Lbl 6
:ClrHome
:Output(4,5,"Pi Wins!"
:Stop
:End