ClrHome
Input "LP: ",L
toString(L)→Str1
toString(L)→Str2
Lbl 3
If expr(Str1)≤0:Then
Pause "Player 2 Wins!"
Stop
End
If expr(Str2)≤0:Then
Pause "Player 1 Wins!"
Stop
End
Menu("Life Points","P1 "+Str1,1,"P2 "+Str2,2
Lbl 1
Input "Change: "+Str1,Str3
Str1+Str3→Str3
toString(expr(Str3))→Str1
Goto 3
Lbl 2
Input "Change: "+Str2,Str3
Str2+Str3→Str3
toString(expr(Str3))→Str2
Goto 3|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |