[Figure: Drawing of a motorcycle rider]
Test your skill and luck on a ZX80 motorcycle! In this game you compete with another rider on a 32 mile track on which you meet various obstacles and road conditions. The key to winning the race is meeting the obstacles with just the right speed. The faster you try to go, the less chance you have of overcoming the obstacle. If you go too fast, you will go down; if you choose the right speed, you will advance after the obstacle according to the speed you choose. Of course, you cannot play it safe by sticking to the lower speeds because your opponent will beat you to the finish line. You must take the risks to win. No trophies are offered, but you can still be the winner.
Type in the program and run it. The computer will print out a symbolic track and show the relative positions of the cycles as the challenges of the track are met. The first player will be asked how fast he wants to take obstacle #1 then presses a number from 1 to 9 and NEWLINE. The second player is asked how fast he wants to take obstacle #1. He also enters his choice. After NEWLINE is pressed, the computer will show the positions of the motorcycles according to the players’ choices. It will print how far each cycle advances and in parentheses the total miles travelled. If the cycle goes too fast, it will be down. A new obstacle is presented, and each player is asked how fast he wants to go to meet it. The play continues until one cycle (or both) completes the 32 mile course and the winner declared.
2 LET G=1
3 LET B=1
12 LET A$="BLACK CYCLE"
14 LET B$="GRAY CYCLE"
15 GO SUB 815
100 LET D=RND(6)
104 IF D=1 THEN PRINT "WATER AN
D MUD"
106 IF D=2 THEN PRINT "DEEP HOL
E"
108 IF D=3 THEN PRINT "SHARP TU
RN"
110 IF D=4 THEN PRINT "BUMPY TR
ACK"
112 IF D=5 THEN PRINT "FALLEN R
IDER"
114 IF D=6 THEN PRINT "LOOSE GR
AVEL"
120 PRINT "HOW FAST?"
135 PRINT
140 LET D=RND(10)
152 PRINT B$;" INPUT 1# TO 9"
155 INPUT K
156 PRINT
167 PRINT A$;" INPUT 1# TO 9"
170 INPUT U
180 IF NOT K>D THEN LET G=G+K
181 IF NOT U>D THEN LET B=B+U
182 IF G>32 THEN LET G=32
185 IF B>32 THEN LET B=32
200 GO SUB 815
210 IF NOT K>D THEN PRINT B$;"#
ADVANCES#";K,"(";G;"#MI.)"
220 IF K>D THEN PRINT B$;"#IS D
OWN","(";G;"#MI.)"
230 IF NOT U>D THEN PRINT A$;"#
ADVANCES#";U,"(";B;"#MI.)"
240 IF U>D THEN PRINT A$;"#IS D
OWN","(";B;"#MI.)"
242 PRINT
245 IF G<32 AND B<32 THEN GO TO
90
260 GO SUB 815
280 IF G=B THEN PRINT ,"TIE"
285 IF G>B THEN PRINT ,B$;"#WON
"
290 IF B>G THEN PRINT ,A$;"#WON
"
310 STOP
815 CLS
845 PRINT B$
850 GO SUB 880
860 POKE PEEK(16396)+PEEK(16397
)*256+11+G,139
870 PRINT A$
880 FOR S=1 TO 32
885 PRINT "W"; (shift)
890 NEXT S
895 POKE PEEK(16396)+PEEK(16397
)*256+57+B,128
900 PRINT
901 PRINT
905 RETURN
In the original listing ” AND” (line 104) and “INPUT” and “TO” (lines 152 and 167) are underlined, i.e. entered as keyword tokens; the “W” in line 885 is underlined (shifted graphic).
Sample Run
GRAY CYCLE ■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ BLACK CYCLE ■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ FALLEN RIDER HOW FAST? GRAY CYCLE INPUT 1 TO 9 LS
[Figure: Figure 1. First player’s turn.]
GRAY CYCLE ■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ BLACK CYCLE ■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ FALLEN RIDER HOW FAST? GRAY CYCLE INPUT 1 TO 9 BLACK CYCLE INPUT 1 TO 9 LS
[Figure: Figure 2. Second player’s turn.]
GRAY CYCLE ▄▄▄▄■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ BLACK CYCLE ▄▄▄■▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ GRAY CYCLE ADVANCES 4 (5 MI.) BLACK CYCLE ADVANCES 3 (4 MI.) LOOSE GRAVEL HOW FAST? GRAY CYCLE INPUT 1 TO 9 LS
[Figure: Figure 3. Race status after first turns.]
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.