100 FOR L = 1 TO 5 STEP 4:DR(L) = SQ(A,B -W):DR(L +1) = SQ(A +W,B):DR(L +2) = SQ(A +W,B +W):DR(L +3) = SQ(A -W,B +W):W = -W: NEXT L
110 IF V THEN FOR L = 1 TO 8:V(DR(L)) = V(DR(L)) -1: NEXT :V = 0
120 FOR L = 1 TO 8: IF V(DR(L)) >0 AND T(DR(L)) THEN CT = CT +W:PM(CT,M) = DR(L)
130 NEXT L:NM(M) = CT: RETURN
140 FOR K = 1 TO NM(0):TM(K) = TM(K) +V(PM(K,0)): IF DF >2 THEN SQ = PM(K,0):M = 1: GOSUB 90: FOR N = 1 TO NM(1):TM(K) = TM(K) +V(PM(N,1)): NEXT N: IF DF >3 THEN GOSUB 160
150 NEXT K: RETURN
160 FOR LL = 1 TO NM(1):SQ = PM(LL,1):M = 2: GOSUB 90: FOR LM = 1 TO NM(2):TM(K) = TM(K) +V(PM(LM,2)): NEXT LM: NEXT LL: RETURN
170 HOME : VTAB 23: HTAB 14: PRINT "APPLE'S TURN"
180 NN(1) = 3 -I:NN(2) = I
190 FOR NN = 1 TO 2
200 XX = (PL(0,NN(NN)) -1)/4:YY = (PL(1,NN(NN)) +2)/5
210 M = 0:SQ = SQ(XX,YY): GOSUB 90
220 IF DF = 1 THEN RN = RND(1) *NM(0) +1:SQ = PM(RN,0):XX = X(SQ):YY = Y(SQ): ON NN GOSUB 340,370: IF CT = 0 THEN 970
230 IF DF = 1 THEN 330
240 GOSUB 140
250 FF = 0
260 FOR N = 1 TO NM(0)
270 IF TM(N) > = TM(1) AND TM(N) > = TM(2) AND TM(N) > = TM(3) AND TM(N) > = TM(4) AND TM(N) > = TM(5) AND TM(N) > = TM(6) AND TM(N) > = TM(7) AND TM(N) > = TM(8) THEN FF = FF +1:RF(FF) = N
1000 VTAB 23: HTAB 11 -( LEN(N$(I))/2): PRINT N$(I)" IS THE WINNER !!!": FOR N = 1 TO 3500: NEXT
1010 HOME : VTAB 23: PRINT "ANOTHER GAME ? ";: GET AN$: IF AN$ = "Y" THEN TEXT : HOME : GOTO 670
1020 TEXT : HOME : NORMAL : END
1030 HOME : HTAB 14: PRINT "INSTRUCTIONS": NORMAL : PRINT
1040 PRINT " YOU AND YOUR ARCHRIVAL ARE STRANDED TOGETHER ON A TROPICAL ISLE. YOU EACH HAVE AN UNLIMITED SUPPLY OF SECRET ANTI-MATTER BOMBS WITH WHICH YOU CAN MAKE LAND VANISH AND ONLY SEA REMAIN !"
1050 PRINT " IT IS YOUR MISSION TO ISOLATE YOUR ENEMY ON A QUADRANT SURROUNDED COMPLETELY BY WATER. WITHOUT AN ESCAPE, YOUR ARCHRIVAL CAN EASILY BE CAPTURED."
1060 PRINT " YOU DO THIS BY FIRST CHOOSING A QUADRANT TO BOMB NEAR THE ENEMY, AND THEN, YOU MAKE YOUR ESCAPE TO A SAFER QUADRANT. YOU MAY BOMB ANYWHERE, BUT YOU MAY ONLY MOVE TO ADJACENT QUADRANTS.";
1070 PRINT " TO PLAY, FIRST ENTER THE X, THEN THE Y COORDINATE OF THE MOVE."
1080 PRINT " IF YOU WANT TO PLAY THE COMPUTER, JUST ENTER 'APPLE' WHEN ASKED FOR A PLAYER'S NAME."
1090 REM
1100 VTAB 24: HTAB 8: PRINT "(ANY KEY TO START GAME)";: GET AN$: HOME : GOTO 670