345 XM = XM(MQ):YM = YM(MQ): GOSUB 35:OC(XM,YM) = U
350 IF MQ = NB THEN 360
355 FOR I2 = MQ TO NB -U1:MQ(I2) = MQ(I2 +U1):MP(I2) = MP(I2 +U1):XM(I2) = XM(I2 +U1):YM(I2) = YM(I2 +U1):MF%(I2) = MF%(I2 +U1):OC(XM(I2),YM(I2)) = I2: NEXT
360 NB = NB -U1: RETURN
380 H = U: IF XT >8 OR XT <U1 THEN GOSUB 46: RETURN
382 IF YT >8 OR YT <U1 THEN GOSUB 46: RETURN
384 H = U1: IF XT = XA AND YA = YT THEN XT = XM:YT = YM: IF MA >U THEN JV = MV
386 RETURN
390 XD = XA -XM:YD = YA -YM:D2 = XD *XD +YD *YD: RETURN
450 QX = (XX -1) *24:QY = (8 -YY) *24: FOR I = 86 TO 89: XDRAW I AT QX,QY: FOR L = 1 TO 100: NEXT : XDRAW I AT QX,QY: NEXT
455 FOR I = 89 TO 86 STEP -1: XDRAW I AT QX,QY: FOR L = 1 TO 100: NEXT : XDRAW I AT QX,QY: NEXT : RETURN
500 LE = 4 *SE:C$ = "": FOR M = U1 TO LE
510 IF PEEK( -16384) >127 THEN 530
520 NEXT :L = 0: RETURN
530 C$ = CHR$( PEEK( -16384) -128): POKE -16368,0: IF C$ < = " " OR C$ > = "]" THEN 520
550 L = 1: RETURN
600 IF RND(1) >.2 THEN RETURN
605 IF RND(1) >.8 THEN WD = FN A(4): GOSUB 77
610 FOR I = U1 TO 8: FOR N = U1 TO 8:K% = BA +I +8 *N -8: IF PEEK(K%) <8 THEN 650
620 IF RND(1) >.5 THEN XX = I +IX(WD):YY = N +IY(WD): IF XX >U AND XX <9 AND YY >U AND YY <9 THEN L = BA +XX +8 *YY -8: IF PEEK(L) >4 AND PEEK(L) <8 THEN DB% = DB% +B( PEEK(L) -5): POKE L,8:NS = 9: GOSUB 100: GOTO 650
630 IF RND(1) >.7 THEN POKE K%,4:NS = 5:XX = I:YY = N: GOSUB 100
650 NEXT : NEXT : GOSUB 200: RETURN
4000 TM = U:NR = 4 *LV +KR: IF F <U THEN 4005
4001 FOR I = U TO 9: FOR J = U TO 9:OC(I,J) = U: IF F = U THEN K% = BA +I +8 *J -8: IF PEEK(K%) = 8 THEN POKE K%,4
5905 HU% = HU% +U3/MK(U):AX = XA:AY = YA:DD = 5 + FN A(15):M = U3 *KF -U3 +HT: IF M <U THEN M = 12 +M
5910 AX = AX +CX(M):AY = AY +CY(M):X = INT(AX +.5):Y = INT(AY +.5): IF X >8 OR X <U1 OR Y >8 OR Y <U1 THEN 5040
5915 FOR I = U TO U1: GOSUB 5960: NEXT :MQ = OC(X,Y)
5925 K% = BA +X +Y *8 -8: IF PEEK(K%) < = H OR PEEK(K%) = 8 THEN 5940
5926 FOR I = U TO 5: GOSUB 5960: NEXT I: IF DD <5 + PEEK(K%) THEN 5040
5927 DB% = DB% +B( PEEK(K%) -5): POKE K%,4:NS = 5:I1 = U1:XX = X:YY = Y: GOSUB 100: IF MQ = U THEN 5040
5940 IF MQ >U THEN IF FN A(6) > = PEEK(UL +MQ(MQ)) THEN IF H = 4 OR FL <U OR PEEK(UI +MQ(MQ)) >U THEN XX = X:YY = Y: GOSUB 450: IF DD > PEEK(UC +MQ(MQ)) THEN MP(MQ) = MP(MQ) + PEEK(UC +MQ(MQ)) -DD: IF MP(MQ) <U1 THEN XM = X:YM = Y: GOSUB 340
5950 GOTO 5910
5960 FOR J = 81 TO 85: XDRAW J AT (X -1) *24,(8 -Y) *24: FOR IK = 0 TO 20: NEXT : NEXT : RETURN
6800 IF GB = U THEN POKE KG,6:Q$ = "NO FOOD": CALL 2186: GOTO 5040
6810 FOR I = U1 TO U3: POKE KG,6:Q$ = "CHOMP": CALL 2186: FOR J = U1 TO 400: NEXT : GOSUB 50: FOR J = U1 TO 300: NEXT : NEXT :HU% = HU% -GB:GB = U: GOSUB 75: IF HU% <U THEN HU% = U: POKE KG,6:Q$ = "BURP": CALL 2186: CALL 2474
6820 GOTO 5040
6900 K% = BA +XA +8 *YA -8: IF PEEK(K%) >U AND PEEK(K%) <4 THEN POKE K%,4
6910 GOTO 5040
7000 GOSUB 57: GOSUB 600:HU% = HU% +U3/MK(U):TM = TM +U1:EC = EC +U1:PA = PA -PD: POKE KG,14:Q$ = "TIME: " + STR$(EC):Q$ = Q$: CALL 2186:PL% = PL% +PA:BP = PA: IF IN >U THEN 5040
7001 GOSUB 4800:MQ = U
7002 IF PA <U THEN 11000
7004 MQ = MQ +U1: IF MQ >NB THEN 5040
7005 IF MN(MQ) >U THEN MN(MQ) = U: GOTO 7520
7010 M1 = MQ(MQ):MB = PEEK(UB +M1):MA = PEEK(UA +M1):XM = XM(MQ):YM = YM(MQ):DD = PEEK(UR +M1): GOSUB 60: IF H = U THEN 7200
7100 XX = XA:YY = YA: FOR I = U1 TO 4: POKE KM,252: POKE KN,10: POKE KO,3: CALL KP: NEXT : IF RND(U1) <P THEN GOSUB 7710: GOTO 7110
7105 GOSUB 450
7110 IF MA = U1 OR RND(1) + PEEK(UI +M1) <P THEN 7500
7200 MV = PEEK(UV +M1): FOR JV = U1 TO MV:J = MI(MF%(MQ)):K% = FN A(4): FOR I = U1 TO 4:D(K%) = U: IF K% = J THEN 7220
7210 XT = XM +IX(K%):YT = YM +IY(K%):L = PEEK(BA +XT +8 *YT -8): GOSUB 380: IF H >U THEN IF (MB > = L AND (MB >6 OR L >U)) AND OC(XT,YT) = U THEN GOSUB 46