This time our 1000 program comes to us all the way from North Dakota. From Tad Hendrickson, 14 years old. I have been sending a newsletter since I gave him a computer for Christmas. After a couple of months he sent in this program. Not bad for his age and the time on the unit AND with no one to advise or help.
1 REM "CHASE"
10 CLS
15 LET N=0
20 LET A=15
25 LET B=16
30 LET S=0
35 LET C=INT (RND*30)+1
40 LET D=INT (RND*20)+1
45 LET B$=INKEY$
50 PRINT AT A,B; CHR$ 133
55 PRINT AT D,C; CHR$ 6
60 LET N=N+1
65 IF N=500 THEN GOTO 200
70 PRINT AT A,B;" "
75 IF B$="5" THEN LET B=B-1
80 IF B$="8" THEN LET B=B+1
85 IF B$="6" THEN LET A=A+1
90 IF B$="7" THEN LET A=A-1
95 IF B$="0" AND A=D AND B=C THEN GOTO 500
97 IF B$="0" THEN PRINT AT D,C;"X"
100 PRINT AT D,C;" "
105 IF C=30 THEN GOTO 35
110 LET C=C+1
115 GOTO 45
200 PRINT AT 10,14;"SCORE IS=";S
210 STOP
500 LET S=S+1
510 PRINT AT D,C;"X"
520 PRINT AT D,C;" "
530 GOTO 35
Transcription note: the listing is corrected so it runs. As printed, line 500 reads S=S+1 without LET, which the ZX81 will not accept; LET is added as in the October 1991 reprint.
use the arrow keys to move.
The object of the game is to score by having your guy (chrs 6) and the computer (chrs 133) be at the same place so that they are one on top of the other and press 0 to fire. Movements are done with 5, 6, 7, 8, the arrows above tell which directions you move. There is a time limit on it and when the time is up it will show you your score.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.