Shootout

XK How the program works
You are standing backto 4810 cis
| "YOU "
ACES... computer round 10 times to
SO FOR I<1 TO 10 pe at a zzmbor mad two dote
k co P .. nun. Jona e.
Your computer prints the aco RENTSIR?,>, sach
NEXT I Another loop - this time to
numbers | to 10 torepresent make the computer delay.
the 10 paces, pauses and 90 PRINT The computer loops rounda
| hi 100 NEXT I on the value of RND, doing
kou must be ready to press nothing.
lay (any one will do) the za Checks you're not cheating
en. radii DRAWS comes on the screen.
z i - 6 Ča 4 "aa 120 PRINT "HE DRAWS So 6 o mn m ni ——— ooo Prints the signal for you to
revi mok, press a key.
Wed D Ox8 Y |x6040150 FOR I-1 To s Check the keyboard to see if
ÂŤ 440140 IF INKEY$<>"" THEN GOTO 190 You are pressing a key, and
k 150 NEXT I jumpe to 190 ifyou are.
(Notice that line 140 is in the
To ob n middle ofa FOR... NEXT
KEYBOA loop. This makes the
computer check the
keyboard a number of times

160 PRINT "AND SHOOTS. "
170 PRINT "YOU ARE DEAD."
180 GOTO 210

190 PRINT "BUT YOU SHOOT FIRST. "
200 PRINT "YOU KILLED HIM.?"
210 STOP
The above listing will work on a ZX81. For
other computers, make the changes below.
610 HOME
4 10 PRINT CHR$(147)
460 PRINT sI5"..%g
484065 FOR J<i TO 300 : NEXT .———-—-——o an oxtra delay loop for the
k 4090 FOR Izi TO RND(1)81000 faster computers.
N9O FOR Izi TO RND(0) 81000
0110 IF PEEK(-16384)>127 THEN GOTO 160
4110 GET I$ : IF I$<>"" THEN GOTO 160
4110 IF INKEY$(1)<>"" THEN GOTO 160
8130 FOR I<i TO 20
N 4130 FOR Izi TO 50
4DELETE 130,150
0140 IF PEEK(-16384)>127 THEN GOTO 190
4140 GET I$ : IF I$<>"" THEN GOTO 190
4140 IF INKEY$(40)<>"" THEN GOTO 190

iking the game harder

program as follows, willadd 3 ZX220IFRND>.3THEN GOTO 190
cah ze lese ka 0220 IFRNIC1)>.3 THEN GOTO 190

III TTIT
J—— - M —--o—- a — ba M Is m