I have been working on a bunch of small programs lately (I am still fairly new to programming and don't know a whole lot about it) and I have gotten stuck on how to progress on this specific one.
My goal is to be able to have the user (or users as it's supposed to be for 1-4 players) choose a combination for three coin flips. Then, each coin flip is displayed on the screen one by one. Once a prediction is made by the repeated coin tosses, the program registers this and declares the winner.
Iv'e hit a brick wall on this one and don't really know how to move forward from here. Any help is greatly appreciated!
Code:
Note: I have been programming for the TI-84 Plus CE
Also, a second question. When I use the code editor here, or copy someones code here, I won't run on my calculator because it adds a space at the end of every line. I've had to manually delete every space to get it to run. Is there any way that I can prevent this from happening or get my calculator to run it?
My goal is to be able to have the user (or users as it's supposed to be for 1-4 players) choose a combination for three coin flips. Then, each coin flip is displayed on the screen one by one. Once a prediction is made by the repeated coin tosses, the program registers this and declares the winner.
Iv'e hit a brick wall on this one and don't really know how to move forward from here. Any help is greatly appreciated!
Code:
1→H
0→Z
ClrHome
Disp "SELECT NUMBER OF PLAYERS
Input "PLAYERS=",W
Lbl 0C
Lbl C0
IS>(Z,W-1
Goto CS
ClrHome
Output(1,9,"PLAYER
Output(1,16,Z
Repeat H=4
Output(3,4,"INPUT COIN FLIP
Output(3,20,H
Input Y
Y→⌊V(H
H+1→H
End
Goto C0
Output(3,20,
Lbl CS
0→H
ClrHome
Output(1,1,"P1:
Output(1,5,⌊V(1
Output(1,6,⌊V(2
Output(1,7,⌊V(3
randInt(0,1,54)→G
While H<26
H+1→H
⌊G(H)→L
If L=0
Then
Output(5,H,"H
Else
Output(5,H,"T
End
Pause
End
Lbl CR
H+1→H
⌊G(H)→L
If L=0
Then
Output(6,H-26,"H
Else
Output(6,H-26,"T
End
Pause
Goto CR
Note: I have been programming for the TI-84 Plus CE
Also, a second question. When I use the code editor here, or copy someones code here, I won't run on my calculator because it adds a space at the end of every line. I've had to manually delete every space to get it to run. Is there any way that I can prevent this from happening or get my calculator to run it?