home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arcade BBS
/
arcadebbs.zip
/
arcadebbs
/
SIMON.ZIP
/
SIMON.ASC
< prev
next >
Wrap
Text File
|
1994-02-10
|
1KB
|
81 lines
\START\
\COMMENT=Program file dated 01/09/94, 17:42
\NAME=SIMON
\FILE=SIMON.85p
ClLCD
Disp " Simon says,"," 'Copy me!'"," High score:","",""," P\#\
ress Enter when"," ready"
Outpt(3,17,SIMONHI
Pause
ClLCD
Disp " Simon says,"," 'Copy me!'"
round(5rand,0)\->\x
If x==0:5\->\x
{x\->\z
Lbl L1
For(y,1,dimL z
z(y)\->\x
If x==1:Outpt(8,1,"F1"
If x==2:Outpt(8,5,"F2"
If x==3:Outpt(8,10,"F3"
If x==4:Outpt(8,15,"F4"
If x==5:Outpt(8,20,"F5"
For(A,1,150
End
If x\<>\1
Then
Outpt(8,5(x-1)," "
Else
Outpt(8,1," "
End
End
{0\->\x
1\->\y
Lbl L2
getKy\->\KEY
If KEY<11 or KEY>15
Goto L2
Outpt(8,1," "
If KEY==11
Outpt(8,1,"F1"
If KEY==12
Outpt(8,5,"F2"
If KEY==13
Outpt(8,10,"F3"
If KEY==14
Outpt(8,15,"F4"
If KEY==15
Outpt(8,20,"F5"
KEY-10\->\x(y)
If x(y)\<>\z(y):Goto W
y+1\->\y
If y\<=\dimL z
Goto L2
For(y,1,50
End
Outpt(8,1," "
Outpt(7,8,"Right!"
For(y,1,250
End
Outpt(7,8," "
round(5rand,0)\->\x
If x==0:5\->\x
x\->\z(dimL z+1)
Goto L1
Lbl W
Outpt(7,8,"Wrong!"
Outpt(8,1,"I stumped you at "
Outpt(8,18,dimL z
For(y,1,700
End
ClLCD
If dimL z\<=\SIMONHI
Return
dimL z\->\SIMONHI
Disp "Congrats! You beat",SIMONHI2,"with a score of","Enter your name:\#\
"
Outpt(3,17,SIMONHI
InpST SIMONHI2
ClLCD
\STOP\