Home » CEEFAX disks » telesoftware1.adl » Games/TOBGAME

Games/TOBGAME

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware1.adl
Filename: Games/TOBGAME
Read OK:
File size: 23E5 bytes
Load address: 1A00
Exec address: 8023
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM TOBRUK
   20REM (c) C.T.McGurk 1986
   30IFPAGE<&E01THEN70
   40*K.0*T.|MF.i%=0TO(TOP-PA.)S.4:i%!&E00=i%!PAGE:NEXT|MPA.=&E00|MENDCASE|MG.70|M
   50*FX138,0,128
   60END
   70*K.10RUN|M 
   80MODE5:*TV255
   90*FX4,1
  100*FX214,0
  110*FX15,0
  120*FX11,0
  130*FX200,1
  140ONERRORGOTO1990
  150PROCL:PROCI:REPEATPROCS:PROCR:PROCT:UNTIL0:END
  160DEFPROCR:PROCX:VDU7,7:LOCALM%,O%:PROCp(25,1," XXX MOVEMENT PHASE "):PROCp(26,2," MOVE FLASHING UNIT "):PROCp(27,2," WITH THE ARROW KEY "):PROCp(28,1,"SPACE=PASS    X=STOP"):I%=1
  170M%=a%(I%,8):IFM%=0THEN300
  180IFa%(I%,6)<=0THEN300
  190PROCV:O%=GET:PROCU:IFO%=88THEN310
  200IFO%=32THEN300
  210O%=O%-135:IFO%<1ORO%>4THEN300
  220PROCC(O%,I%,1):IFv%(X%,Y%)>6THEN300
  230PROCM(I%,A%):IFc%(X%,Y%)=32PROCN(I%,X%,Y%)
  240IFc%(X%,Y%)=226PROCN(I%,X%,Y%)
  250IFI%<4:IFc%(X%,Y%)=229PROCY(I%,X%,Y%)
  260IFc%(X%,Y%)>225M%=M%-1
  270IFc%(X%,Y%)=230M%=0:GOTO300
  280M%=M%-1:IFM%<=0THEN300
  290GOTO190
  300I%=I%+1:IFI%<14THEN170
  310PROCF:PROCZ:ENDPROC
  320DEFPROCZ:PROCX:LOCALR%,O%:PROCp(25,1," YOUR ATTACK PHASE  "):PROCp(26,2,"DO YOU WANT ANY UNIT"):PROCp(27,2,"TO ATTACK THE ENEMY?"):I%=1:A$=GET$:IFINSTR("Nn",A$)ENDPROC
  330IFa%(I%,6)<=0THEN450
  340PROCX:PROCp(26,2,"SET ATTACK RANGE FOR"):PROCp(27,2," THE FLASHING UNIT  "):PROCp(28,1,"SPACE=PASS    X=STOP"):PROCV:VDU17,2:R%=GET:IFR%=88ENDPROC
  350IFR%=32PROCU:GOTO450
  360R%=R%-48:IFR%<=a%(I%,7)PROCV:GOTO380
  370PROCU:PROCX:FORk%=1TO10:VDU7:NEXT:PROCp(27,2,"THAT RANGE IS WRONG!"):VDU7,7,7:PROCK:GOTO450
  380PROCX:VDU31,0,26:PRINT"RANGE SET ";R%;"000 YARDS":PROCp(27,2," ATTACK DIRECTION?"):O%=GET:O%=O%-135:IFO%<1ORO%>4THEN450
  390PROCC(O%,I%,R%):VDU17,128:IFv%(X%,Y%)=4:IFT%=1PROCG(X%,Y%,T%)
  400IFv%(X%,Y%)=4:IFV%=1PROCG(X%,Y%,V%)
  410IFv%(X%,Y%)=4:IFZ%=1PROCG(X%,Y%,Z%)
  420IFv%(X%,Y%)=1PROC_(X%,Y%):GOTO450
  430IFv%(X%,Y%)<>A%ANDv%(X%,Y%)<>B%PROCH(X%,Y%):GOTO450
  440PROCO(X%,Y%,R%)
  450I%=I%+1:IFI%<14THEN330
  460PROCF:ENDPROC
  470DEFPROCG(X%,Y%,h%):c%(X%,Y%)=224:f%(X%,Y%)=2:v%(X%,Y%)=0:h%=0:ENDPROC
  480DEFPROCT:PROCW(4):PROCX:LOCALM%:PROCp(25,1,"ENEMY MOVEMENT PHASE"):J%=14
  490M%=a%(J%,8):IFM%=0THEN650
  500IFa%(J%,6)<=0THEN650
  510X%=a%(J%,1):Y%=a%(J%,2):IFY%>=21PROC`(J%,X%,Y%):GOTO650
  520IFFNA(X%,Y%)=1THEN650
  530IFFNn(X%,Y%)=1PROCA(0,-1):GOTO580
  540IFFNs(X%,Y%)=1PROCA(0,1):GOTO580
  550IFFNw(X%,Y%)=1PROCA(-1,1):GOTO580
  560IFFNe(X%,Y%)=1PROCA(1,1):GOTO580
  570X%=X%:Y%=Y%+1
  580PROCB:IFv%(X%,Y%)<7THEN610
  590IFc%(X%,Y%)>235THEN610
  600Q%=RND(2):PROCC(Q%,J%,1):IFv%(X%,Y%)>6THEN630
  610PROCW(2):PROCM(J%,B%):PROCB:IFc%(X%,Y%)>225M%=M%-1
  620IFc%(X%,Y%)=230M%=0:GOTO650
  630M%=M%-1:IFM%<=0THEN650
  640VDU7,7:PROCW(1):GOTO510
  650J%=J%+1:IFJ%<=N%THEN490
  660PROCb:ENDPROC
  670DEFPROCb:PROCX:PROCW(3):J%=14:PROCp(25,1," ENEMY ATTACK PHASE ")
  680R%=1:IFa%(J%,6)<=0THEN760
  690X%=a%(J%,1):Y%=a%(J%,2):IFFNN(X%,Y%,R%)Y%=Y%-R%:GOTO740
  700IFFNS(X%,Y%,R%)Y%=Y%+R%:GOTO740
  710IFFNE(X%,Y%,R%)X%=X%+R%:GOTO740
  720IFFNW(X%,Y%,R%)X%=X%-R%:GOTO740
  730GOTO750
  740PROCp(26,2,"YOU ARE UNDER ATTACK"):PROCP:PROCW(3):PROCO(X%,Y%,R%):GOTO760
  750R%=R%+1:IFR%<=a%(J%,7)THEN690
  760J%=J%+1:IFJ%<=N%THEN680
  770PROCF:ENDPROC
  780DEFFNN(X%,Y%,R%):IFY%-R%>2:IFv%(X%,Y%-R%)=A%:=TRUEELSE=FALSE
  790DEFFNS(X%,Y%,R%):IFY%+R%<23:IFv%(X%,Y%+R%)=A%:=TRUEELSE=FALSE
  800DEFFNE(X%,Y%,R%):IFX%+R%<20:IFv%(X%+R%,Y%)=A%:=TRUEELSE=FALSE
  810DEFFNW(X%,Y%,R%):IFX%-R%>-1:IFv%(X%-R%,Y%)=A%:=TRUEELSE=FALSE
  820DEFPROCA(_%,`%):X%=X%+_%:Y%=Y%+`%:ENDPROC
  830DEFPROCN(I%,X%,Y%):PROCU:PROCU:VDU17,131:PROCp(28,1,"** IN A MINEFIELD **"):PROCD:PROCW(2):PROCD:W%=RND(150+L%*10):PROCK:VDU17,128:PROCQ(I%,X%,Y%,W%):M%=0:IFc%(X%,Y%)=32c%(X%,Y%)=224
  840ENDPROC
  850DEFPROC_(X%,Y%):PROCH(X%,Y%):Q%=RND(250-L%*5):IFQ%<25ENDPROC
  860VDU17,2,17,130,31,X%,Y%,32:PROCD:f%(X%,Y%)=2:c%(X%,Y%)=224:v%(X%,Y%)=0:ENDPROC
  870DEFPROCY(I%,X%,Y%):IFT%=1IFX%=4IFY%=15T%=0:PROCJ(I%,4,15):ENDPROC
  880IFV%=1IFX%=8IFY%=12V%=0:PROCJ(I%,8,12):ENDPROC
  890IFZ%=1IFX%=12IFY%=11Z%=0:PROCJ(I%,12,11):ENDPROC
  900ENDPROC
  910DEFPROC`(J%,X%,Y%)
  920Y%=Y%-1:PROCB:IFv%(X%,Y%)>6THEN920
  930PROCW(4):PROCM(J%,B%):IFY%>4THEN920
  940IFX%=4THEN970
  950X%=X%-1:PROCB:IFv%(X%,Y%)>6THEN970
  960PROCW(4):PROCM(J%,B%):IFX%=4THEN970ELSE950
  970ENDPROC
  980DEFFNe(X%,Y%):i%=1
  990IFX%<19X%=X%+1
 1000IFY%<23Y%=Y%+1
 1010IFv%(X%,Y%)=A%:=1
 1020i%=i%+1:IFi%<21THEN990
 1030=0
 1040DEFFNn(X%,Y%)
 1050IFv%(X%,Y%)=A%:=1
 1060IFY%>2Y%=Y%-1:GOTO1050
 1070=0
 1080DEFFNA(X%,Y%):IFX%>0IFv%(X%-1,Y%)=A%:=1
 1090IFX%<19IFv%(X%+1,Y%)=A%:=1
 1100IFY%<23IFv%(X%,Y%+1)=A%:=1
 1110IFY%>2IFv%(X%,Y%-1)=A%:=1
 1120=0
 1130DEFFNs(X%,Y%)
 1140IFv%(X%,Y%)=A%:=1
 1150IFY%<23Y%=Y%+1:GOTO1140
 1160=0
 1170DEFFNw(X%,Y%):i%=1
 1180IFX%>0X%=X%-1
 1190IFY%<23Y%=Y%+1
 1200IFv%(X%,Y%)=A%:=1
 1210i%=i%+1:IFi%<21THEN1180
 1220=0
 1230DEFPROCa(e%,f%,g%):FORi%=e%TOf%:RESTOREg%:FORj%=3TO8:READa%(i%,j%):NEXT,:ENDPROC
 1240DEFPROCB:IFX%<0 X%=0
 1250IFX%>19 X%=19
 1260IFY%<3 Y%=3
 1270IFY%>23 Y%=23
 1280ENDPROC
 1290DEFPROCC(h,i%,j):IFh=1X%=a%(i%,1)-j:Y%=a%(i%,2)
 1300IFh=2X%=a%(i%,1)+j:Y%=a%(i%,2)
 1310IFh=3X%=a%(i%,1):Y%=a%(i%,2)+j
 1320IFh=4X%=a%(i%,1):Y%=a%(i%,2)-j
 1330PROCB:ENDPROC
 1340DEFPROCO(X%,Y%,R%):U%=1:IFv%(X%,Y%)=0ENDPROC
 1350P%=0:IFa%(U%,6)<=0THEN1450
 1360IFa%(U%,1)=X%ANDa%(U%,2)=Y%P%=-1
 1370IFNOTP%THEN1450
 1380IFU%<14W%=50+RND(H%+(a%(U%,2)*3)-(R%*2))
 1390IFU%>13W%=50+RND(H%-(L%*4)-(R%*2))
 1400IFW%<0 W%=0
 1410IFW%>a%(U%,6)W%=a%(U%,6)
 1420a%(U%,6)=a%(U%,6)-W%:IFa%(U%,6)<=0PROCc(U%,X%,Y%):GOTO1450
 1430IFa%(U%,6)<500 a%(U%,4)=2
 1440IFP%PROCS:PROCQ(U%,X%,Y%,W%)
 1450U%=U%+1:IFU%<=N%THEN1350
 1460ENDPROC
 1470DEFPROCc(U%,X%,Y%):PROCH(a%(U%,1),a%(U%,2)):PROCD:VDU17,131:PROCp(28,1,"UNIT CEASES TO EXIST"):PROCD:PROCW(6):VDU17,2,17,128:FORd%=1TO8:a%(U%,d%)=0:NEXT:PROCK:PROCU:ENDPROC
 1480DEFPROCH(X%,Y%):PROCP:o=1
 1490VDU17,0,17,130,31,X%,Y%,236:o=o+1:IFo<200THEN1490
 1500VDU17,f%(X%,Y%),17,130,31,X%,Y%,c%(X%,Y%):v%(X%,Y%)=0:VDU17,128:ENDPROC
 1510DEFPROCQ(U%,X%,Y%,W%):PROCU:PROCl(27):PROCD:VDU17,1,31,3,27:PRINT"CASUALTIES ";W%:PROCd(U%,X%,Y%,W%):FORi%=27TO28:PROCl(i%):NEXT:ENDPROC
 1520DEFPROCd(U%,X%,Y%,W%):IFU%<14C%=C%-W%:E%=E%+W%
 1530IFU%>13D%=D%-W%:F%=F%+W%
 1540PROCS:PROCW(5):PROCe(U%,X%,Y%,W%):ENDPROC
 1550DEFPROCe(U%,X%,Y%,W%):IFW%<100ENDPROC
 1560PROCU:S%=W%DIVK%:IFU%>13PROCf(U%,X%,Y%,S%):ENDPROC
 1570PROCg(U%,X%,Y%,S%):ENDPROC
 1580DEFPROCg(U%,X%,Y%,S%)
 1590Y%=Y%+1:PROCB:IFY%=23ENDPROC
 1600IFv%(X%,Y%)>6THEN1590
 1610PROCW(3):PROCM(U%,A%):S%=S%-1:IFS%>0THEN1590
 1620ENDPROC
 1630DEFPROCf(U%,X%,Y%,S%)
 1640Y%=Y%-1:PROCB:IFU%=14ENDPROC
 1650IFY%=3ENDPROC
 1660IFv%(X%,Y%)>6THEN1640
 1670PROCW(4):PROCM(U%,B%):S%=S%-1:IFS%>0THEN1640
 1680ENDPROC
 1690DEFPROCL:PROCU:VDU19,3,4,0,0,0,17,1,17,131,12,31,1,10:PRINT"Choose your level":VDU31,2,12:PRINT"for the battle":VDU17,2,31,2,15:PRINT"Level 1 = easy":VDU31,2,17:PRINT"Level 7 = hard":REPEATL%=GET:L%=L%-48:UNTILL%>0ANDL%<8:CLS
 1700VDU17,1,31,3,10:PRINT"Do you want:-":VDU17,2,31,2,13:PRINT"1. the sound on":VDU31,2,15:PRINT"2. a quiet game ?":A$=GET$:IFA$="1"ENDPROC
 1710*FX210,1
 1720ENDPROC
 1730DEFPROCK:VDU17,130:PROCp(29,1,"    Press a key     "):k%=GET:VDU17,128:FORi%=27TO29:PROCl(i%):NEXT:ENDPROC
 1740DEFPROCl(i%):PRINTTAB(0,i%)SPC20:ENDPROC
 1750DEFPROCM(z%,v%):VDU7,7:VDU17,f%(a%(z%,1),a%(z%,2)),17,130,31,a%(z%,1),a%(z%,2),c%(a%(z%,1),a%(z%,2)):v%(a%(z%,1),a%(z%,2))=0:a%(z%,1)=X%:a%(z%,2)=Y%:v%(X%,Y%)=v%:VDU17,a%(z%,4),17,a%(z%,5),31,a%(z%,1),a%(z%,2),a%(z%,3),17,2,17,128:ENDPROC
 1760DEFPROCI:VDU12,17,2:PRINTTAB(1,14)"** PLEASE WAIT **":N%=27+L%:A%=7:B%=8:H%=500+RND(300):K%=80+RND(50):G%=2000:T%=1:V%=1:Z%=1:E%=0:F%=0:C%=22500:D%=24000+(L%-1)*1000:DIMc%(19,23),f%(19,23),v%(19,23),a%(N%,8):FORX%=0TO19:FORY%=1TO23
 1770c%(X%,Y%)=224:f%(X%,Y%)=2:v%(X%,Y%)=0:NEXT,:b%=1
 1780X%=RND(19):Y%=RND(10+L%):c%(X%,Y%)=32:b%=b%+1:IFb%<10*L%THEN1780
 1790FORk%=G%TOG%+140STEP20:RESTOREk%:READc%,f%,a%,v%:RESTOREk%+10:FORl%=1TOa%:READ_%,m%,`%,n%:FORX%=_%TOm%:FORY%=`%TOn%:c%(X%,Y%)=c%:f%(X%,Y%)=f%:v%(X%,Y%)=v%:NEXT,,,:VDU17,128:CLS:FORY%=1TO23:FORX%=0TO19:VDU17,f%(X%,Y%),17,130
 1800VDU31,X%,Y%,c%(X%,Y%):NEXT,:VDU17,129,17,0,31,0,3,225:RESTOREG%+160:FORX%=1TON%:FORY%=1TO2:READa%(X%,Y%):NEXT:NEXT:PROCa(01,04,G%+250):PROCa(05,07,G%+260):PROCa(08,12,G%+270):PROCa(13,13,G%+280):PROCa(14,14,G%+290)
 1810PROCa(15,16,G%+330):PROCa(17,18,G%+350):PROCa(19,19,G%+340):PROCa(20,22,G%+300):PROCa(23,25,G%+320):PROCa(26,27,G%+310):PROCa(28,N%,G%+360):FORk%=1TON%:VDU17,a%(k%,4),17,a%(k%,5),31,a%(k%,1),a%(k%,2),a%(k%,3):NEXT
 1820FORk%=1TO13:v%(a%(k%,1),a%(k%,2))=A%:NEXT:FORk%=14TON%:v%(a%(k%,1),a%(k%,2))=B%:NEXT:ENDPROC
 1830DEFPROCJ(I%,x%,y%):a%(I%,6)=a%(I%,6)+1500:a%(I%,4)=3:c%(x%,y%)=224:f%(x%,y%)=2:ENDPROC
 1840DEFPROCp(l%,c%,m$):VDU17,c%,31,0,l%:PRINT;m$:ENDPROC
 1850DEFPROCD:ENVELOPE1,1,0,0,0,0,0,0,126,-1,0,-3,126,126:SOUND0,1,62,4:ENDPROC
 1860DEFPROCP:ENVELOPE1,129,0,-10,-1,1,0,2,6,-1,0,-1,126,74:SOUND0,1,7,14:ENDPROC
 1870DEFPROCS:VDU17,1,17,131,31,0,0:PRINT"XXX";SPC7:COLOUR2:PRINTTAB(4,0);C%;:COLOUR1:PRINTTAB(10,0)"AXIS";SPC6:COLOUR2:PRINTTAB(15,0);D%:COLOUR1:PRINTTAB(0,24)"XXX";SPC7:COLOUR2:PRINTTAB(4,24);E%:COLOUR1:PRINTTAB(10,24)"AXIS";SPC6:COLOUR2:PRINTTAB(15,24);F%:COLOUR128:ENDPROC
 1880DEFPROCU:!&FE00=&10200A:PROCB:ENDPROC
 1890DEFPROCV:VDU31,a%(I%,1),a%(I%,2),23,0,10,96;0,0;23,1,1;0;0;0;:ENDPROC
 1900DEFPROCW(e%):FORi=1TO300*e%:NEXT:ENDPROC
 1910DEFPROCX:PROCU:VDU17,128,31,0,26:PRINTSPC80:ENDPROC
 1920DEFPROCF:PROCX:IFa%(13,6)=0PROCp(25,2,"Corps HQ has ceased "):PROCp(26,2,"to exist which means"):PROCp(27,2,"you lose the battle."):PROCE:ENDPROC
 1930IFE%>18000PROCp(25,2,"Your casualties have"):PROCp(26,2,"become unacceptable."):PROCp(27,2,"You lose the battle."):PROCE:ENDPROC
 1940IFF%-E%>=9000PROCp(25,2,"The enemy's casualty"):PROCp(26,2,"list is too high and"):PROCp(27,2,"you win the battle."):PROCE:ENDPROC
 1950IFC%<5000ANDD%<5000PROCp(25,2,"The casualties both "):PROCp(26,2,"forces have suffered"):PROCp(27,2,"leads to a stalemate"):PROCE:ENDPROC
 1960IFv%(0,3)=A%PROCp(25,2,"You relieve Tobruk "):PROCp(26,2,"and compel the Axis"):PROCp(27,2,"army to retreat. "):PROCE:ENDPROC
 1970ENDPROC
 1980DEFPROCE:PROCp(28,1," Press a key if you"):PROCp(29,1," want another game"):k%=GET:RUN:ENDPROC
 1990MODE7:REPORT:PRINT" line ";ERL:END
 2000DATA227,1,9,2
 2010DATA4,16,4,4,5,15,5,5,6,14,6,6,18,19,10,10,16,19,11,11,0,2,17,17,0,4,18,18,1,5,19,19,2,6,20,20
 2020DATA224,1,19,0
 2030DATA3,17,3,3,0,2,16,16,3,7,21,21,2,8,22,22,0,9,23,23,5,13,7,7,4,12,8,8,2,11,9,9,1,10,10,10,0,9,11,11,0,7,12,12,0,5,13,13,0,3,14,14,0,2,15,15,16,19,12,12,17,19,13,13,18,19,14,14,18,19,9,9,19,19,8,8
 2040DATA226,0,4,1
 2050DATA0,2,13,13,2,5,6,6,12,14,12,12,5,7,16,16
 2060DATA225,0,5,0
 2070DATA0,0,3,3,2,2,12,12,19,19,4,4,6,6,9,9,11,11,5,5
 2080DATA229,0,3,4
 2090DATA4,4,15,15,8,8,12,12,12,12,11,11
 2100DATA230,1,3,5
 2110DATA0,0,11,11,3,3,17,17,5,5,20,20
 2120DATA234,0,6,9
 2130DATA0,0,4,6,1,1,6,6,19,19,6,7,3,4,16,16,15,15,11,11,8,8,13,13
 2140DATA235,3,2,9
 2150DATA0,19,1,2,19,19,2,3
 2160DATARND(4),18,RND(5)+4,18,RND(5)+9,18,RND(4)+15,18
 2170DATARND(7),19,RND(4)+7,19,RND(5)+12,19
 2180DATARND(3),20,RND(3)+3,20,RND(3)+6,20,RND(3)+9,20,RND(6)+12,20
 2190DATARND(19),21
 2200DATA1,3
 2210DATA13,7,16,7,18,7,15,6,17,6
 2220DATA3,8,7,8,11,8
 2230DATA10,7,5,5,9,6,6,7,11,5
 2240DATA3,6,2,4,5,9,10,9,7,4,8,5,4,3
 2250DATA241,3,129,1500,3,2
 2260DATA243,3,129,1500,4,1
 2270DATA242,3,129,3000,2,1
 2280DATA240,3,129,0750,2,2
 2290DATA242,1,128,1500,3,0
 2300DATA241,1,128,1300,3,2
 2310DATA243,1,128,1000,4,1
 2320DATA242,1,128,3000,2,1
 2330DATA241,1,131,1000,3,2
 2340DATA243,1,131,1000,4,1
 2350DATA242,1,131,2500,2,1
 2360DATA244,1,128,1000,2,1

