The program is an adaptation from this famous game by Microprose for PC’s that requires 6Mb of memory. But… the ZX-81 has done it with only 1K of memory.
You are the leader of a small group of people at the beginning of history and you have to transform your people into a big civilization. But you are not alone in the world, there are others that will compete with you. Unlike the PC version, the ZX-81 is your only competitor here.
At the start of the game, 4 numbers are displayed – 2 for each group. Z and K indicate the infrastructure, M and L the military strength.
Before you know it, another set of numbers appears – the ZX had attacked you and the numbers reflect your losses. The civilian (infra-structure) losses are always 3 times as much as the military losses.
You have to make decisions on how to divide your strength between the military and the civilian keeping in mind your utmost goal. Peace with prosperity or expansion with war.
10 LET M=VAL "0"
15 LET I=M
20 LET A=VAL "1"
30 LET K=A
40 LET L=M
50 LET A=INT (A*1.5+1)
60 LET K=INT (K*1.5+1)
62 CLS
63 LET I=I+VAL "1"
65 LET V=A+M
66 LET W=K+L
70 PRINT " Z";INT A;" M"; INT M; " K";INT K; " L"
80 LET S=RND*L
85 LET V=V-S
90 LET A=A-0.75*S
100 LET M=V-A
115 LET W=W-S
120 LET K=K-0.75*S
130 LET L=W-K
135 IF L<0 THEN LET L=0
140 PRINT "SCH: Z"; INT A; " M"; INT M; " K"; INT K; " L"; INT L
142 IF A<0 THEN GOTO 190
145 IF K<0 THEN GOTO 200
150 INPUT M
160 LET A=V-M
170 LET L=0.5*W
175 LET K=W-L
176 IF A<0 THEN GOTO 190
177 IF K<0 THEN GOTO 200
180 GOTO 50
190 PRINT "LOST"
195 STOP
200 PRINT "WON"
210 PRINT I
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.