Here is a working Pong for CE calculators (Note that this will NOT work on CSE calculators).
164→Ymax
0→Ymin
0→Xmin
264→Xmax
ClrDraw
CoordOff
GridOff
AxesOff
LabelOff
ExprOff
BorderColor 1
BackgroundOn WHITE
DetectAsymOff
Thick
10→P
12→Q
Lbl A
ClrDraw
Menu(" Select Game Mode ","Versus",V,"Score",S,"Color",C,"Quit",Q
Lbl C
Menu(" Choose Color ","BLUE",1,"RED",2,"YELLOW",3,"MAGENTA",4,"GREEN",5,"ORANGE",6,"BROWN",7,"NAVY",8,"LTBLUE",9
Lbl 1
10→P
Goto A
Lbl 2
11→P
Goto A
Lbl 3
19→P
Goto A
Lbl 4
13→P
Goto A
Lbl 5
14→P
Goto A
Lbl 6
15→P
Goto A
Lbl 7
16→P
Goto A
Lbl 8
17→P
Goto A
Lbl 9
18→P
Goto A
Lbl V
If P=19:Then
BackgroundOn MEDGRAY
20→Q
End
Horizontal 145,Q
Horizontal 15,Q
0→X
0→Y
TextColor(P
Text(3,10,"You:"
Text(3,60,X
TextColor(Q
Text(3,180,"CPU:"
Text(3,230,Y
30→A
40→B
Line(25,A,25,B,P)
80→I
95→J
Line(240,I,240,J,Q)
130→C
80→D
130→E
80→F
5→N
5→O
N→G
O→H
Pt-On(C,D,2,Q
DispGraph
Repeat X=8 or Y=8
getKey→K
If K=25 and B≠140
Then
Line(25,A,25,B,0)
A+10→A
B+10→B
Line(25,A,25,B,P)
DispGraph
Else
Line(25,A,25,B,P)
End
If K=34 and A≠20
Then
Line(25,A,25,B,0)
A-10→A
B-10→B
Line(25,A,25,B,P)
DispGraph
Else
Line(25,A,25,B,P)
End
If K=21
Then
Pause
End
Pt-Off(C,D,2
C→E
C+G→C
D→F
D+H→D
Pt-On(C,D,2,Q
If D=140 and E>C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=140 and E<C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=20 and E>C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=20 and E<C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If C=30 and F>D
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Y+1→Y
TextColor(Q
Text(3,230,Y
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=30 and F<D
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Y+1→Y
TextColor(Q
Text(3,230,Y
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=235 and F>D
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
X+1→X
TextColor(P
Text(3,60,X
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=235 and F<D
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
X+1→X
TextColor(P
Text(3,60,X
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=30 and D=140
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Y+1→Y
TextColor(Q
Text(3,230,Y
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=30 and D=20
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Y+1→Y
TextColor(Q
Text(3,230,Y
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=235 and D=20
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
X+1→X
TextColor(P
Text(3,60,X
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If C=235 and D=140
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
X+1→X
TextColor(P
Text(3,60,X
Wait 3
Pt-Off(C,D,2
130→C
80→D
130→E
80→F
Pt-On(C,D,2,Q
Wait 3
End
End
If rand≤.55
Then
If H=5
Then
If (D+5)>J and J≠140
Then
Line(240,I,240,J,0
I+3H→I
J+3H→J
Line(240,I,240,J,Q
Else
Line(240,I,240,J,Q
End
End
If H=5
Then
If (D-5)<I and I≠20
Then
Line(240,I,240,J,0)
I+3H→I
J+3H→J
Line(240,I,240,J,Q)
Else
Line(240,I,240,J,Q)
End
End
End
End
ClrDraw
If X=8
Then
TextColor(P
Text(40,80,"You Won!"
Pause
Else
TextColor(Q
Text(40,80,"CPU Won!"
Pause
End
Goto A
Lbl S
If P=19:Then
BackgroundOn MEDGRAY
20→Q
End
Horizontal 145,Q
Horizontal 15,Q
0→X
0→Y
TextColor(P
Text(3,10,"Score:"
Text(3,60,X
70→A
80→B
Line(25,A,25,B,P
15→I
145→J
Line(240,I,240,J,Q)
130→C
80→D
130→E
80→F
5→G
5→H
5→N
5→O
Pt-On(C,D,2,Q
DispGraph
Repeat X=1000000
getKey→K
If K=25 and B≠140
Then
Line(25,A,25,B,0)
A+10→A
B+10→B
Line(25,A,25,B,P)
DispGraph
Else
Line(25,A,25,B,P)
End
If K=34 and A≠20
Then
Line(25,A,25,B,0)
A-10→A
B-10→B
Line(25,A,25,B,P)
DispGraph
Else
Line(25,A,25,B,P)
End
If K=21
Then
Pause
End
Pt-Off(C,D,2
C→E
C+G→C
D→F
D+H→D
Pt-On(C,D,2,Q
If D=140 and E>C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=140 and E<C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=20 and E>C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If D=20 and E<C
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
End
If C=30 and F>D
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Goto AA
End
End
If C=30 and F<D
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Goto AA
End
End
If C=235 and F>D
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
X+1→X
TextColor(P
Text(3,60,X
End
End
If C=235 and F<D
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
X+1→X
TextColor(P
Text(3,60,X
End
End
If C=30 and D=140
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Goto AA
End
End
If C=30 and D=20
Then
If A≤D and D≤B
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
Else
Goto AA
End
End
If C=235 and D=20
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
X+1→X
TextColor(P
Text(3,60,X
End
End
If C=235 and D=140
Then
If I≤D and D≤J
Then
Pt-Off(C,D,2
D→F
O→H
C→E
N→G
Pt-On(C,D,2,Q
X+1→X
TextColor(P
Text(3,60,X
End
End
End
Lbl AA
ClrDraw
TextColor(P
Text(40,80,"Game Over"
TextColor(P
Text(60,80,"Your Score:"
Text(60,180,X
Pause
End
Goto A
Lbl Q
Stop