2230 PRINT "WHEN ALL BLOCKS HAVE BEEN RETRIEVED, THE"
2240 PRINT "PLAYER WITH THE HIGHEST SCORE WINS!"
2250 VTAB 14
2260 INPUT "DO YOU WISH (P)ADDLE OR (K)EYBOARD CONTROLS? ";I$: PRINT : IF I$ < >"P" AND I$ < >"K" AND I$ < > CHR$(107) AND I$ < > CHR$(112) THEN 2260: REM 6 SPACES
2270 INPUT "ENTER THE NAME OF PLAYER #1: ";P$(1)
2280 PRINT
2290 PRINT "IF YOU WISH TO PLAY AGAINST THE COMPUTERTHEN ENTER 'APPLE' AS PLAYER #2."
2300 PRINT
2310 INPUT "ENTER THE NAME OF PLAYER #2: ";P$(2)
2320 P$(1) = LEFT$(P$(1),8)
2330 P$(2) = LEFT$(P$(2),8)
2340 FOR I = 1 TO 2:XP$ = "": FOR J = 1 TO LEN(P$(I)):XX = ASC( MID$ (P$(I),J,1)):XP$ = XP$ + CHR$(XX -32 *(XX >96 AND XX <123)): NEXT J:P$(I) = XP$: NEXT I: TEXT : RETURN
2350 REM
2360 REM +------------------+
2370 REM ! APPLE'S TURN !
2380 REM +------------------+
2390 REM
2400 VTAB 24: HTAB 31: FLASH : PRINT "THINKING";: NORMAL
2410 FOR X = 1 TO 7:VL(X) = 0:AX(X) = 0:AY(X) = 0
2420 NEXT :NM = 0:FG = 0
2430 REM FIND TOTAL FREE
2440 FOR X = 2 TO 26 STEP 2
2450 IF NOT SCRN( X,34) AND NOT SCRN( X,31) THEN NEXT
2630 VL(T) = VL(T) +2 *(C = C(1) AND C2 = C(1) AND SCRN( X +3,Y))
2640 GOTO 2660
2650 VL(T) = VL(T) +2 *(C = C(1) AND C2 = C(1) AND SCRN( X -3,Y) AND SCRN( X +3,Y))
2660 VL(T) = VL(T) -2 *(C1 < >C(1) AND C2 = C(1) AND NOT SCRN( X +3,Y))
2670 IF X = 2 THEN 2690
2680 IF (C1 = C(1) AND C2 < >C(1) AND NOT SCRN( X -3,Y)) OR (C1 < >C(1) AND C2 = C(1) AND NOT SCRN( X +3,Y)) THEN VL(T) = VL(T) -2
2690 VL(T) = VL(T) +(C = C(2) AND C1 = C(2) AND C2 = C(1) AND SCRN( X +3,Y))
2700 IF X -3 > -1 THEN 2720
2710 VL(T) = VL(T) -2 *(C = C(2) AND C1 = C(1) AND C2 = C(2) AND NOT SCRN( X +3,Y)): GOTO 2730
2720 VL(T) = VL(T) -2 *(C = C(2) AND C1 = C(1) AND C2 = C(2) AND SCRN( X -3,Y) AND NOT SCRN( X +3,Y))
2730 IF X = 2 THEN 2760
2740 VL(T) = VL(T) +2 *(C = C(2) AND C1 = C(1) AND C2 = C(2) AND SCRN( X -3,Y))
2750 VL(T) = VL(T) -(C1 = C(1) AND C2 = C(1) AND SCRN( X -3,Y) AND NOT SCRN( X +3,Y))
2760 VL(T) = VL(T) +2 *(C = C(2) AND C1 = C(2) AND C2 = C(1) AND SCRN( X +3,Y))
2770 IF X = 2 THEN 2790
2780 VL(T) = VL(T) -(C1 = C(1) AND C2 = C(1) AND SCRN( X +3,Y) < >15 AND SCRN( X +3,Y) AND NOT SCRN( X -3,Y))
2790 VL(T) = VL(T) -2 *(C = C(2) AND C1 = C(3) AND C2 = C(1) AND SCRN( X +3,Y))
2800 IF X = 2 THEN 2830
2810 VL(T) = VL(T) -2 *(C = C(2) AND C1 = C(1) AND C2 = C(3) AND SCRN( X -3,Y))
2820 IF (C1 = C(3) AND C2 = C(1)) OR (C1 = C(1) AND C2 = C(3)) AND ( NOT SCRN( X -3,Y) AND NOT SCRN( X +3,Y)) OR ( SCRN( X -3,Y) AND SCRN( X +3,Y)) THEN VL(T) = VL(T) +1
2830 VL(T) = VL(T) +(C = C(3) AND P(2) -P(1) >50)
2840 VL(T) = VL(T) -(C = C(3) AND P(2) -P(1) <60)
2850 VL(T) = VL(T) +(C = C(3) AND P(1) -P(2) >30)
2860 VL(T) = VL(T) -(C = C(2) AND C1 = C(2) AND C2 = C(3) AND NOT SCRN( X +3,Y))
2870 VL(T) = VL(T) +15 *(C = C(3) AND NUM <5 AND P(1) -P(2) >10)
2880 VL(T) = VL(T) +(C = C(3) AND NUM <10)
2890 NEXT
2900 REM DETERMINE WHICH BLOCK IS "WORTH" THE MOST