� TOBRUK
� (c) C.T.McGurk 1986
�<&E01��DF@
(E*K.0*T.|MF.i%=0TO(TOP-PA.)S.4:i%!&E00=i%!�:�|MPA.=&E00|M�|MG.70|M
2*FX138,0,128
<�
F*K.10RUN|M 
P
�5:*TV255
Z
*FX4,1
d*FX214,0
n*FX15,0
x*FX11,0
�*FX200,1
���dFG
��L:�I:��S:�R:�T:�0:�
����R:�X:�7,7:�M%,O%:�p(25,1," XXX MOVEMENT PHASE "):�p(26,2," MOVE FLASHING UNIT "):�p(27,2," WITH THE ARROW KEY "):�p(28,1,"SPACE=PASS    X=STOP"):I%=1
�M%=a%(I%,8):�M%=0��TlA
��a%(I%,6)<=0��TlA
��V:O%=�:�U:�O%=88��TvA
��O%=32��TlA
�O%=O%-135:�O%<1�O%>4��TlA
�!�C(O%,I%,1):�v%(X%,Y%)>6��TlA
�'�M(I%,A%):�c%(X%,Y%)=32�N(I%,X%,Y%)
��c%(X%,Y%)=226�N(I%,X%,Y%)
�$�I%<4:�c%(X%,Y%)=229�Y(I%,X%,Y%)
�c%(X%,Y%)>225M%=M%-1
�c%(X%,Y%)=230M%=0:�TlA
M%=M%-1:�M%<=0��TlA
"	�t~@
,I%=I%+1:�I%<14��tj@
6�F:�Z:�
@���Z:�X:�R%,O%:�p(25,1," YOUR ATTACK PHASE  "):�p(26,2,"DO YOU WANT ANY UNIT"):�p(27,2,"TO ATTACK THE ENEMY?"):I%=1:A$=�:�"Nn",A$)�
J�a%(I%,6)<=0��dBA
T|�X:�p(26,2,"SET ATTACK RANGE FOR"):�p(27,2," THE FLASHING UNIT  "):�p(28,1,"SPACE=PASS    X=STOP"):�V:�17,2:R%=�:�R%=88�
^�R%=32�U:�dBA
h"R%=R%-48:�R%<=a%(I%,7)�V:�D|A
rG�U:�X:�k%=1�10:�7:�:�p(27,2,"THAT RANGE IS WRONG!"):�7,7,7:�K:�dBA
|i�X:�31,0,26:�"RANGE SET ";R%;"000 YARDS":�p(27,2," ATTACK DIRECTION?"):O%=�:O%=O%-135:�O%<1�O%>4��dBA
�7�C(O%,I%,R%):�17,128:�v%(X%,Y%)=4:�T%=1�G(X%,Y%,T%)
�"�v%(X%,Y%)=4:�V%=1�G(X%,Y%,V%)
�"�v%(X%,Y%)=4:�Z%=1�G(X%,Y%,Z%)
��v%(X%,Y%)=1�_(X%,Y%):�dBA
�/�v%(X%,Y%)<>A%�v%(X%,Y%)<>B%�H(X%,Y%):�dBA
��O(X%,Y%,R%)
�I%=I%+1:�I%<14��DJA
��F:�
�>��G(X%,Y%,h%):c%(X%,Y%)=224:f%(X%,Y%)=2:v%(X%,Y%)=0:h%=0:�
�:��T:�W(4):�X:�M%:�p(25,1,"ENEMY MOVEMENT PHASE"):J%=14
�M%=a%(J%,8):�M%=0��tJB
��a%(J%,6)<=0��tJB
�5X%=a%(J%,1):Y%=a%(J%,2):�Y%>=21�`(J%,X%,Y%):�tJB
�A(X%,Y%)=1��tJB
�n(X%,Y%)=1�A(0,-1):�DDB
�s(X%,Y%)=1�A(0,1):�DDB
&�w(X%,Y%)=1�A(-1,1):�DDB
0�e(X%,Y%)=1�A(1,1):�DDB
:X%=X%:Y%=Y%+1
D�B:�v%(X%,Y%)<7��DbB
N�c%(X%,Y%)>235��DbB
X)Q%=�(2):�C(Q%,J%,1):�v%(X%,Y%)>6��DvB
b,�W(2):�M(J%,B%):�B:�c%(X%,Y%)>225M%=M%-1
l�c%(X%,Y%)=230M%=0:�tJB
vM%=M%-1:�M%<=0��tJB
��7,7:�W(1):�d~A
�J%=J%+1:�J%<=N%��djA
��b:�
�6��b:�X:�W(3):J%=14:�p(25,1," ENEMY ATTACK PHASE ")
�R%=1:�a%(J%,6)<=0��dxB
�7X%=a%(J%,1):Y%=a%(J%,2):�N(X%,Y%,R%)Y%=Y%-R%:�ddB
��S(X%,Y%,R%)Y%=Y%+R%:�ddB
��E(X%,Y%,R%)X%=X%+R%:�ddB
��W(X%,Y%,R%)X%=X%-R%:�ddB
�	�dnB
�?�p(26,2,"YOU ARE UNDER ATTACK"):�P:�W(3):�O(X%,Y%,R%):�dxB
�R%=R%+1:�R%<=a%(J%,7)��trB
�J%=J%+1:�J%<=N%��thB
�F:�
1ݤN(X%,Y%,R%):�Y%-R%>2:�v%(X%,Y%-R%)=A%:=��=�
2ݤS(X%,Y%,R%):�Y%+R%<23:�v%(X%,Y%+R%)=A%:=��=�
 2ݤE(X%,Y%,R%):�X%+R%<20:�v%(X%+R%,Y%)=A%:=��=�
*2ݤW(X%,Y%,R%):�X%-R%>-1:�v%(X%-R%,Y%)=A%:=��=�
4"��A(_%,`%):X%=X%+_%:Y%=Y%+`%:�
>���N(I%,X%,Y%):�U:�U:�17,131:�p(28,1,"** IN A MINEFIELD **"):�D:�W(2):�D:W%=�(150+L%*10):�K:�17,128:�Q(I%,X%,Y%,W%):M%=0:�c%(X%,Y%)=32c%(X%,Y%)=224
H�
R/��_(X%,Y%):�H(X%,Y%):Q%=�(250-L%*5):�Q%<25�
\G�17,2,17,130,31,X%,Y%,32:�D:f%(X%,Y%)=2:c%(X%,Y%)=224:v%(X%,Y%)=0:�
f4��Y(I%,X%,Y%):�T%=1�X%=4�Y%=15T%=0:�J(I%,4,15):�
p&�V%=1�X%=8�Y%=12V%=0:�J(I%,8,12):�
z(�Z%=1�X%=12�Y%=11Z%=0:�J(I%,12,11):�
��
���`(J%,X%,Y%)
� Y%=Y%-1:�B:�v%(X%,Y%)>6��tXC
��W(4):�M(J%,B%):�Y%>4��tXC
��X%=4��dJC
� X%=X%-1:�B:�v%(X%,Y%)>6��dJC
�#�W(4):�M(J%,B%):�X%=4��dJC��tvC
��
�ݤe(X%,Y%):i%=1
��X%<19X%=X%+1
��Y%<23Y%=Y%+1
��v%(X%,Y%)=A%:=1
�i%=i%+1:�i%<21��d^C
=0
ݤn(X%,Y%)
�v%(X%,Y%)=A%:=1
$�Y%>2Y%=Y%-1:�TZD
.=0
8&ݤA(X%,Y%):�X%>0�v%(X%-1,Y%)=A%:=1
B�X%<19�v%(X%+1,Y%)=A%:=1
L�Y%<23�v%(X%,Y%+1)=A%:=1
V�Y%>2�v%(X%,Y%-1)=A%:=1
`=0
jݤs(X%,Y%)
t�v%(X%,Y%)=A%:=1
~�Y%<23Y%=Y%+1:�DtD
�=0
�ݤw(X%,Y%):i%=1
��X%>0X%=X%-1
��Y%<23Y%=Y%+1
��v%(X%,Y%)=A%:=1
�i%=i%+1:�i%<21��t\D
�=0
�7��a(e%,f%,g%):�i%=e%�f%:�g%:�j%=3�8:�a%(i%,j%):�,:�
���B:�X%<0 X%=0
��X%>19 X%=19
��Y%<3 Y%=3
��Y%>23 Y%=23
�

-��C(h,i%,j):�h=1X%=a%(i%,1)-j:Y%=a%(i%,2)
!�h=2X%=a%(i%,1)+j:Y%=a%(i%,2)
!�h=3X%=a%(i%,1):Y%=a%(i%,2)+j
(!�h=4X%=a%(i%,1):Y%=a%(i%,2)-j
2�B:�
<$��O(X%,Y%,R%):U%=1:�v%(X%,Y%)=0�
FP%=0:�a%(U%,6)<=0��tjE
P!�a%(U%,1)=X%�a%(U%,2)=Y%P%=-1
Z
�P%��tjE
d)�U%<14W%=50+�(H%+(a%(U%,2)*3)-(R%*2))
n#�U%>13W%=50+�(H%-(L%*4)-(R%*2))
x�W%<0 W%=0
��W%>a%(U%,6)W%=a%(U%,6)
�7a%(U%,6)=a%(U%,6)-W%:�a%(U%,6)<=0�c(U%,X%,Y%):�tjE
��a%(U%,6)<500 a%(U%,4)=2
��P%�S:�Q(U%,X%,Y%,W%)
�U%=U%+1:�U%<=N%��DFE
��
����c(U%,X%,Y%):�H(a%(U%,1),a%(U%,2)):�D:�17,131:�p(28,1,"UNIT CEASES TO EXIST"):�D:�W(6):�17,2,17,128:�d%=1�8:a%(U%,d%)=0:�:�K:�U:�
���H(X%,Y%):�P:o=1
�/�17,0,17,130,31,X%,Y%,236:o=o+1:�o<200��dRE
�A�17,f%(X%,Y%),17,130,31,X%,Y%,c%(X%,Y%):v%(X%,Y%)=0:�17,128:�
�f��Q(U%,X%,Y%,W%):�U:�l(27):�D:�17,1,31,3,27:�"CASUALTIES ";W%:�d(U%,X%,Y%,W%):�i%=27�28:�l(i%):�:�
�,��d(U%,X%,Y%,W%):�U%<14C%=C%-W%:E%=E%+W%
��U%>13D%=D%-W%:F%=F%+W%
�S:�W(5):�e(U%,X%,Y%,W%):�
��e(U%,X%,Y%,W%):�W%<100�
'�U:S%=W%�K%:�U%>13�f(U%,X%,Y%,S%):�
"�g(U%,X%,Y%,S%):�
,��g(U%,X%,Y%,S%)
6Y%=Y%+1:�B:�Y%=23�
@�v%(X%,Y%)>6��TvF
J&�W(3):�M(U%,A%):S%=S%-1:�S%>0��TvF
T�
^��f(U%,X%,Y%,S%)
hY%=Y%-1:�B:�U%=14�
r
�Y%=3�
|�v%(X%,Y%)>6��DhF
�&�W(4):�M(U%,B%):S%=S%-1:�S%>0��DhF
��
����L:�U:�19,3,4,0,0,0,17,1,17,131,12,31,1,10:�"Choose your level":�31,2,12:�"for the battle":�17,2,31,2,15:�"Level 1 = easy":�31,2,17:�"Level 7 = hard":�L%=�:L%=L%-48:�L%>0�L%<8:�
�o�17,1,31,3,10:�"Do you want:-":�17,2,31,2,13:�"1. the sound on":�31,2,15:�"2. a quiet game ?":A$=�:�A$="1"�
�*FX210,1
��
�Q��K:�17,130:�p(29,1,"    Press a key     "):k%=�:�17,128:�i%=27�29:�l(i%):�:�
���l(i%):�0,i%)�20:�
����M(z%,v%):�7,7:�17,f%(a%(z%,1),a%(z%,2)),17,130,31,a%(z%,1),a%(z%,2),c%(a%(z%,1),a%(z%,2)):v%(a%(z%,1),a%(z%,2))=0:a%(z%,1)=X%:a%(z%,2)=Y%:v%(X%,Y%)=v%:�17,a%(z%,4),17,a%(z%,5),31,a%(z%,1),a%(z%,2),a%(z%,3),17,2,17,128:�
����I:�12,17,2:�1,14)"** PLEASE WAIT **":N%=27+L%:A%=7:B%=8:H%=500+�(300):K%=80+�(50):G%=2000:T%=1:V%=1:Z%=1:E%=0:F%=0:C%=22500:D%=24000+(L%-1)*1000:�c%(19,23),f%(19,23),v%(19,23),a%(N%,8):�X%=0�19:�Y%=1�23
�1c%(X%,Y%)=224:f%(X%,Y%)=2:v%(X%,Y%)=0:�,:b%=1
�<X%=�(19):Y%=�(10+L%):c%(X%,Y%)=32:b%=b%+1:�b%<10*L%��dtF
���k%=G%�G%+140�20:�k%:�c%,f%,a%,v%:�k%+10:�l%=1�a%:�_%,m%,`%,n%:�X%=_%�m%:�Y%=`%�n%:c%(X%,Y%)=c%:f%(X%,Y%)=f%:v%(X%,Y%)=v%:�,,,:�17,128:�:�Y%=1�23:�X%=0�19:�17,f%(X%,Y%),17,130
��31,X%,Y%,c%(X%,Y%):�,:�17,129,17,0,31,0,3,225:�G%+160:�X%=1�N%:�Y%=1�2:�a%(X%,Y%):�:�:�a(01,04,G%+250):�a(05,07,G%+260):�a(08,12,G%+270):�a(13,13,G%+280):�a(14,14,G%+290)
��a(15,16,G%+330):�a(17,18,G%+350):�a(19,19,G%+340):�a(20,22,G%+300):�a(23,25,G%+320):�a(26,27,G%+310):�a(28,N%,G%+360):�k%=1�N%:�17,a%(k%,4),17,a%(k%,5),31,a%(k%,1),a%(k%,2),a%(k%,3):�
N�k%=1�13:v%(a%(k%,1),a%(k%,2))=A%:�:�k%=14�N%:v%(a%(k%,1),a%(k%,2))=B%:�:�
&O��J(I%,x%,y%):a%(I%,6)=a%(I%,6)+1500:a%(I%,4)=3:c%(x%,y%)=224:f%(x%,y%)=2:�
0'��p(l%,c%,m$):�17,c%,31,0,l%:�;m$:�
:8��D:�1,1,0,0,0,0,0,0,126,-1,0,-3,126,126:�0,1,62,4:�
D:��P:�1,129,0,-10,-1,1,0,2,6,-1,0,-1,126,74:�0,1,7,14:�
N���S:�17,1,17,131,31,0,0:�"XXX";�7:�2:�4,0);C%;:�1:�10,0)"AXIS";�6:�2:�15,0);D%:�1:�0,24)"XXX";�7:�2:�4,24);E%:�1:�10,24)"AXIS";�6:�2:�15,24);F%:�128:�
X��U:!&FE00=&10200A:�B:�
b<��V:�31,a%(I%,1),a%(I%,2),23,0,10,96;0,0;23,1,1;0;0;0;:�
l��W(e%):�i=1�300*e%:�:�
v!��X:�U:�17,128,31,0,26:�80:�
�z��F:�X:�a%(13,6)=0�p(25,2,"Corps HQ has ceased "):�p(26,2,"to exist which means"):�p(27,2,"you lose the battle."):�E:�
�q�E%>18000�p(25,2,"Your casualties have"):�p(26,2,"become unacceptable."):�p(27,2,"You lose the battle."):�E:�
�s�F%-E%>=9000�p(25,2,"The enemy's casualty"):�p(26,2,"list is too high and"):�p(27,2,"you win the battle."):�E:�
�x�C%<5000�D%<5000�p(25,2,"The casualties both "):�p(26,2,"forces have suffered"):�p(27,2,"leads to a stalemate"):�E:�
�n�v%(0,3)=A%�p(25,2,"You relieve Tobruk "):�p(26,2,"and compel the Axis"):�p(27,2,"army to retreat. "):�E:�
��
�M��E:�p(28,1," Press a key if you"):�p(29,1," want another game"):k%=�:�:�
��7:�:�" line ";�:�
��227,1,9,2
�_�4,16,4,4,5,15,5,5,6,14,6,6,18,19,10,10,16,19,11,11,0,2,17,17,0,4,18,18,1,5,19,19,2,6,20,20
��224,1,19,0
���3,17,3,3,0,2,16,16,3,7,21,21,2,8,22,22,0,9,23,23,5,13,7,7,4,12,8,8,2,11,9,9,1,10,10,10,0,9,11,11,0,7,12,12,0,5,13,13,0,3,14,14,0,2,15,15,16,19,12,12,17,19,13,13,18,19,14,14,18,19,9,9,19,19,8,8
��226,0,4,1
,�0,2,13,13,2,5,6,6,12,14,12,12,5,7,16,16
�225,0,5,0
2�0,0,3,3,2,2,12,12,19,19,4,4,6,6,9,9,11,11,5,5
 �229,0,3,4
*$�4,4,15,15,8,8,12,12,12,12,11,11
4�230,1,3,5
>"�0,0,11,11,3,3,17,17,5,5,20,20
H�234,0,6,9
R>�0,0,4,6,1,1,6,6,19,19,6,7,3,4,16,16,15,15,11,11,8,8,13,13
\�235,3,2,9
f�0,19,1,2,19,19,2,3
p+ܳ(4),18,�(5)+4,18,�(5)+9,18,�(4)+15,18
z!ܳ(7),19,�(4)+7,19,�(5)+12,19
�5ܳ(3),20,�(3)+3,20,�(3)+6,20,�(3)+9,20,�(6)+12,20
�
ܳ(19),21
��1,3
��13,7,16,7,18,7,15,6,17,6
��3,8,7,8,11,8
��10,7,5,5,9,6,6,7,11,5
�!�3,6,2,4,5,9,10,9,7,4,8,5,4,3
��241,3,129,1500,3,2
��243,3,129,1500,4,1
��242,3,129,3000,2,1
��240,3,129,0750,2,2
��242,1,128,1500,3,0
��241,1,128,1300,3,2
	�243,1,128,1000,4,1
	�242,1,128,3000,2,1
	�241,1,131,1000,3,2
	$�243,1,131,1000,4,1
	.�242,1,131,2500,2,1
	8�244,1,128,1000,2,1
�
00000000  0d 00 0a 0c f4 20 54 4f  42 52 55 4b 0d 00 14 19  |..... TOBRUK....|
00000010  f4 20 28 63 29 20 43 2e  54 2e 4d 63 47 75 72 6b  |. (c) C.T.McGurk|
00000020  20 31 39 38 36 0d 00 1e  10 e7 90 3c 26 45 30 31  | 1986......<&E01|
00000030  8c 8d 44 46 40 0d 00 28  45 2a 4b 2e 30 2a 54 2e  |..DF@..(E*K.0*T.|
00000040  7c 4d 46 2e 69 25 3d 30  54 4f 28 54 4f 50 2d 50  ||MF.i%=0TO(TOP-P|
00000050  41 2e 29 53 2e 34 3a 69  25 21 26 45 30 30 3d 69  |A.)S.4:i%!&E00=i|
00000060  25 21 90 3a ed 7c 4d 50  41 2e 3d 26 45 30 30 7c  |%!.:.|MPA.=&E00||
00000070  4d cb 7c 4d 47 2e 37 30  7c 4d 0d 00 32 10 2a 46  |M.|MG.70|M..2.*F|
00000080  58 31 33 38 2c 30 2c 31  32 38 0d 00 3c 05 e0 0d  |X138,0,128..<...|
00000090  00 46 0f 2a 4b 2e 31 30  52 55 4e 7c 4d 20 0d 00  |.F.*K.10RUN|M ..|
000000a0  50 0d eb 35 3a 2a 54 56  32 35 35 0d 00 5a 0a 2a  |P..5:*TV255..Z.*|
000000b0  46 58 34 2c 31 0d 00 64  0c 2a 46 58 32 31 34 2c  |FX4,1..d.*FX214,|
000000c0  30 0d 00 6e 0b 2a 46 58  31 35 2c 30 0d 00 78 0b  |0..n.*FX15,0..x.|
000000d0  2a 46 58 31 31 2c 30 0d  00 82 0c 2a 46 58 32 30  |*FX11,0....*FX20|
000000e0  30 2c 31 0d 00 8c 0b ee  85 e5 8d 64 46 47 0d 00  |0,1........dFG..|
000000f0  96 18 f2 4c 3a f2 49 3a  f5 f2 53 3a f2 52 3a f2  |...L:.I:..S:.R:.|
00000100  54 3a fd 30 3a e0 0d 00  a0 9b dd f2 52 3a f2 58  |T:.0:.......R:.X|
00000110  3a ef 37 2c 37 3a ea 4d  25 2c 4f 25 3a f2 70 28  |:.7,7:.M%,O%:.p(|
00000120  32 35 2c 31 2c 22 20 58  58 58 20 4d 4f 56 45 4d  |25,1," XXX MOVEM|
00000130  45 4e 54 20 50 48 41 53  45 20 22 29 3a f2 70 28  |ENT PHASE "):.p(|
00000140  32 36 2c 32 2c 22 20 4d  4f 56 45 20 46 4c 41 53  |26,2," MOVE FLAS|
00000150  48 49 4e 47 20 55 4e 49  54 20 22 29 3a f2 70 28  |HING UNIT "):.p(|
00000160  32 37 2c 32 2c 22 20 57  49 54 48 20 54 48 45 20  |27,2," WITH THE |
00000170  41 52 52 4f 57 20 4b 45  59 20 22 29 3a f2 70 28  |ARROW KEY "):.p(|
00000180  32 38 2c 31 2c 22 53 50  41 43 45 3d 50 41 53 53  |28,1,"SPACE=PASS|
00000190  20 20 20 20 58 3d 53 54  4f 50 22 29 3a 49 25 3d  |    X=STOP"):I%=|
000001a0  31 0d 00 aa 1a 4d 25 3d  61 25 28 49 25 2c 38 29  |1....M%=a%(I%,8)|
000001b0  3a e7 4d 25 3d 30 8c 8d  54 6c 41 0d 00 b4 15 e7  |:.M%=0..TlA.....|
000001c0  61 25 28 49 25 2c 36 29  3c 3d 30 8c 8d 54 6c 41  |a%(I%,6)<=0..TlA|
000001d0  0d 00 be 1a f2 56 3a 4f  25 3d a5 3a f2 55 3a e7  |.....V:O%=.:.U:.|
000001e0  4f 25 3d 38 38 8c 8d 54  76 41 0d 00 c8 0f e7 4f  |O%=88..TvA.....O|
000001f0  25 3d 33 32 8c 8d 54 6c  41 0d 00 d2 1d 4f 25 3d  |%=32..TlA....O%=|
00000200  4f 25 2d 31 33 35 3a e7  4f 25 3c 31 84 4f 25 3e  |O%-135:.O%<1.O%>|
00000210  34 8c 8d 54 6c 41 0d 00  dc 21 f2 43 28 4f 25 2c  |4..TlA...!.C(O%,|
00000220  49 25 2c 31 29 3a e7 76  25 28 58 25 2c 59 25 29  |I%,1):.v%(X%,Y%)|
00000230  3e 36 8c 8d 54 6c 41 0d  00 e6 27 f2 4d 28 49 25  |>6..TlA...'.M(I%|
00000240  2c 41 25 29 3a e7 63 25  28 58 25 2c 59 25 29 3d  |,A%):.c%(X%,Y%)=|
00000250  33 32 f2 4e 28 49 25 2c  58 25 2c 59 25 29 0d 00  |32.N(I%,X%,Y%)..|
00000260  f0 1e e7 63 25 28 58 25  2c 59 25 29 3d 32 32 36  |...c%(X%,Y%)=226|
00000270  f2 4e 28 49 25 2c 58 25  2c 59 25 29 0d 00 fa 24  |.N(I%,X%,Y%)...$|
00000280  e7 49 25 3c 34 3a e7 63  25 28 58 25 2c 59 25 29  |.I%<4:.c%(X%,Y%)|
00000290  3d 32 32 39 f2 59 28 49  25 2c 58 25 2c 59 25 29  |=229.Y(I%,X%,Y%)|
000002a0  0d 01 04 19 e7 63 25 28  58 25 2c 59 25 29 3e 32  |.....c%(X%,Y%)>2|
000002b0  32 35 4d 25 3d 4d 25 2d  31 0d 01 0e 1c e7 63 25  |25M%=M%-1.....c%|
000002c0  28 58 25 2c 59 25 29 3d  32 33 30 4d 25 3d 30 3a  |(X%,Y%)=230M%=0:|
000002d0  e5 8d 54 6c 41 0d 01 18  17 4d 25 3d 4d 25 2d 31  |..TlA....M%=M%-1|
000002e0  3a e7 4d 25 3c 3d 30 8c  8d 54 6c 41 0d 01 22 09  |:.M%<=0..TlA..".|
000002f0  e5 8d 74 7e 40 0d 01 2c  17 49 25 3d 49 25 2b 31  |..t~@..,.I%=I%+1|
00000300  3a e7 49 25 3c 31 34 8c  8d 74 6a 40 0d 01 36 0b  |:.I%<14..tj@..6.|
00000310  f2 46 3a f2 5a 3a e1 0d  01 40 87 dd f2 5a 3a f2  |.F:.Z:...@...Z:.|
00000320  58 3a ea 52 25 2c 4f 25  3a f2 70 28 32 35 2c 31  |X:.R%,O%:.p(25,1|
00000330  2c 22 20 59 4f 55 52 20  41 54 54 41 43 4b 20 50  |," YOUR ATTACK P|
00000340  48 41 53 45 20 20 22 29  3a f2 70 28 32 36 2c 32  |HASE  "):.p(26,2|
00000350  2c 22 44 4f 20 59 4f 55  20 57 41 4e 54 20 41 4e  |,"DO YOU WANT AN|
00000360  59 20 55 4e 49 54 22 29  3a f2 70 28 32 37 2c 32  |Y UNIT"):.p(27,2|
00000370  2c 22 54 4f 20 41 54 54  41 43 4b 20 54 48 45 20  |,"TO ATTACK THE |
00000380  45 4e 45 4d 59 3f 22 29  3a 49 25 3d 31 3a 41 24  |ENEMY?"):I%=1:A$|
00000390  3d be 3a e7 a7 22 4e 6e  22 2c 41 24 29 e1 0d 01  |=.:.."Nn",A$)...|
000003a0  4a 15 e7 61 25 28 49 25  2c 36 29 3c 3d 30 8c 8d  |J..a%(I%,6)<=0..|
000003b0  64 42 41 0d 01 54 7c f2  58 3a f2 70 28 32 36 2c  |dBA..T|.X:.p(26,|
000003c0  32 2c 22 53 45 54 20 41  54 54 41 43 4b 20 52 41  |2,"SET ATTACK RA|
000003d0  4e 47 45 20 46 4f 52 22  29 3a f2 70 28 32 37 2c  |NGE FOR"):.p(27,|
000003e0  32 2c 22 20 54 48 45 20  46 4c 41 53 48 49 4e 47  |2," THE FLASHING|
000003f0  20 55 4e 49 54 20 20 22  29 3a f2 70 28 32 38 2c  | UNIT  "):.p(28,|
00000400  31 2c 22 53 50 41 43 45  3d 50 41 53 53 20 20 20  |1,"SPACE=PASS   |
00000410  20 58 3d 53 54 4f 50 22  29 3a f2 56 3a ef 31 37  | X=STOP"):.V:.17|
00000420  2c 32 3a 52 25 3d a5 3a  e7 52 25 3d 38 38 e1 0d  |,2:R%=.:.R%=88..|
00000430  01 5e 12 e7 52 25 3d 33  32 f2 55 3a e5 8d 64 42  |.^..R%=32.U:..dB|
00000440  41 0d 01 68 22 52 25 3d  52 25 2d 34 38 3a e7 52  |A..h"R%=R%-48:.R|
00000450  25 3c 3d 61 25 28 49 25  2c 37 29 f2 56 3a e5 8d  |%<=a%(I%,7).V:..|
00000460  44 7c 41 0d 01 72 47 f2  55 3a f2 58 3a e3 6b 25  |D|A..rG.U:.X:.k%|
00000470  3d 31 b8 31 30 3a ef 37  3a ed 3a f2 70 28 32 37  |=1.10:.7:.:.p(27|
00000480  2c 32 2c 22 54 48 41 54  20 52 41 4e 47 45 20 49  |,2,"THAT RANGE I|
00000490  53 20 57 52 4f 4e 47 21  22 29 3a ef 37 2c 37 2c  |S WRONG!"):.7,7,|
000004a0  37 3a f2 4b 3a e5 8d 64  42 41 0d 01 7c 69 f2 58  |7:.K:..dBA..|i.X|
000004b0  3a ef 33 31 2c 30 2c 32  36 3a f1 22 52 41 4e 47  |:.31,0,26:."RANG|
000004c0  45 20 53 45 54 20 22 3b  52 25 3b 22 30 30 30 20  |E SET ";R%;"000 |
000004d0  59 41 52 44 53 22 3a f2  70 28 32 37 2c 32 2c 22  |YARDS":.p(27,2,"|
000004e0  20 41 54 54 41 43 4b 20  44 49 52 45 43 54 49 4f  | ATTACK DIRECTIO|
000004f0  4e 3f 22 29 3a 4f 25 3d  a5 3a 4f 25 3d 4f 25 2d  |N?"):O%=.:O%=O%-|
00000500  31 33 35 3a e7 4f 25 3c  31 84 4f 25 3e 34 8c 8d  |135:.O%<1.O%>4..|
00000510  64 42 41 0d 01 86 37 f2  43 28 4f 25 2c 49 25 2c  |dBA...7.C(O%,I%,|
00000520  52 25 29 3a ef 31 37 2c  31 32 38 3a e7 76 25 28  |R%):.17,128:.v%(|
00000530  58 25 2c 59 25 29 3d 34  3a e7 54 25 3d 31 f2 47  |X%,Y%)=4:.T%=1.G|
00000540  28 58 25 2c 59 25 2c 54  25 29 0d 01 90 22 e7 76  |(X%,Y%,T%)...".v|
00000550  25 28 58 25 2c 59 25 29  3d 34 3a e7 56 25 3d 31  |%(X%,Y%)=4:.V%=1|
00000560  f2 47 28 58 25 2c 59 25  2c 56 25 29 0d 01 9a 22  |.G(X%,Y%,V%)..."|
00000570  e7 76 25 28 58 25 2c 59  25 29 3d 34 3a e7 5a 25  |.v%(X%,Y%)=4:.Z%|
00000580  3d 31 f2 47 28 58 25 2c  59 25 2c 5a 25 29 0d 01  |=1.G(X%,Y%,Z%)..|
00000590  a4 1f e7 76 25 28 58 25  2c 59 25 29 3d 31 f2 5f  |...v%(X%,Y%)=1._|
000005a0  28 58 25 2c 59 25 29 3a  e5 8d 64 42 41 0d 01 ae  |(X%,Y%):..dBA...|
000005b0  2f e7 76 25 28 58 25 2c  59 25 29 3c 3e 41 25 80  |/.v%(X%,Y%)<>A%.|
000005c0  76 25 28 58 25 2c 59 25  29 3c 3e 42 25 f2 48 28  |v%(X%,Y%)<>B%.H(|
000005d0  58 25 2c 59 25 29 3a e5  8d 64 42 41 0d 01 b8 10  |X%,Y%):..dBA....|
000005e0  f2 4f 28 58 25 2c 59 25  2c 52 25 29 0d 01 c2 17  |.O(X%,Y%,R%)....|
000005f0  49 25 3d 49 25 2b 31 3a  e7 49 25 3c 31 34 8c 8d  |I%=I%+1:.I%<14..|
00000600  44 4a 41 0d 01 cc 08 f2  46 3a e1 0d 01 d6 3e dd  |DJA.....F:....>.|
00000610  f2 47 28 58 25 2c 59 25  2c 68 25 29 3a 63 25 28  |.G(X%,Y%,h%):c%(|
00000620  58 25 2c 59 25 29 3d 32  32 34 3a 66 25 28 58 25  |X%,Y%)=224:f%(X%|
00000630  2c 59 25 29 3d 32 3a 76  25 28 58 25 2c 59 25 29  |,Y%)=2:v%(X%,Y%)|
00000640  3d 30 3a 68 25 3d 30 3a  e1 0d 01 e0 3a dd f2 54  |=0:h%=0:....:..T|
00000650  3a f2 57 28 34 29 3a f2  58 3a ea 4d 25 3a f2 70  |:.W(4):.X:.M%:.p|
00000660  28 32 35 2c 31 2c 22 45  4e 45 4d 59 20 4d 4f 56  |(25,1,"ENEMY MOV|
00000670  45 4d 45 4e 54 20 50 48  41 53 45 22 29 3a 4a 25  |EMENT PHASE"):J%|
00000680  3d 31 34 0d 01 ea 1a 4d  25 3d 61 25 28 4a 25 2c  |=14....M%=a%(J%,|
00000690  38 29 3a e7 4d 25 3d 30  8c 8d 74 4a 42 0d 01 f4  |8):.M%=0..tJB...|
000006a0  15 e7 61 25 28 4a 25 2c  36 29 3c 3d 30 8c 8d 74  |..a%(J%,6)<=0..t|
000006b0  4a 42 0d 01 fe 35 58 25  3d 61 25 28 4a 25 2c 31  |JB...5X%=a%(J%,1|
000006c0  29 3a 59 25 3d 61 25 28  4a 25 2c 32 29 3a e7 59  |):Y%=a%(J%,2):.Y|
000006d0  25 3e 3d 32 31 f2 60 28  4a 25 2c 58 25 2c 59 25  |%>=21.`(J%,X%,Y%|
000006e0  29 3a e5 8d 74 4a 42 0d  02 08 15 e7 a4 41 28 58  |):..tJB......A(X|
000006f0  25 2c 59 25 29 3d 31 8c  8d 74 4a 42 0d 02 12 1e  |%,Y%)=1..tJB....|
00000700  e7 a4 6e 28 58 25 2c 59  25 29 3d 31 f2 41 28 30  |..n(X%,Y%)=1.A(0|
00000710  2c 2d 31 29 3a e5 8d 44  44 42 0d 02 1c 1d e7 a4  |,-1):..DDB......|
00000720  73 28 58 25 2c 59 25 29  3d 31 f2 41 28 30 2c 31  |s(X%,Y%)=1.A(0,1|
00000730  29 3a e5 8d 44 44 42 0d  02 26 1e e7 a4 77 28 58  |):..DDB..&...w(X|
00000740  25 2c 59 25 29 3d 31 f2  41 28 2d 31 2c 31 29 3a  |%,Y%)=1.A(-1,1):|
00000750  e5 8d 44 44 42 0d 02 30  1d e7 a4 65 28 58 25 2c  |..DDB..0...e(X%,|
00000760  59 25 29 3d 31 f2 41 28  31 2c 31 29 3a e5 8d 44  |Y%)=1.A(1,1):..D|
00000770  44 42 0d 02 3a 11 58 25  3d 58 25 3a 59 25 3d 59  |DB..:.X%=X%:Y%=Y|
00000780  25 2b 31 0d 02 44 18 f2  42 3a e7 76 25 28 58 25  |%+1..D..B:.v%(X%|
00000790  2c 59 25 29 3c 37 8c 8d  44 62 42 0d 02 4e 17 e7  |,Y%)<7..DbB..N..|
000007a0  63 25 28 58 25 2c 59 25  29 3e 32 33 35 8c 8d 44  |c%(X%,Y%)>235..D|
000007b0  62 42 0d 02 58 29 51 25  3d b3 28 32 29 3a f2 43  |bB..X)Q%=.(2):.C|
000007c0  28 51 25 2c 4a 25 2c 31  29 3a e7 76 25 28 58 25  |(Q%,J%,1):.v%(X%|
000007d0  2c 59 25 29 3e 36 8c 8d  44 76 42 0d 02 62 2c f2  |,Y%)>6..DvB..b,.|
000007e0  57 28 32 29 3a f2 4d 28  4a 25 2c 42 25 29 3a f2  |W(2):.M(J%,B%):.|
000007f0  42 3a e7 63 25 28 58 25  2c 59 25 29 3e 32 32 35  |B:.c%(X%,Y%)>225|
00000800  4d 25 3d 4d 25 2d 31 0d  02 6c 1c e7 63 25 28 58  |M%=M%-1..l..c%(X|
00000810  25 2c 59 25 29 3d 32 33  30 4d 25 3d 30 3a e5 8d  |%,Y%)=230M%=0:..|
00000820  74 4a 42 0d 02 76 17 4d  25 3d 4d 25 2d 31 3a e7  |tJB..v.M%=M%-1:.|
00000830  4d 25 3c 3d 30 8c 8d 74  4a 42 0d 02 80 14 ef 37  |M%<=0..tJB.....7|
00000840  2c 37 3a f2 57 28 31 29  3a e5 8d 64 7e 41 0d 02  |,7:.W(1):..d~A..|
00000850  8a 18 4a 25 3d 4a 25 2b  31 3a e7 4a 25 3c 3d 4e  |..J%=J%+1:.J%<=N|
00000860  25 8c 8d 64 6a 41 0d 02  94 08 f2 62 3a e1 0d 02  |%..djA.....b:...|
00000870  9e 36 dd f2 62 3a f2 58  3a f2 57 28 33 29 3a 4a  |.6..b:.X:.W(3):J|
00000880  25 3d 31 34 3a f2 70 28  32 35 2c 31 2c 22 20 45  |%=14:.p(25,1," E|
00000890  4e 45 4d 59 20 41 54 54  41 43 4b 20 50 48 41 53  |NEMY ATTACK PHAS|
000008a0  45 20 22 29 0d 02 a8 1a  52 25 3d 31 3a e7 61 25  |E ")....R%=1:.a%|
000008b0  28 4a 25 2c 36 29 3c 3d  30 8c 8d 64 78 42 0d 02  |(J%,6)<=0..dxB..|
000008c0  b2 37 58 25 3d 61 25 28  4a 25 2c 31 29 3a 59 25  |.7X%=a%(J%,1):Y%|
000008d0  3d 61 25 28 4a 25 2c 32  29 3a e7 a4 4e 28 58 25  |=a%(J%,2):..N(X%|
000008e0  2c 59 25 2c 52 25 29 59  25 3d 59 25 2d 52 25 3a  |,Y%,R%)Y%=Y%-R%:|
000008f0  e5 8d 64 64 42 0d 02 bc  1f e7 a4 53 28 58 25 2c  |..ddB......S(X%,|
00000900  59 25 2c 52 25 29 59 25  3d 59 25 2b 52 25 3a e5  |Y%,R%)Y%=Y%+R%:.|
00000910  8d 64 64 42 0d 02 c6 1f  e7 a4 45 28 58 25 2c 59  |.ddB......E(X%,Y|
00000920  25 2c 52 25 29 58 25 3d  58 25 2b 52 25 3a e5 8d  |%,R%)X%=X%+R%:..|
00000930  64 64 42 0d 02 d0 1f e7  a4 57 28 58 25 2c 59 25  |ddB......W(X%,Y%|
00000940  2c 52 25 29 58 25 3d 58  25 2d 52 25 3a e5 8d 64  |,R%)X%=X%-R%:..d|
00000950  64 42 0d 02 da 09 e5 8d  64 6e 42 0d 02 e4 3f f2  |dB......dnB...?.|
00000960  70 28 32 36 2c 32 2c 22  59 4f 55 20 41 52 45 20  |p(26,2,"YOU ARE |
00000970  55 4e 44 45 52 20 41 54  54 41 43 4b 22 29 3a f2  |UNDER ATTACK"):.|
00000980  50 3a f2 57 28 33 29 3a  f2 4f 28 58 25 2c 59 25  |P:.W(3):.O(X%,Y%|
00000990  2c 52 25 29 3a e5 8d 64  78 42 0d 02 ee 1e 52 25  |,R%):..dxB....R%|
000009a0  3d 52 25 2b 31 3a e7 52  25 3c 3d 61 25 28 4a 25  |=R%+1:.R%<=a%(J%|
000009b0  2c 37 29 8c 8d 74 72 42  0d 02 f8 18 4a 25 3d 4a  |,7)..trB....J%=J|
000009c0  25 2b 31 3a e7 4a 25 3c  3d 4e 25 8c 8d 74 68 42  |%+1:.J%<=N%..thB|
000009d0  0d 03 02 08 f2 46 3a e1  0d 03 0c 31 dd a4 4e 28  |.....F:....1..N(|
000009e0  58 25 2c 59 25 2c 52 25  29 3a e7 59 25 2d 52 25  |X%,Y%,R%):.Y%-R%|
000009f0  3e 32 3a e7 76 25 28 58  25 2c 59 25 2d 52 25 29  |>2:.v%(X%,Y%-R%)|
00000a00  3d 41 25 3a 3d b9 8b 3d  a3 0d 03 16 32 dd a4 53  |=A%:=..=....2..S|
00000a10  28 58 25 2c 59 25 2c 52  25 29 3a e7 59 25 2b 52  |(X%,Y%,R%):.Y%+R|
00000a20  25 3c 32 33 3a e7 76 25  28 58 25 2c 59 25 2b 52  |%<23:.v%(X%,Y%+R|
00000a30  25 29 3d 41 25 3a 3d b9  8b 3d a3 0d 03 20 32 dd  |%)=A%:=..=... 2.|
00000a40  a4 45 28 58 25 2c 59 25  2c 52 25 29 3a e7 58 25  |.E(X%,Y%,R%):.X%|
00000a50  2b 52 25 3c 32 30 3a e7  76 25 28 58 25 2b 52 25  |+R%<20:.v%(X%+R%|
00000a60  2c 59 25 29 3d 41 25 3a  3d b9 8b 3d a3 0d 03 2a  |,Y%)=A%:=..=...*|
00000a70  32 dd a4 57 28 58 25 2c  59 25 2c 52 25 29 3a e7  |2..W(X%,Y%,R%):.|
00000a80  58 25 2d 52 25 3e 2d 31  3a e7 76 25 28 58 25 2d  |X%-R%>-1:.v%(X%-|
00000a90  52 25 2c 59 25 29 3d 41  25 3a 3d b9 8b 3d a3 0d  |R%,Y%)=A%:=..=..|
00000aa0  03 34 22 dd f2 41 28 5f  25 2c 60 25 29 3a 58 25  |.4"..A(_%,`%):X%|
00000ab0  3d 58 25 2b 5f 25 3a 59  25 3d 59 25 2b 60 25 3a  |=X%+_%:Y%=Y%+`%:|
00000ac0  e1 0d 03 3e 96 dd f2 4e  28 49 25 2c 58 25 2c 59  |...>...N(I%,X%,Y|
00000ad0  25 29 3a f2 55 3a f2 55  3a ef 31 37 2c 31 33 31  |%):.U:.U:.17,131|
00000ae0  3a f2 70 28 32 38 2c 31  2c 22 2a 2a 20 49 4e 20  |:.p(28,1,"** IN |
00000af0  41 20 4d 49 4e 45 46 49  45 4c 44 20 2a 2a 22 29  |A MINEFIELD **")|
00000b00  3a f2 44 3a f2 57 28 32  29 3a f2 44 3a 57 25 3d  |:.D:.W(2):.D:W%=|
00000b10  b3 28 31 35 30 2b 4c 25  2a 31 30 29 3a f2 4b 3a  |.(150+L%*10):.K:|
00000b20  ef 31 37 2c 31 32 38 3a  f2 51 28 49 25 2c 58 25  |.17,128:.Q(I%,X%|
00000b30  2c 59 25 2c 57 25 29 3a  4d 25 3d 30 3a e7 63 25  |,Y%,W%):M%=0:.c%|
00000b40  28 58 25 2c 59 25 29 3d  33 32 63 25 28 58 25 2c  |(X%,Y%)=32c%(X%,|
00000b50  59 25 29 3d 32 32 34 0d  03 48 05 e1 0d 03 52 2f  |Y%)=224..H....R/|
00000b60  dd f2 5f 28 58 25 2c 59  25 29 3a f2 48 28 58 25  |.._(X%,Y%):.H(X%|
00000b70  2c 59 25 29 3a 51 25 3d  b3 28 32 35 30 2d 4c 25  |,Y%):Q%=.(250-L%|
00000b80  2a 35 29 3a e7 51 25 3c  32 35 e1 0d 03 5c 47 ef  |*5):.Q%<25...\G.|
00000b90  31 37 2c 32 2c 31 37 2c  31 33 30 2c 33 31 2c 58  |17,2,17,130,31,X|
00000ba0  25 2c 59 25 2c 33 32 3a  f2 44 3a 66 25 28 58 25  |%,Y%,32:.D:f%(X%|
00000bb0  2c 59 25 29 3d 32 3a 63  25 28 58 25 2c 59 25 29  |,Y%)=2:c%(X%,Y%)|
00000bc0  3d 32 32 34 3a 76 25 28  58 25 2c 59 25 29 3d 30  |=224:v%(X%,Y%)=0|
00000bd0  3a e1 0d 03 66 34 dd f2  59 28 49 25 2c 58 25 2c  |:...f4..Y(I%,X%,|
00000be0  59 25 29 3a e7 54 25 3d  31 e7 58 25 3d 34 e7 59  |Y%):.T%=1.X%=4.Y|
00000bf0  25 3d 31 35 54 25 3d 30  3a f2 4a 28 49 25 2c 34  |%=15T%=0:.J(I%,4|
00000c00  2c 31 35 29 3a e1 0d 03  70 26 e7 56 25 3d 31 e7  |,15):...p&.V%=1.|
00000c10  58 25 3d 38 e7 59 25 3d  31 32 56 25 3d 30 3a f2  |X%=8.Y%=12V%=0:.|
00000c20  4a 28 49 25 2c 38 2c 31  32 29 3a e1 0d 03 7a 28  |J(I%,8,12):...z(|
00000c30  e7 5a 25 3d 31 e7 58 25  3d 31 32 e7 59 25 3d 31  |.Z%=1.X%=12.Y%=1|
00000c40  31 5a 25 3d 30 3a f2 4a  28 49 25 2c 31 32 2c 31  |1Z%=0:.J(I%,12,1|
00000c50  31 29 3a e1 0d 03 84 05  e1 0d 03 8e 11 dd f2 60  |1):............`|
00000c60  28 4a 25 2c 58 25 2c 59  25 29 0d 03 98 20 59 25  |(J%,X%,Y%)... Y%|
00000c70  3d 59 25 2d 31 3a f2 42  3a e7 76 25 28 58 25 2c  |=Y%-1:.B:.v%(X%,|
00000c80  59 25 29 3e 36 8c 8d 74  58 43 0d 03 a2 1e f2 57  |Y%)>6..tXC.....W|
00000c90  28 34 29 3a f2 4d 28 4a  25 2c 42 25 29 3a e7 59  |(4):.M(J%,B%):.Y|
00000ca0  25 3e 34 8c 8d 74 58 43  0d 03 ac 0e e7 58 25 3d  |%>4..tXC.....X%=|
00000cb0  34 8c 8d 64 4a 43 0d 03  b6 20 58 25 3d 58 25 2d  |4..dJC... X%=X%-|
00000cc0  31 3a f2 42 3a e7 76 25  28 58 25 2c 59 25 29 3e  |1:.B:.v%(X%,Y%)>|
00000cd0  36 8c 8d 64 4a 43 0d 03  c0 23 f2 57 28 34 29 3a  |6..dJC...#.W(4):|
00000ce0  f2 4d 28 4a 25 2c 42 25  29 3a e7 58 25 3d 34 8c  |.M(J%,B%):.X%=4.|
00000cf0  8d 64 4a 43 8b 8d 74 76  43 0d 03 ca 05 e1 0d 03  |.dJC..tvC.......|
00000d00  d4 13 dd a4 65 28 58 25  2c 59 25 29 3a 69 25 3d  |....e(X%,Y%):i%=|
00000d10  31 0d 03 de 11 e7 58 25  3c 31 39 58 25 3d 58 25  |1.....X%<19X%=X%|
00000d20  2b 31 0d 03 e8 11 e7 59  25 3c 32 33 59 25 3d 59  |+1.....Y%<23Y%=Y|
00000d30  25 2b 31 0d 03 f2 14 e7  76 25 28 58 25 2c 59 25  |%+1.....v%(X%,Y%|
00000d40  29 3d 41 25 3a 3d 31 0d  03 fc 17 69 25 3d 69 25  |)=A%:=1....i%=i%|
00000d50  2b 31 3a e7 69 25 3c 32  31 8c 8d 64 5e 43 0d 04  |+1:.i%<21..d^C..|
00000d60  06 06 3d 30 0d 04 10 0e  dd a4 6e 28 58 25 2c 59  |..=0......n(X%,Y|
00000d70  25 29 0d 04 1a 14 e7 76  25 28 58 25 2c 59 25 29  |%).....v%(X%,Y%)|
00000d80  3d 41 25 3a 3d 31 0d 04  24 16 e7 59 25 3e 32 59  |=A%:=1..$..Y%>2Y|
00000d90  25 3d 59 25 2d 31 3a e5  8d 54 5a 44 0d 04 2e 06  |%=Y%-1:..TZD....|
00000da0  3d 30 0d 04 38 26 dd a4  41 28 58 25 2c 59 25 29  |=0..8&..A(X%,Y%)|
00000db0  3a e7 58 25 3e 30 e7 76  25 28 58 25 2d 31 2c 59  |:.X%>0.v%(X%-1,Y|
00000dc0  25 29 3d 41 25 3a 3d 31  0d 04 42 1c e7 58 25 3c  |%)=A%:=1..B..X%<|
00000dd0  31 39 e7 76 25 28 58 25  2b 31 2c 59 25 29 3d 41  |19.v%(X%+1,Y%)=A|
00000de0  25 3a 3d 31 0d 04 4c 1c  e7 59 25 3c 32 33 e7 76  |%:=1..L..Y%<23.v|
00000df0  25 28 58 25 2c 59 25 2b  31 29 3d 41 25 3a 3d 31  |%(X%,Y%+1)=A%:=1|
00000e00  0d 04 56 1b e7 59 25 3e  32 e7 76 25 28 58 25 2c  |..V..Y%>2.v%(X%,|
00000e10  59 25 2d 31 29 3d 41 25  3a 3d 31 0d 04 60 06 3d  |Y%-1)=A%:=1..`.=|
00000e20  30 0d 04 6a 0e dd a4 73  28 58 25 2c 59 25 29 0d  |0..j...s(X%,Y%).|
00000e30  04 74 14 e7 76 25 28 58  25 2c 59 25 29 3d 41 25  |.t..v%(X%,Y%)=A%|
00000e40  3a 3d 31 0d 04 7e 17 e7  59 25 3c 32 33 59 25 3d  |:=1..~..Y%<23Y%=|
00000e50  59 25 2b 31 3a e5 8d 44  74 44 0d 04 88 06 3d 30  |Y%+1:..DtD....=0|
00000e60  0d 04 92 13 dd a4 77 28  58 25 2c 59 25 29 3a 69  |......w(X%,Y%):i|
00000e70  25 3d 31 0d 04 9c 10 e7  58 25 3e 30 58 25 3d 58  |%=1.....X%>0X%=X|
00000e80  25 2d 31 0d 04 a6 11 e7  59 25 3c 32 33 59 25 3d  |%-1.....Y%<23Y%=|
00000e90  59 25 2b 31 0d 04 b0 14  e7 76 25 28 58 25 2c 59  |Y%+1.....v%(X%,Y|
00000ea0  25 29 3d 41 25 3a 3d 31  0d 04 ba 17 69 25 3d 69  |%)=A%:=1....i%=i|
00000eb0  25 2b 31 3a e7 69 25 3c  32 31 8c 8d 74 5c 44 0d  |%+1:.i%<21..t\D.|
00000ec0  04 c4 06 3d 30 0d 04 ce  37 dd f2 61 28 65 25 2c  |...=0...7..a(e%,|
00000ed0  66 25 2c 67 25 29 3a e3  69 25 3d 65 25 b8 66 25  |f%,g%):.i%=e%.f%|
00000ee0  3a f7 67 25 3a e3 6a 25  3d 33 b8 38 3a f3 61 25  |:.g%:.j%=3.8:.a%|
00000ef0  28 69 25 2c 6a 25 29 3a  ed 2c 3a e1 0d 04 d8 12  |(i%,j%):.,:.....|
00000f00  dd f2 42 3a e7 58 25 3c  30 20 58 25 3d 30 0d 04  |..B:.X%<0 X%=0..|
00000f10  e2 10 e7 58 25 3e 31 39  20 58 25 3d 31 39 0d 04  |...X%>19 X%=19..|
00000f20  ec 0e e7 59 25 3c 33 20  59 25 3d 33 0d 04 f6 10  |...Y%<3 Y%=3....|
00000f30  e7 59 25 3e 32 33 20 59  25 3d 32 33 0d 05 00 05  |.Y%>23 Y%=23....|
00000f40  e1 0d 05 0a 2d dd f2 43  28 68 2c 69 25 2c 6a 29  |....-..C(h,i%,j)|
00000f50  3a e7 68 3d 31 58 25 3d  61 25 28 69 25 2c 31 29  |:.h=1X%=a%(i%,1)|
00000f60  2d 6a 3a 59 25 3d 61 25  28 69 25 2c 32 29 0d 05  |-j:Y%=a%(i%,2)..|
00000f70  14 21 e7 68 3d 32 58 25  3d 61 25 28 69 25 2c 31  |.!.h=2X%=a%(i%,1|
00000f80  29 2b 6a 3a 59 25 3d 61  25 28 69 25 2c 32 29 0d  |)+j:Y%=a%(i%,2).|
00000f90  05 1e 21 e7 68 3d 33 58  25 3d 61 25 28 69 25 2c  |..!.h=3X%=a%(i%,|
00000fa0  31 29 3a 59 25 3d 61 25  28 69 25 2c 32 29 2b 6a  |1):Y%=a%(i%,2)+j|
00000fb0  0d 05 28 21 e7 68 3d 34  58 25 3d 61 25 28 69 25  |..(!.h=4X%=a%(i%|
00000fc0  2c 31 29 3a 59 25 3d 61  25 28 69 25 2c 32 29 2d  |,1):Y%=a%(i%,2)-|
00000fd0  6a 0d 05 32 08 f2 42 3a  e1 0d 05 3c 24 dd f2 4f  |j..2..B:...<$..O|
00000fe0  28 58 25 2c 59 25 2c 52  25 29 3a 55 25 3d 31 3a  |(X%,Y%,R%):U%=1:|
00000ff0  e7 76 25 28 58 25 2c 59  25 29 3d 30 e1 0d 05 46  |.v%(X%,Y%)=0...F|
00001000  1a 50 25 3d 30 3a e7 61  25 28 55 25 2c 36 29 3c  |.P%=0:.a%(U%,6)<|
00001010  3d 30 8c 8d 74 6a 45 0d  05 50 21 e7 61 25 28 55  |=0..tjE..P!.a%(U|
00001020  25 2c 31 29 3d 58 25 80  61 25 28 55 25 2c 32 29  |%,1)=X%.a%(U%,2)|
00001030  3d 59 25 50 25 3d 2d 31  0d 05 5a 0d e7 ac 50 25  |=Y%P%=-1..Z...P%|
00001040  8c 8d 74 6a 45 0d 05 64  29 e7 55 25 3c 31 34 57  |..tjE..d).U%<14W|
00001050  25 3d 35 30 2b b3 28 48  25 2b 28 61 25 28 55 25  |%=50+.(H%+(a%(U%|
00001060  2c 32 29 2a 33 29 2d 28  52 25 2a 32 29 29 0d 05  |,2)*3)-(R%*2))..|
00001070  6e 23 e7 55 25 3e 31 33  57 25 3d 35 30 2b b3 28  |n#.U%>13W%=50+.(|
00001080  48 25 2d 28 4c 25 2a 34  29 2d 28 52 25 2a 32 29  |H%-(L%*4)-(R%*2)|
00001090  29 0d 05 78 0e e7 57 25  3c 30 20 57 25 3d 30 0d  |)..x..W%<0 W%=0.|
000010a0  05 82 1b e7 57 25 3e 61  25 28 55 25 2c 36 29 57  |....W%>a%(U%,6)W|
000010b0  25 3d 61 25 28 55 25 2c  36 29 0d 05 8c 37 61 25  |%=a%(U%,6)...7a%|
000010c0  28 55 25 2c 36 29 3d 61  25 28 55 25 2c 36 29 2d  |(U%,6)=a%(U%,6)-|
000010d0  57 25 3a e7 61 25 28 55  25 2c 36 29 3c 3d 30 f2  |W%:.a%(U%,6)<=0.|
000010e0  63 28 55 25 2c 58 25 2c  59 25 29 3a e5 8d 74 6a  |c(U%,X%,Y%):..tj|
000010f0  45 0d 05 96 1c e7 61 25  28 55 25 2c 36 29 3c 35  |E.....a%(U%,6)<5|
00001100  30 30 20 61 25 28 55 25  2c 34 29 3d 32 0d 05 a0  |00 a%(U%,4)=2...|
00001110  19 e7 50 25 f2 53 3a f2  51 28 55 25 2c 58 25 2c  |..P%.S:.Q(U%,X%,|
00001120  59 25 2c 57 25 29 0d 05  aa 18 55 25 3d 55 25 2b  |Y%,W%)....U%=U%+|
00001130  31 3a e7 55 25 3c 3d 4e  25 8c 8d 44 46 45 0d 05  |1:.U%<=N%..DFE..|
00001140  b4 05 e1 0d 05 be 86 dd  f2 63 28 55 25 2c 58 25  |.........c(U%,X%|
00001150  2c 59 25 29 3a f2 48 28  61 25 28 55 25 2c 31 29  |,Y%):.H(a%(U%,1)|
00001160  2c 61 25 28 55 25 2c 32  29 29 3a f2 44 3a ef 31  |,a%(U%,2)):.D:.1|
00001170  37 2c 31 33 31 3a f2 70  28 32 38 2c 31 2c 22 55  |7,131:.p(28,1,"U|
00001180  4e 49 54 20 43 45 41 53  45 53 20 54 4f 20 45 58  |NIT CEASES TO EX|
00001190  49 53 54 22 29 3a f2 44  3a f2 57 28 36 29 3a ef  |IST"):.D:.W(6):.|
000011a0  31 37 2c 32 2c 31 37 2c  31 32 38 3a e3 64 25 3d  |17,2,17,128:.d%=|
000011b0  31 b8 38 3a 61 25 28 55  25 2c 64 25 29 3d 30 3a  |1.8:a%(U%,d%)=0:|
000011c0  ed 3a f2 4b 3a f2 55 3a  e1 0d 05 c8 15 dd f2 48  |.:.K:.U:.......H|
000011d0  28 58 25 2c 59 25 29 3a  f2 50 3a 6f 3d 31 0d 05  |(X%,Y%):.P:o=1..|
000011e0  d2 2f ef 31 37 2c 30 2c  31 37 2c 31 33 30 2c 33  |./.17,0,17,130,3|
000011f0  31 2c 58 25 2c 59 25 2c  32 33 36 3a 6f 3d 6f 2b  |1,X%,Y%,236:o=o+|
00001200  31 3a e7 6f 3c 32 30 30  8c 8d 64 52 45 0d 05 dc  |1:.o<200..dRE...|
00001210  41 ef 31 37 2c 66 25 28  58 25 2c 59 25 29 2c 31  |A.17,f%(X%,Y%),1|
00001220  37 2c 31 33 30 2c 33 31  2c 58 25 2c 59 25 2c 63  |7,130,31,X%,Y%,c|
00001230  25 28 58 25 2c 59 25 29  3a 76 25 28 58 25 2c 59  |%(X%,Y%):v%(X%,Y|
00001240  25 29 3d 30 3a ef 31 37  2c 31 32 38 3a e1 0d 05  |%)=0:.17,128:...|
00001250  e6 66 dd f2 51 28 55 25  2c 58 25 2c 59 25 2c 57  |.f..Q(U%,X%,Y%,W|
00001260  25 29 3a f2 55 3a f2 6c  28 32 37 29 3a f2 44 3a  |%):.U:.l(27):.D:|
00001270  ef 31 37 2c 31 2c 33 31  2c 33 2c 32 37 3a f1 22  |.17,1,31,3,27:."|
00001280  43 41 53 55 41 4c 54 49  45 53 20 22 3b 57 25 3a  |CASUALTIES ";W%:|
00001290  f2 64 28 55 25 2c 58 25  2c 59 25 2c 57 25 29 3a  |.d(U%,X%,Y%,W%):|
000012a0  e3 69 25 3d 32 37 b8 32  38 3a f2 6c 28 69 25 29  |.i%=27.28:.l(i%)|
000012b0  3a ed 3a e1 0d 05 f0 2c  dd f2 64 28 55 25 2c 58  |:.:....,..d(U%,X|
000012c0  25 2c 59 25 2c 57 25 29  3a e7 55 25 3c 31 34 43  |%,Y%,W%):.U%<14C|
000012d0  25 3d 43 25 2d 57 25 3a  45 25 3d 45 25 2b 57 25  |%=C%-W%:E%=E%+W%|
000012e0  0d 05 fa 1b e7 55 25 3e  31 33 44 25 3d 44 25 2d  |.....U%>13D%=D%-|
000012f0  57 25 3a 46 25 3d 46 25  2b 57 25 0d 06 04 1e f2  |W%:F%=F%+W%.....|
00001300  53 3a f2 57 28 35 29 3a  f2 65 28 55 25 2c 58 25  |S:.W(5):.e(U%,X%|
00001310  2c 59 25 2c 57 25 29 3a  e1 0d 06 0e 1d dd f2 65  |,Y%,W%):.......e|
00001320  28 55 25 2c 58 25 2c 59  25 2c 57 25 29 3a e7 57  |(U%,X%,Y%,W%):.W|
00001330  25 3c 31 30 30 e1 0d 06  18 27 f2 55 3a 53 25 3d  |%<100....'.U:S%=|
00001340  57 25 81 4b 25 3a e7 55  25 3e 31 33 f2 66 28 55  |W%.K%:.U%>13.f(U|
00001350  25 2c 58 25 2c 59 25 2c  53 25 29 3a e1 0d 06 22  |%,X%,Y%,S%):..."|
00001360  15 f2 67 28 55 25 2c 58  25 2c 59 25 2c 53 25 29  |..g(U%,X%,Y%,S%)|
00001370  3a e1 0d 06 2c 14 dd f2  67 28 55 25 2c 58 25 2c  |:...,...g(U%,X%,|
00001380  59 25 2c 53 25 29 0d 06  36 16 59 25 3d 59 25 2b  |Y%,S%)..6.Y%=Y%+|
00001390  31 3a f2 42 3a e7 59 25  3d 32 33 e1 0d 06 40 15  |1:.B:.Y%=23...@.|
000013a0  e7 76 25 28 58 25 2c 59  25 29 3e 36 8c 8d 54 76  |.v%(X%,Y%)>6..Tv|
000013b0  46 0d 06 4a 26 f2 57 28  33 29 3a f2 4d 28 55 25  |F..J&.W(3):.M(U%|
000013c0  2c 41 25 29 3a 53 25 3d  53 25 2d 31 3a e7 53 25  |,A%):S%=S%-1:.S%|
000013d0  3e 30 8c 8d 54 76 46 0d  06 54 05 e1 0d 06 5e 14  |>0..TvF..T....^.|
000013e0  dd f2 66 28 55 25 2c 58  25 2c 59 25 2c 53 25 29  |..f(U%,X%,Y%,S%)|
000013f0  0d 06 68 16 59 25 3d 59  25 2d 31 3a f2 42 3a e7  |..h.Y%=Y%-1:.B:.|
00001400  55 25 3d 31 34 e1 0d 06  72 0a e7 59 25 3d 33 e1  |U%=14...r..Y%=3.|
00001410  0d 06 7c 15 e7 76 25 28  58 25 2c 59 25 29 3e 36  |..|..v%(X%,Y%)>6|
00001420  8c 8d 44 68 46 0d 06 86  26 f2 57 28 34 29 3a f2  |..DhF...&.W(4):.|
00001430  4d 28 55 25 2c 42 25 29  3a 53 25 3d 53 25 2d 31  |M(U%,B%):S%=S%-1|
00001440  3a e7 53 25 3e 30 8c 8d  44 68 46 0d 06 90 05 e1  |:.S%>0..DhF.....|
00001450  0d 06 9a b6 dd f2 4c 3a  f2 55 3a ef 31 39 2c 33  |......L:.U:.19,3|
00001460  2c 34 2c 30 2c 30 2c 30  2c 31 37 2c 31 2c 31 37  |,4,0,0,0,17,1,17|
00001470  2c 31 33 31 2c 31 32 2c  33 31 2c 31 2c 31 30 3a  |,131,12,31,1,10:|
00001480  f1 22 43 68 6f 6f 73 65  20 79 6f 75 72 20 6c 65  |."Choose your le|
00001490  76 65 6c 22 3a ef 33 31  2c 32 2c 31 32 3a f1 22  |vel":.31,2,12:."|
000014a0  66 6f 72 20 74 68 65 20  62 61 74 74 6c 65 22 3a  |for the battle":|
000014b0  ef 31 37 2c 32 2c 33 31  2c 32 2c 31 35 3a f1 22  |.17,2,31,2,15:."|
000014c0  4c 65 76 65 6c 20 31 20  3d 20 65 61 73 79 22 3a  |Level 1 = easy":|
000014d0  ef 33 31 2c 32 2c 31 37  3a f1 22 4c 65 76 65 6c  |.31,2,17:."Level|
000014e0  20 37 20 3d 20 68 61 72  64 22 3a f5 4c 25 3d a5  | 7 = hard":.L%=.|
000014f0  3a 4c 25 3d 4c 25 2d 34  38 3a fd 4c 25 3e 30 80  |:L%=L%-48:.L%>0.|
00001500  4c 25 3c 38 3a db 0d 06  a4 6f ef 31 37 2c 31 2c  |L%<8:....o.17,1,|
00001510  33 31 2c 33 2c 31 30 3a  f1 22 44 6f 20 79 6f 75  |31,3,10:."Do you|
00001520  20 77 61 6e 74 3a 2d 22  3a ef 31 37 2c 32 2c 33  | want:-":.17,2,3|
00001530  31 2c 32 2c 31 33 3a f1  22 31 2e 20 74 68 65 20  |1,2,13:."1. the |
00001540  73 6f 75 6e 64 20 6f 6e  22 3a ef 33 31 2c 32 2c  |sound on":.31,2,|
00001550  31 35 3a f1 22 32 2e 20  61 20 71 75 69 65 74 20  |15:."2. a quiet |
00001560  67 61 6d 65 20 3f 22 3a  41 24 3d be 3a e7 41 24  |game ?":A$=.:.A$|
00001570  3d 22 31 22 e1 0d 06 ae  0c 2a 46 58 32 31 30 2c  |="1".....*FX210,|
00001580  31 0d 06 b8 05 e1 0d 06  c2 51 dd f2 4b 3a ef 31  |1........Q..K:.1|
00001590  37 2c 31 33 30 3a f2 70  28 32 39 2c 31 2c 22 20  |7,130:.p(29,1," |
000015a0  20 20 20 50 72 65 73 73  20 61 20 6b 65 79 20 20  |   Press a key  |
000015b0  20 20 20 22 29 3a 6b 25  3d a5 3a ef 31 37 2c 31  |   "):k%=.:.17,1|
000015c0  32 38 3a e3 69 25 3d 32  37 b8 32 39 3a f2 6c 28  |28:.i%=27.29:.l(|
000015d0  69 25 29 3a ed 3a e1 0d  06 cc 18 dd f2 6c 28 69  |i%):.:.......l(i|
000015e0  25 29 3a f1 8a 30 2c 69  25 29 89 32 30 3a e1 0d  |%):..0,i%).20:..|
000015f0  06 d6 e1 dd f2 4d 28 7a  25 2c 76 25 29 3a ef 37  |.....M(z%,v%):.7|
00001600  2c 37 3a ef 31 37 2c 66  25 28 61 25 28 7a 25 2c  |,7:.17,f%(a%(z%,|
00001610  31 29 2c 61 25 28 7a 25  2c 32 29 29 2c 31 37 2c  |1),a%(z%,2)),17,|
00001620  31 33 30 2c 33 31 2c 61  25 28 7a 25 2c 31 29 2c  |130,31,a%(z%,1),|
00001630  61 25 28 7a 25 2c 32 29  2c 63 25 28 61 25 28 7a  |a%(z%,2),c%(a%(z|
00001640  25 2c 31 29 2c 61 25 28  7a 25 2c 32 29 29 3a 76  |%,1),a%(z%,2)):v|
00001650  25 28 61 25 28 7a 25 2c  31 29 2c 61 25 28 7a 25  |%(a%(z%,1),a%(z%|
00001660  2c 32 29 29 3d 30 3a 61  25 28 7a 25 2c 31 29 3d  |,2))=0:a%(z%,1)=|
00001670  58 25 3a 61 25 28 7a 25  2c 32 29 3d 59 25 3a 76  |X%:a%(z%,2)=Y%:v|
00001680  25 28 58 25 2c 59 25 29  3d 76 25 3a ef 31 37 2c  |%(X%,Y%)=v%:.17,|
00001690  61 25 28 7a 25 2c 34 29  2c 31 37 2c 61 25 28 7a  |a%(z%,4),17,a%(z|
000016a0  25 2c 35 29 2c 33 31 2c  61 25 28 7a 25 2c 31 29  |%,5),31,a%(z%,1)|
000016b0  2c 61 25 28 7a 25 2c 32  29 2c 61 25 28 7a 25 2c  |,a%(z%,2),a%(z%,|
000016c0  33 29 2c 31 37 2c 32 2c  31 37 2c 31 32 38 3a e1  |3),17,2,17,128:.|
000016d0  0d 06 e0 d1 dd f2 49 3a  ef 31 32 2c 31 37 2c 32  |......I:.12,17,2|
000016e0  3a f1 8a 31 2c 31 34 29  22 2a 2a 20 50 4c 45 41  |:..1,14)"** PLEA|
000016f0  53 45 20 57 41 49 54 20  2a 2a 22 3a 4e 25 3d 32  |SE WAIT **":N%=2|
00001700  37 2b 4c 25 3a 41 25 3d  37 3a 42 25 3d 38 3a 48  |7+L%:A%=7:B%=8:H|
00001710  25 3d 35 30 30 2b b3 28  33 30 30 29 3a 4b 25 3d  |%=500+.(300):K%=|
00001720  38 30 2b b3 28 35 30 29  3a 47 25 3d 32 30 30 30  |80+.(50):G%=2000|
00001730  3a 54 25 3d 31 3a 56 25  3d 31 3a 5a 25 3d 31 3a  |:T%=1:V%=1:Z%=1:|
00001740  45 25 3d 30 3a 46 25 3d  30 3a 43 25 3d 32 32 35  |E%=0:F%=0:C%=225|
00001750  30 30 3a 44 25 3d 32 34  30 30 30 2b 28 4c 25 2d  |00:D%=24000+(L%-|
00001760  31 29 2a 31 30 30 30 3a  de 63 25 28 31 39 2c 32  |1)*1000:.c%(19,2|
00001770  33 29 2c 66 25 28 31 39  2c 32 33 29 2c 76 25 28  |3),f%(19,23),v%(|
00001780  31 39 2c 32 33 29 2c 61  25 28 4e 25 2c 38 29 3a  |19,23),a%(N%,8):|
00001790  e3 58 25 3d 30 b8 31 39  3a e3 59 25 3d 31 b8 32  |.X%=0.19:.Y%=1.2|
000017a0  33 0d 06 ea 31 63 25 28  58 25 2c 59 25 29 3d 32  |3...1c%(X%,Y%)=2|
000017b0  32 34 3a 66 25 28 58 25  2c 59 25 29 3d 32 3a 76  |24:f%(X%,Y%)=2:v|
000017c0  25 28 58 25 2c 59 25 29  3d 30 3a ed 2c 3a 62 25  |%(X%,Y%)=0:.,:b%|
000017d0  3d 31 0d 06 f4 3c 58 25  3d b3 28 31 39 29 3a 59  |=1...<X%=.(19):Y|
000017e0  25 3d b3 28 31 30 2b 4c  25 29 3a 63 25 28 58 25  |%=.(10+L%):c%(X%|
000017f0  2c 59 25 29 3d 33 32 3a  62 25 3d 62 25 2b 31 3a  |,Y%)=32:b%=b%+1:|
00001800  e7 62 25 3c 31 30 2a 4c  25 8c 8d 64 74 46 0d 06  |.b%<10*L%..dtF..|
00001810  fe b3 e3 6b 25 3d 47 25  b8 47 25 2b 31 34 30 88  |...k%=G%.G%+140.|
00001820  32 30 3a f7 6b 25 3a f3  63 25 2c 66 25 2c 61 25  |20:.k%:.c%,f%,a%|
00001830  2c 76 25 3a f7 6b 25 2b  31 30 3a e3 6c 25 3d 31  |,v%:.k%+10:.l%=1|
00001840  b8 61 25 3a f3 5f 25 2c  6d 25 2c 60 25 2c 6e 25  |.a%:._%,m%,`%,n%|
00001850  3a e3 58 25 3d 5f 25 b8  6d 25 3a e3 59 25 3d 60  |:.X%=_%.m%:.Y%=`|
00001860  25 b8 6e 25 3a 63 25 28  58 25 2c 59 25 29 3d 63  |%.n%:c%(X%,Y%)=c|
00001870  25 3a 66 25 28 58 25 2c  59 25 29 3d 66 25 3a 76  |%:f%(X%,Y%)=f%:v|
00001880  25 28 58 25 2c 59 25 29  3d 76 25 3a ed 2c 2c 2c  |%(X%,Y%)=v%:.,,,|
00001890  3a ef 31 37 2c 31 32 38  3a db 3a e3 59 25 3d 31  |:.17,128:.:.Y%=1|
000018a0  b8 32 33 3a e3 58 25 3d  30 b8 31 39 3a ef 31 37  |.23:.X%=0.19:.17|
000018b0  2c 66 25 28 58 25 2c 59  25 29 2c 31 37 2c 31 33  |,f%(X%,Y%),17,13|
000018c0  30 0d 07 08 af ef 33 31  2c 58 25 2c 59 25 2c 63  |0.....31,X%,Y%,c|
000018d0  25 28 58 25 2c 59 25 29  3a ed 2c 3a ef 31 37 2c  |%(X%,Y%):.,:.17,|
000018e0  31 32 39 2c 31 37 2c 30  2c 33 31 2c 30 2c 33 2c  |129,17,0,31,0,3,|
000018f0  32 32 35 3a f7 47 25 2b  31 36 30 3a e3 58 25 3d  |225:.G%+160:.X%=|
00001900  31 b8 4e 25 3a e3 59 25  3d 31 b8 32 3a f3 61 25  |1.N%:.Y%=1.2:.a%|
00001910  28 58 25 2c 59 25 29 3a  ed 3a ed 3a f2 61 28 30  |(X%,Y%):.:.:.a(0|
00001920  31 2c 30 34 2c 47 25 2b  32 35 30 29 3a f2 61 28  |1,04,G%+250):.a(|
00001930  30 35 2c 30 37 2c 47 25  2b 32 36 30 29 3a f2 61  |05,07,G%+260):.a|
00001940  28 30 38 2c 31 32 2c 47  25 2b 32 37 30 29 3a f2  |(08,12,G%+270):.|
00001950  61 28 31 33 2c 31 33 2c  47 25 2b 32 38 30 29 3a  |a(13,13,G%+280):|
00001960  f2 61 28 31 34 2c 31 34  2c 47 25 2b 32 39 30 29  |.a(14,14,G%+290)|
00001970  0d 07 12 bc f2 61 28 31  35 2c 31 36 2c 47 25 2b  |.....a(15,16,G%+|
00001980  33 33 30 29 3a f2 61 28  31 37 2c 31 38 2c 47 25  |330):.a(17,18,G%|
00001990  2b 33 35 30 29 3a f2 61  28 31 39 2c 31 39 2c 47  |+350):.a(19,19,G|
000019a0  25 2b 33 34 30 29 3a f2  61 28 32 30 2c 32 32 2c  |%+340):.a(20,22,|
000019b0  47 25 2b 33 30 30 29 3a  f2 61 28 32 33 2c 32 35  |G%+300):.a(23,25|
000019c0  2c 47 25 2b 33 32 30 29  3a f2 61 28 32 36 2c 32  |,G%+320):.a(26,2|
000019d0  37 2c 47 25 2b 33 31 30  29 3a f2 61 28 32 38 2c  |7,G%+310):.a(28,|
000019e0  4e 25 2c 47 25 2b 33 36  30 29 3a e3 6b 25 3d 31  |N%,G%+360):.k%=1|
000019f0  b8 4e 25 3a ef 31 37 2c  61 25 28 6b 25 2c 34 29  |.N%:.17,a%(k%,4)|
00001a00  2c 31 37 2c 61 25 28 6b  25 2c 35 29 2c 33 31 2c  |,17,a%(k%,5),31,|
00001a10  61 25 28 6b 25 2c 31 29  2c 61 25 28 6b 25 2c 32  |a%(k%,1),a%(k%,2|
00001a20  29 2c 61 25 28 6b 25 2c  33 29 3a ed 0d 07 1c 4e  |),a%(k%,3):....N|
00001a30  e3 6b 25 3d 31 b8 31 33  3a 76 25 28 61 25 28 6b  |.k%=1.13:v%(a%(k|
00001a40  25 2c 31 29 2c 61 25 28  6b 25 2c 32 29 29 3d 41  |%,1),a%(k%,2))=A|
00001a50  25 3a ed 3a e3 6b 25 3d  31 34 b8 4e 25 3a 76 25  |%:.:.k%=14.N%:v%|
00001a60  28 61 25 28 6b 25 2c 31  29 2c 61 25 28 6b 25 2c  |(a%(k%,1),a%(k%,|
00001a70  32 29 29 3d 42 25 3a ed  3a e1 0d 07 26 4f dd f2  |2))=B%:.:...&O..|
00001a80  4a 28 49 25 2c 78 25 2c  79 25 29 3a 61 25 28 49  |J(I%,x%,y%):a%(I|
00001a90  25 2c 36 29 3d 61 25 28  49 25 2c 36 29 2b 31 35  |%,6)=a%(I%,6)+15|
00001aa0  30 30 3a 61 25 28 49 25  2c 34 29 3d 33 3a 63 25  |00:a%(I%,4)=3:c%|
00001ab0  28 78 25 2c 79 25 29 3d  32 32 34 3a 66 25 28 78  |(x%,y%)=224:f%(x|
00001ac0  25 2c 79 25 29 3d 32 3a  e1 0d 07 30 27 dd f2 70  |%,y%)=2:...0'..p|
00001ad0  28 6c 25 2c 63 25 2c 6d  24 29 3a ef 31 37 2c 63  |(l%,c%,m$):.17,c|
00001ae0  25 2c 33 31 2c 30 2c 6c  25 3a f1 3b 6d 24 3a e1  |%,31,0,l%:.;m$:.|
00001af0  0d 07 3a 38 dd f2 44 3a  e2 31 2c 31 2c 30 2c 30  |..:8..D:.1,1,0,0|
00001b00  2c 30 2c 30 2c 30 2c 30  2c 31 32 36 2c 2d 31 2c  |,0,0,0,0,126,-1,|
00001b10  30 2c 2d 33 2c 31 32 36  2c 31 32 36 3a d4 30 2c  |0,-3,126,126:.0,|
00001b20  31 2c 36 32 2c 34 3a e1  0d 07 44 3a dd f2 50 3a  |1,62,4:...D:..P:|
00001b30  e2 31 2c 31 32 39 2c 30  2c 2d 31 30 2c 2d 31 2c  |.1,129,0,-10,-1,|
00001b40  31 2c 30 2c 32 2c 36 2c  2d 31 2c 30 2c 2d 31 2c  |1,0,2,6,-1,0,-1,|
00001b50  31 32 36 2c 37 34 3a d4  30 2c 31 2c 37 2c 31 34  |126,74:.0,1,7,14|
00001b60  3a e1 0d 07 4e a1 dd f2  53 3a ef 31 37 2c 31 2c  |:...N...S:.17,1,|
00001b70  31 37 2c 31 33 31 2c 33  31 2c 30 2c 30 3a f1 22  |17,131,31,0,0:."|
00001b80  58 58 58 22 3b 89 37 3a  fb 32 3a f1 8a 34 2c 30  |XXX";.7:.2:..4,0|
00001b90  29 3b 43 25 3b 3a fb 31  3a f1 8a 31 30 2c 30 29  |);C%;:.1:..10,0)|
00001ba0  22 41 58 49 53 22 3b 89  36 3a fb 32 3a f1 8a 31  |"AXIS";.6:.2:..1|
00001bb0  35 2c 30 29 3b 44 25 3a  fb 31 3a f1 8a 30 2c 32  |5,0);D%:.1:..0,2|
00001bc0  34 29 22 58 58 58 22 3b  89 37 3a fb 32 3a f1 8a  |4)"XXX";.7:.2:..|
00001bd0  34 2c 32 34 29 3b 45 25  3a fb 31 3a f1 8a 31 30  |4,24);E%:.1:..10|
00001be0  2c 32 34 29 22 41 58 49  53 22 3b 89 36 3a fb 32  |,24)"AXIS";.6:.2|
00001bf0  3a f1 8a 31 35 2c 32 34  29 3b 46 25 3a fb 31 32  |:..15,24);F%:.12|
00001c00  38 3a e1 0d 07 58 1b dd  f2 55 3a 21 26 46 45 30  |8:...X...U:!&FE0|
00001c10  30 3d 26 31 30 32 30 30  41 3a f2 42 3a e1 0d 07  |0=&10200A:.B:...|
00001c20  62 3c dd f2 56 3a ef 33  31 2c 61 25 28 49 25 2c  |b<..V:.31,a%(I%,|
00001c30  31 29 2c 61 25 28 49 25  2c 32 29 2c 32 33 2c 30  |1),a%(I%,2),23,0|
00001c40  2c 31 30 2c 39 36 3b 30  2c 30 3b 32 33 2c 31 2c  |,10,96;0,0;23,1,|
00001c50  31 3b 30 3b 30 3b 30 3b  3a e1 0d 07 6c 1b dd f2  |1;0;0;0;:...l...|
00001c60  57 28 65 25 29 3a e3 69  3d 31 b8 33 30 30 2a 65  |W(e%):.i=1.300*e|
00001c70  25 3a ed 3a e1 0d 07 76  21 dd f2 58 3a f2 55 3a  |%:.:...v!..X:.U:|
00001c80  ef 31 37 2c 31 32 38 2c  33 31 2c 30 2c 32 36 3a  |.17,128,31,0,26:|
00001c90  f1 89 38 30 3a e1 0d 07  80 7a dd f2 46 3a f2 58  |..80:....z..F:.X|
00001ca0  3a e7 61 25 28 31 33 2c  36 29 3d 30 f2 70 28 32  |:.a%(13,6)=0.p(2|
00001cb0  35 2c 32 2c 22 43 6f 72  70 73 20 48 51 20 68 61  |5,2,"Corps HQ ha|
00001cc0  73 20 63 65 61 73 65 64  20 22 29 3a f2 70 28 32  |s ceased "):.p(2|
00001cd0  36 2c 32 2c 22 74 6f 20  65 78 69 73 74 20 77 68  |6,2,"to exist wh|
00001ce0  69 63 68 20 6d 65 61 6e  73 22 29 3a f2 70 28 32  |ich means"):.p(2|
00001cf0  37 2c 32 2c 22 79 6f 75  20 6c 6f 73 65 20 74 68  |7,2,"you lose th|
00001d00  65 20 62 61 74 74 6c 65  2e 22 29 3a f2 45 3a e1  |e battle."):.E:.|
00001d10  0d 07 8a 71 e7 45 25 3e  31 38 30 30 30 f2 70 28  |...q.E%>18000.p(|
00001d20  32 35 2c 32 2c 22 59 6f  75 72 20 63 61 73 75 61  |25,2,"Your casua|
00001d30  6c 74 69 65 73 20 68 61  76 65 22 29 3a f2 70 28  |lties have"):.p(|
00001d40  32 36 2c 32 2c 22 62 65  63 6f 6d 65 20 75 6e 61  |26,2,"become una|
00001d50  63 63 65 70 74 61 62 6c  65 2e 22 29 3a f2 70 28  |cceptable."):.p(|
00001d60  32 37 2c 32 2c 22 59 6f  75 20 6c 6f 73 65 20 74  |27,2,"You lose t|
00001d70  68 65 20 62 61 74 74 6c  65 2e 22 29 3a f2 45 3a  |he battle."):.E:|
00001d80  e1 0d 07 94 73 e7 46 25  2d 45 25 3e 3d 39 30 30  |....s.F%-E%>=900|
00001d90  30 f2 70 28 32 35 2c 32  2c 22 54 68 65 20 65 6e  |0.p(25,2,"The en|
00001da0  65 6d 79 27 73 20 63 61  73 75 61 6c 74 79 22 29  |emy's casualty")|
00001db0  3a f2 70 28 32 36 2c 32  2c 22 6c 69 73 74 20 69  |:.p(26,2,"list i|
00001dc0  73 20 74 6f 6f 20 68 69  67 68 20 61 6e 64 22 29  |s too high and")|
00001dd0  3a f2 70 28 32 37 2c 32  2c 22 79 6f 75 20 77 69  |:.p(27,2,"you wi|
00001de0  6e 20 74 68 65 20 62 61  74 74 6c 65 2e 22 29 3a  |n the battle."):|
00001df0  f2 45 3a e1 0d 07 9e 78  e7 43 25 3c 35 30 30 30  |.E:....x.C%<5000|
00001e00  80 44 25 3c 35 30 30 30  f2 70 28 32 35 2c 32 2c  |.D%<5000.p(25,2,|
00001e10  22 54 68 65 20 63 61 73  75 61 6c 74 69 65 73 20  |"The casualties |
00001e20  62 6f 74 68 20 22 29 3a  f2 70 28 32 36 2c 32 2c  |both "):.p(26,2,|
00001e30  22 66 6f 72 63 65 73 20  68 61 76 65 20 73 75 66  |"forces have suf|
00001e40  66 65 72 65 64 22 29 3a  f2 70 28 32 37 2c 32 2c  |fered"):.p(27,2,|
00001e50  22 6c 65 61 64 73 20 74  6f 20 61 20 73 74 61 6c  |"leads to a stal|
00001e60  65 6d 61 74 65 22 29 3a  f2 45 3a e1 0d 07 a8 6e  |emate"):.E:....n|
00001e70  e7 76 25 28 30 2c 33 29  3d 41 25 f2 70 28 32 35  |.v%(0,3)=A%.p(25|
00001e80  2c 32 2c 22 59 6f 75 20  72 65 6c 69 65 76 65 20  |,2,"You relieve |
00001e90  54 6f 62 72 75 6b 20 22  29 3a f2 70 28 32 36 2c  |Tobruk "):.p(26,|
00001ea0  32 2c 22 61 6e 64 20 63  6f 6d 70 65 6c 20 74 68  |2,"and compel th|
00001eb0  65 20 41 78 69 73 22 29  3a f2 70 28 32 37 2c 32  |e Axis"):.p(27,2|
00001ec0  2c 22 61 72 6d 79 20 74  6f 20 72 65 74 72 65 61  |,"army to retrea|
00001ed0  74 2e 20 22 29 3a f2 45  3a e1 0d 07 b2 05 e1 0d  |t. "):.E:.......|
00001ee0  07 bc 4d dd f2 45 3a f2  70 28 32 38 2c 31 2c 22  |..M..E:.p(28,1,"|
00001ef0  20 50 72 65 73 73 20 61  20 6b 65 79 20 69 66 20  | Press a key if |
00001f00  79 6f 75 22 29 3a f2 70  28 32 39 2c 31 2c 22 20  |you"):.p(29,1," |
00001f10  77 61 6e 74 20 61 6e 6f  74 68 65 72 20 67 61 6d  |want another gam|
00001f20  65 22 29 3a 6b 25 3d a5  3a f9 3a e1 0d 07 c6 16  |e"):k%=.:.:.....|
00001f30  eb 37 3a f6 3a f1 22 20  6c 69 6e 65 20 22 3b 9e  |.7:.:." line ";.|
00001f40  3a e0 0d 07 d0 0e dc 32  32 37 2c 31 2c 39 2c 32  |:......227,1,9,2|
00001f50  0d 07 da 5f dc 34 2c 31  36 2c 34 2c 34 2c 35 2c  |..._.4,16,4,4,5,|
00001f60  31 35 2c 35 2c 35 2c 36  2c 31 34 2c 36 2c 36 2c  |15,5,5,6,14,6,6,|
00001f70  31 38 2c 31 39 2c 31 30  2c 31 30 2c 31 36 2c 31  |18,19,10,10,16,1|
00001f80  39 2c 31 31 2c 31 31 2c  30 2c 32 2c 31 37 2c 31  |9,11,11,0,2,17,1|
00001f90  37 2c 30 2c 34 2c 31 38  2c 31 38 2c 31 2c 35 2c  |7,0,4,18,18,1,5,|
00001fa0  31 39 2c 31 39 2c 32 2c  36 2c 32 30 2c 32 30 0d  |19,19,2,6,20,20.|
00001fb0  07 e4 0f dc 32 32 34 2c  31 2c 31 39 2c 30 0d 07  |....224,1,19,0..|
00001fc0  ee c5 dc 33 2c 31 37 2c  33 2c 33 2c 30 2c 32 2c  |...3,17,3,3,0,2,|
00001fd0  31 36 2c 31 36 2c 33 2c  37 2c 32 31 2c 32 31 2c  |16,16,3,7,21,21,|
00001fe0  32 2c 38 2c 32 32 2c 32  32 2c 30 2c 39 2c 32 33  |2,8,22,22,0,9,23|
00001ff0  2c 32 33 2c 35 2c 31 33  2c 37 2c 37 2c 34 2c 31  |,23,5,13,7,7,4,1|
00002000  32 2c 38 2c 38 2c 32 2c  31 31 2c 39 2c 39 2c 31  |2,8,8,2,11,9,9,1|
00002010  2c 31 30 2c 31 30 2c 31  30 2c 30 2c 39 2c 31 31  |,10,10,10,0,9,11|
00002020  2c 31 31 2c 30 2c 37 2c  31 32 2c 31 32 2c 30 2c  |,11,0,7,12,12,0,|
00002030  35 2c 31 33 2c 31 33 2c  30 2c 33 2c 31 34 2c 31  |5,13,13,0,3,14,1|
00002040  34 2c 30 2c 32 2c 31 35  2c 31 35 2c 31 36 2c 31  |4,0,2,15,15,16,1|
00002050  39 2c 31 32 2c 31 32 2c  31 37 2c 31 39 2c 31 33  |9,12,12,17,19,13|
00002060  2c 31 33 2c 31 38 2c 31  39 2c 31 34 2c 31 34 2c  |,13,18,19,14,14,|
00002070  31 38 2c 31 39 2c 39 2c  39 2c 31 39 2c 31 39 2c  |18,19,9,9,19,19,|
00002080  38 2c 38 0d 07 f8 0e dc  32 32 36 2c 30 2c 34 2c  |8,8.....226,0,4,|
00002090  31 0d 08 02 2c dc 30 2c  32 2c 31 33 2c 31 33 2c  |1...,.0,2,13,13,|
000020a0  32 2c 35 2c 36 2c 36 2c  31 32 2c 31 34 2c 31 32  |2,5,6,6,12,14,12|
000020b0  2c 31 32 2c 35 2c 37 2c  31 36 2c 31 36 0d 08 0c  |,12,5,7,16,16...|
000020c0  0e dc 32 32 35 2c 30 2c  35 2c 30 0d 08 16 32 dc  |..225,0,5,0...2.|
000020d0  30 2c 30 2c 33 2c 33 2c  32 2c 32 2c 31 32 2c 31  |0,0,3,3,2,2,12,1|
000020e0  32 2c 31 39 2c 31 39 2c  34 2c 34 2c 36 2c 36 2c  |2,19,19,4,4,6,6,|
000020f0  39 2c 39 2c 31 31 2c 31  31 2c 35 2c 35 0d 08 20  |9,9,11,11,5,5.. |
00002100  0e dc 32 32 39 2c 30 2c  33 2c 34 0d 08 2a 24 dc  |..229,0,3,4..*$.|
00002110  34 2c 34 2c 31 35 2c 31  35 2c 38 2c 38 2c 31 32  |4,4,15,15,8,8,12|
00002120  2c 31 32 2c 31 32 2c 31  32 2c 31 31 2c 31 31 0d  |,12,12,12,11,11.|
00002130  08 34 0e dc 32 33 30 2c  31 2c 33 2c 35 0d 08 3e  |.4..230,1,3,5..>|
00002140  22 dc 30 2c 30 2c 31 31  2c 31 31 2c 33 2c 33 2c  |".0,0,11,11,3,3,|
00002150  31 37 2c 31 37 2c 35 2c  35 2c 32 30 2c 32 30 0d  |17,17,5,5,20,20.|
00002160  08 48 0e dc 32 33 34 2c  30 2c 36 2c 39 0d 08 52  |.H..234,0,6,9..R|
00002170  3e dc 30 2c 30 2c 34 2c  36 2c 31 2c 31 2c 36 2c  |>.0,0,4,6,1,1,6,|
00002180  36 2c 31 39 2c 31 39 2c  36 2c 37 2c 33 2c 34 2c  |6,19,19,6,7,3,4,|
00002190  31 36 2c 31 36 2c 31 35  2c 31 35 2c 31 31 2c 31  |16,16,15,15,11,1|
000021a0  31 2c 38 2c 38 2c 31 33  2c 31 33 0d 08 5c 0e dc  |1,8,8,13,13..\..|
000021b0  32 33 35 2c 33 2c 32 2c  39 0d 08 66 17 dc 30 2c  |235,3,2,9..f..0,|
000021c0  31 39 2c 31 2c 32 2c 31  39 2c 31 39 2c 32 2c 33  |19,1,2,19,19,2,3|
000021d0  0d 08 70 2b dc b3 28 34  29 2c 31 38 2c b3 28 35  |..p+..(4),18,.(5|
000021e0  29 2b 34 2c 31 38 2c b3  28 35 29 2b 39 2c 31 38  |)+4,18,.(5)+9,18|
000021f0  2c b3 28 34 29 2b 31 35  2c 31 38 0d 08 7a 21 dc  |,.(4)+15,18..z!.|
00002200  b3 28 37 29 2c 31 39 2c  b3 28 34 29 2b 37 2c 31  |.(7),19,.(4)+7,1|
00002210  39 2c b3 28 35 29 2b 31  32 2c 31 39 0d 08 84 35  |9,.(5)+12,19...5|
00002220  dc b3 28 33 29 2c 32 30  2c b3 28 33 29 2b 33 2c  |..(3),20,.(3)+3,|
00002230  32 30 2c b3 28 33 29 2b  36 2c 32 30 2c b3 28 33  |20,.(3)+6,20,.(3|
00002240  29 2b 39 2c 32 30 2c b3  28 36 29 2b 31 32 2c 32  |)+9,20,.(6)+12,2|
00002250  30 0d 08 8e 0d dc b3 28  31 39 29 2c 32 31 0d 08  |0......(19),21..|
00002260  98 08 dc 31 2c 33 0d 08  a2 1d dc 31 33 2c 37 2c  |...1,3.....13,7,|
00002270  31 36 2c 37 2c 31 38 2c  37 2c 31 35 2c 36 2c 31  |16,7,18,7,15,6,1|
00002280  37 2c 36 0d 08 ac 11 dc  33 2c 38 2c 37 2c 38 2c  |7,6.....3,8,7,8,|
00002290  31 31 2c 38 0d 08 b6 1a  dc 31 30 2c 37 2c 35 2c  |11,8.....10,7,5,|
000022a0  35 2c 39 2c 36 2c 36 2c  37 2c 31 31 2c 35 0d 08  |5,9,6,6,7,11,5..|
000022b0  c0 21 dc 33 2c 36 2c 32  2c 34 2c 35 2c 39 2c 31  |.!.3,6,2,4,5,9,1|
000022c0  30 2c 39 2c 37 2c 34 2c  38 2c 35 2c 34 2c 33 0d  |0,9,7,4,8,5,4,3.|
000022d0  08 ca 17 dc 32 34 31 2c  33 2c 31 32 39 2c 31 35  |....241,3,129,15|
000022e0  30 30 2c 33 2c 32 0d 08  d4 17 dc 32 34 33 2c 33  |00,3,2.....243,3|
000022f0  2c 31 32 39 2c 31 35 30  30 2c 34 2c 31 0d 08 de  |,129,1500,4,1...|
00002300  17 dc 32 34 32 2c 33 2c  31 32 39 2c 33 30 30 30  |..242,3,129,3000|
00002310  2c 32 2c 31 0d 08 e8 17  dc 32 34 30 2c 33 2c 31  |,2,1.....240,3,1|
00002320  32 39 2c 30 37 35 30 2c  32 2c 32 0d 08 f2 17 dc  |29,0750,2,2.....|
00002330  32 34 32 2c 31 2c 31 32  38 2c 31 35 30 30 2c 33  |242,1,128,1500,3|
00002340  2c 30 0d 08 fc 17 dc 32  34 31 2c 31 2c 31 32 38  |,0.....241,1,128|
00002350  2c 31 33 30 30 2c 33 2c  32 0d 09 06 17 dc 32 34  |,1300,3,2.....24|
00002360  33 2c 31 2c 31 32 38 2c  31 30 30 30 2c 34 2c 31  |3,1,128,1000,4,1|
00002370  0d 09 10 17 dc 32 34 32  2c 31 2c 31 32 38 2c 33  |.....242,1,128,3|
00002380  30 30 30 2c 32 2c 31 0d  09 1a 17 dc 32 34 31 2c  |000,2,1.....241,|
00002390  31 2c 31 33 31 2c 31 30  30 30 2c 33 2c 32 0d 09  |1,131,1000,3,2..|
000023a0  24 17 dc 32 34 33 2c 31  2c 31 33 31 2c 31 30 30  |$..243,1,131,100|
000023b0  30 2c 34 2c 31 0d 09 2e  17 dc 32 34 32 2c 31 2c  |0,4,1.....242,1,|
000023c0  31 33 31 2c 32 35 30 30  2c 32 2c 31 0d 09 38 17  |131,2500,2,1..8.|
000023d0  dc 32 34 34 2c 31 2c 31  32 38 2c 31 30 30 30 2c  |.244,1,128,1000,|
000023e0  32 2c 31 0d ff                                    |2,1..|
000023e5
Games/TOBGAME.m0
Games/TOBGAME.m1
Games/TOBGAME.m2
Games/TOBGAME.m4
Games/TOBGAME.m5