Home » Archimedes archive » Micro User » MU 1991-03.adf » PD-Stuff » Misc/Games/!Chain/!RunImage
Misc/Games/!Chain/!RunImage
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 » Archimedes archive » Micro User » MU 1991-03.adf » PD-Stuff |
Filename: | Misc/Games/!Chain/!RunImage |
Read OK: | ✔ |
File size: | 36B3 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
� > <Chain$Dir>.!RunImage � Chain Reaction � by Steve Bosman (� Version 0.01 2� (c) March 1990 <+� Add extra computer players at the end F;� The following code may only be modified if I am told. G8� If you do manage to write a better computer player H1� please send me a copy of the modified code. P6� Under no circumstances may it be sold for profit Q%� (either modified or unmodified) d� n#� see the !readme file for more x� �� 15 � � 8,0 �Ƞ 2 �$*CHANNELVOICE 2 Percussion-Noise � �init1 ��DrawBoard ��DrawInitMenu ��PlaceSprite("LOGO",8,6) �!�PlaceSprite("vlargebar",8,0) �ȗ � � �init2 � �start �� � � exit � �Main � exit ȗ � "� ,� 6: @� �start J�WritePlay T�WriteSound ^ �ammounts h� lp=1 � NumPlayers r �PlayerType(lp) |� �� lp=1 � 4 � ammount(lp)=0 �� ��4 �leaveloop=0 � exit=� �start=� �� � ȗ mx,my,mb �) � mb>0 � mx>1024 � my>512 � my<768 � � ypos=�(my/64)-7 � Ȏ ypos � � � 1 : exit=� � 2 : start=� � 3 sound=� sound & �WriteSound 0 � 4 : NumPlayers+=1 D& � NumPlayers>4 � NumPlayers=2 N �WritePlay X �ammounts b � lp=1 � NumPlayers l �PlayerType(lp) v � � � � � L=1 � 10000 � � � � �9 � mb>0 � mx>1088 � my<64*8 � my>64*(8-NumPlayers) � � ypos=�(my/64)-4 � xpos=�(mx/64)-16 � Ȏ xpos � � � 1 �3 PlayerType(4-ypos,0)=1-PlayerType(4-ypos,0) � � 2 �" � PlayerType(4-ypos,0)=1 � � PlayerType(4-ypos,1)+=1 : � PlayerType(4-ypos,1)>5 � PlayerType(4-ypos,1)=0 � � 3 T � PlayerType(4-ypos,1)=2 � PlayerType(4-ypos,1)=4 � PlayerType(4-ypos,1)=5 � * Ȏ mb � 4 � 4 >! PlayerType(4-ypos,2)+=1 H< � PlayerType(4-ypos,2)>99 � PlayerType(4-ypos,2)=0 R � 2 \ PlayerType(4-ypos,2)=0 f � 1 p! PlayerType(4-ypos,2)-=1 z< � PlayerType(4-ypos,2)<0 � PlayerType(4-ypos,2)=99 � � � � � � � �PlayerType(4-ypos) � � L=1 � 5000 � � � � �� start � exit � � start � � �ammounts �" �PlaceSprite("longbar",8,4.5) � �5 � � 1088,618 �"Quit Game" �4 % �PlaceSprite("shortblank",8,5.5) $" �PlaceSprite("longblank",8,4) ." �PlaceSprite("vlargebar",8,0) 8 �5 B � 1120,216 L �"TURN" V �4 `� j� t: ~� �WriteSound �#�PlaceSprite("vshortbar",9.5,5) ��5 �� 1240,682 �� sound � �"Y" � �"N" ��4 �� �: ���WritePlay �%�PlaceSprite("vshortbar",9.5,5.5) ��5 �� 1240,746 ��"";NumPlayers �4 � : � �ammounts (lp=4-NumPlayers 2ȕ lp>0 <- �PlaceSprite("vshortbar",8,1.5+0.5*(lp)) F/ �PlaceSprite("vshortbar",8.5,1.5+0.5*(lp)) P- �PlaceSprite("vshortbar",9,1.5+0.5*(lp)) Z/ �PlaceSprite("vshortbar",9.5,1.5+0.5*(lp)) d lp-=1 n� x� lp=1 � NumPlayers �amm=ammount(lp) �amm$=�(amm) �� �(amm$)=1 � amm$="0"+amm$ �1�PlaceSprite("sm"+player$(lp),8,2+0.5*(4-lp)) ��5 �� 1040,(4-lp)*64+296 � � amm$ ��4 �� �� �: �� �PlayerType(pl) �3�PlaceSprite("sm"+player$(pl),8.5,2+0.5*(4-pl)) � PlayerType(pl,0)=1 � 2 �PlaceSprite("sm"+player$(pl),9,2+0.5*(4-pl)) E � PlayerType(pl,1)=2 � PlayerType(pl,1)=4 � PlayerType(pl,1)=5 � "5 �PlaceSprite("sm"+player$(pl),9.5,2+0.5*(4-pl)) , � 60 �PlaceSprite("vshortbar",9.5,2+0.5*(4-pl)) @ � J� T- �PlaceSprite("vshortbar",9,2+0.5*(4-pl)) ^/ �PlaceSprite("vshortbar",9.5,2+0.5*(4-pl)) h� r�5 |� 1112,64*(4-pl)+296 �� PlayerType(pl,0)=0 � � �"H" �� � �"A" � � 1174,64*(4-pl)+296 � � �(PlayerType(pl,1)) �E � PlayerType(pl,1)=2 � PlayerType(pl,1)=4 � PlayerType(pl,1)=5 � � � 1238,64*(4-pl)+296 � � �(PlayerType(pl,2)) � � �� ��4 �� : � �init1 �LoadSprites &� owner(7,7) 0� strength(7,7) :� criticals(7,7) D� PlayerType(4,2) N� player$(4) X� ammount(4) b� number$(7) l� TempOwner(7,7) v� TempStrength(7,7) �� TempAmmount(4) �� Diff(7,7) �player$(0)="blank" �player$(1)="red" �player$(2)="green" �player$(3)="blue" �player$(4)="purple" �number$(0)="blank" �number$(1)="one" �number$(2)="two" �number$(3)="three" �number$(4)="four" �number$(5)="five" number$(6)="six" number$(7)="seven" sound=� NumPlayers=2 *� 4: >� �init2 H � x=0 � 7 R � y=0 � 7 \ owner(x,y)=0 f strength(x,y)=0 p criticals(x,y)=0 z � �� �finish=0 �� �: �� �LoadSprites �*SLOAD <Chain$Dir>.Sprites �*SCHOOSE BLANK �� �: �� �DrawBoard � � X=0 � 7 � � Y=0 � 7 � �PlaceSprite("blank",X,Y) � � � $: .� �DrawInitMenu 8�PlaceSprite("longbar",8,4) B!�PlaceSprite("longbar",8,4.5) L �PlaceSprite("shortbar",8,5) V#�PlaceSprite("vshortbar",9.5,5) `"�PlaceSprite("shortbar",8,5.5) j%�PlaceSprite("vshortbar",9.5,5.5) t�5 ~� 1064,744 ��"Players" �� 1080,682 ��"Sound" �� 1072,618 ��"Start Game" �� 1116,554 ��"Exit" �� �: �� �PlaceSprite(sprite$,x,y) �xp=x*128 �yp=y*128 �("SCHOOSE "+sprite$) � &ED,xp,yp � : (� �WriteStrength(x,y) 2value=strength(x,y) <$�PlaceSprite(number$(value),x,y) F� P: Z� �Main d turn=1 nplayer=1 x quit=� �� �# � ammount(player)>0 � turn=1 � �+ �PlaceSprite(player$(player),8.5,.25) � Ȏ PlayerType(player,0) � � � 0 : �Human � � 1 : �Computer � � �! finish=�CheckFinish(player) � � � player+=1 �+ � player>NumPlayers � player=1:turn+=1 �� finish>0 � quit ��FinishGame � : � �CheckFinish(player) "� lp=1 � NumPlayers ,. � (ammount(lp)>0 � lp<>player) � turn=1 � 6 =0 @ � J� T=player ^: h� �pos(ps) = �(ps/128) r: |� �legal(x,y,p) �(� owner(x,y)=player � owner(x,y)=0 � �=1 �� �=0 �: ���FinishGame �!�PlaceSprite("vlargebar",8,0) ��5 �� finish>0 � � � 1096,216 � �"WINNER!" �* �PlaceSprite(player$(finish),8.5,.25) �� � 1088,128 � "No Winner" � &�DrawInitMenu 0 �init2 : �start D� � exit �DrawBoard N� X: b � �AddOneToSquare(xpos,ypos) lstrength(xpos,ypos)+=1 v � owner(xpos,ypos)<>player � � ammount(player)+=1 �8 � owner(xpos,ypos)>0 � ammount(owner(xpos,ypos))-=1 � �ammounts �� �owner(xpos,ypos)=player �+�PlaceSprite(player$(player),xpos,ypos) ��WriteStrength(xpos,ypos) �� �: �"� �CheckIfChainReaction(cx,cy) �!CriticalSize=�critical(cx,cy) �$� strength(cx,cy)>CriticalSize � � �ChainReaction � � : � �critical(cx,cy) *� cx=0 � cx=7 � 4 � cy=0 � cy=7 � > =1 H � R =2 \ � f� p � cy=0 � cy=7 � z =2 � � �� �=3 �: �� �ChainReaction �� � ȗ mx,my,mb �) � mb>0 � mx>1056 � my>512 � my<768 � � ypos=�(my/64)-7 � Ȏ ypos � � � 2 : quit=� � � 3 � sound=� sound �WriteSound � � L=1 � 10000 $ � . � 8 � quit=0 � B NumberOfCriticals=0 L � x=0 � 7 V � y=0 � 7 `# CriticalSize=�critical(x,y) j& � strength(x,y)>CriticalSize � t criticals(x,y)=1 ~& �PlaceSprite("explosion",x,y) � � sound � � � 2,-15,255,10 � � �) � strength(x,y)=CriticalSize+1 � � ammount(owner(x,y))-=1 � � � �ammounts �& strength(x,y)-=CriticalSize+1 � NumberOfCriticals+=1 � � � � � � � x=0 � 7 � y=0 � 7 � criticals(x,y) � �AddOneToBorders(x,y) ( � 2 � < � F � x=0 � 7 P � y=0 � 7 Z � criticals(x,y) � d' � strength(x,y)=0 owner(x,y)=0 n. �PlaceSprite(player$(owner(x,y)),x,y) x1 �PlaceSprite(number$(strength(x,y)),x,y) � criticals(x,y)=0 � � � � � � � � � � NumberOfCriticals=0 � quit �� �: �� �AddOneToBorders(bx,by) �alt=bx-1 �� alt>-1 � � �AddOneToSquare(alt,by) �� alt=bx+1 � alt<8 � �AddOneToSquare(alt,by) "� ,alt=by-1 6� alt>-1 � @ �AddOneToSquare(bx,alt) J� Talt=by+1 ^ � alt<8 � h �AddOneToSquare(bx,alt) r� |� �: �� �Human �TurnTaken=� �� � ȗ mx,my,mb �) � mb>0 � mx>1056 � my>512 � my<768 � � ypos=�(my/64)-7 � Ȏ ypos � � � 2 : quit=� � � 3 � sound=� sound � �WriteSound � � � L=1 � 10000 � � & xpos=�pos(mx) 0 � mb>0 � xpos<8 � : ypos=�pos(my) D$ legal=�legal(xpos,ypos,player) N � legal � X! �AddOneToSquare(xpos,ypos) b' �CheckIfChainReaction(xpos,ypos) l TurnTaken=� v � � � �� TurnTaken � quit �� �: �� �Computer �Ȏ PlayerType(player,1) � � � 0 : �ComputerTotalRandom �! � 1 : �ComputerPartialRandom �3 � 2 : �ComputerMixRandom(PlayerType(player,2)) � � 3 : �ComputerCornerMix(0) ��� 4 : �ComputerCornerMix(PlayerType(player,2)) �2 � 5 : �ComputerMaxGains(PlayerType(player,2)) � : �ComputerCornerMix(0) � � : � �ComputerTotalRandom *� 4 pos=�(64)-1 > xpos=pos � 8 H ypos=pos � 8 R# legal=�legal(xpos,ypos,player) \� legal f�AddOneToSquare(xpos,ypos) p$�CheckIfChainReaction(xpos,ypos) z� �: �� �ComputerPartialRandom �� turn=1 � � �ComputerTotalRandom �� � � � � ammount(player)>2 � � pos=�(ammount(player)-1) � � � pos=ammount(player)-1 � � � legal=� � xpos=0 ypos=0 � * � owner(xpos,ypos)=player � pos=0 � $ legal=� . � 8( � owner(xpos,ypos)=player pos-=1 B xpos+=1 L � xpos=8 � V xpos=0 ` ypos+=1 j � t � ~ � pos=0 � legal � � legal � �AddOneToSquare(xpos,ypos) �% �CheckIfChainReaction(xpos,ypos) �� �� �: �!� �ComputerCornerMix(rToBeat) � Ȏ turn � � � 1 � gone=� � � � x=(�(2)-1)*7 y=(�(2)-1)*7 � owner(x,y)=0 � �AddOneToSquare(x,y) " �CheckIfChainReaction(x,y) ( gone=� 2 � < � gone F � 2 P xpos=-1 Z ypos=-1 d gone=� n � x � x=0 � 7 � 7 � � y=0 � 7 � 7 �( � owner(x,y)=player � px=x:py=y � � � � � legal=� � � � � px=7 � � � py=7 � � � owner(7,6)=0 � � xpos=7 � ypos=6 � � � � owner(6,7)=0 � xpos=6 ypos=7 � " � , � 6 � owner(7,1)=0 � @ xpos=7 J ypos=1 T � ^ � owner(6,0)=0 � h xpos=6 r ypos=0 | � � � � � � � � � py=7 � � � owner(0,6)=0 � � xpos=0 � ypos=6 � � � � owner(1,7)=0 � � xpos=1 � ypos=7 � � � � � � owner(0,1)=0 � xpos=0 & ypos=1 0 � : � owner(1,0)=0 � D xpos=1 N ypos=0 X � b � l � v � � � xpos>-1 � ypos>-1 � �' legal=�legal(xpos,ypos,player) � � �$ � legal � (xpos=-1 � ypos=-1) � � xpos>-1 � ypos>-1 � �" �AddOneToSquare(xpos,ypos) �( �CheckIfChainReaction(xpos,ypos) � gone=� � � �# �ComputerMixRandom(rToBeat) � gone=� � � � � gone ! �ComputerMixRandom(rToBeat) � � *: 4!� �ComputerMixRandom(rToBeat) > Ȏ turn � H � 1 : �ComputerTotalRandom R \ rnd=�(100)-1 f � rnd>=rToBeat � p �ComputerPartialRandom z � � �ComputerTotalRandom � � �� �� �: �*� �ComputerCheckIfChainReaction(cx,cy) �!CriticalSize=�critical(cx,cy) �(� TempStrength(cx,cy)>CriticalSize � � �ComputerChainReaction �� �� �: �� �ComputerChainReaction � NumberOfCriticals=0 � x=0 � 7 $ � y=0 � 7 .# CriticalSize=�critical(x,y) 8* � TempStrength(x,y)>CriticalSize � B& �ComputerAddOneToBorders(x,y) L- � TempStrength(x,y)=CriticalSize+1 � V( TempAmmount(TempOwner(x,y))-=1 ` � j* TempStrength(x,y)-=CriticalSize+1 t NumberOfCriticals+=1 ~ � � � � � � leave=� � � lp=1 � NumPlayers � � lp<>TempPlayer � �# � TempAmmount(lp)>0 leave=� � � � � �!� NumberOfCriticals=0 � leave �� �: �%� �ComputerAddOneToBorders(bx,by) alt=bx-1 � alt>-1 � $ �ComputerAddOneToSquare(alt,by) � (alt=bx+1 2 � alt<8 � <$ �ComputerAddOneToSquare(alt,by) F� Palt=by-1 Z� alt>-1 � d$ �ComputerAddOneToSquare(bx,alt) n� xalt=by+1 � � alt<8 � �$ �ComputerAddOneToSquare(bx,alt) �� �� �: �$� �ComputerAddOneToSquare(xp,yp) �TempStrength(xp,yp)+=1 �$� TempOwner(xp,yp)<>TempPlayer � � TempAmmount(TempPlayer)+=1 �< � TempOwner(xp,yp)>0 � TempAmmount(TempOwner(xp,yp))-=1 �� �TempOwner(xp,yp)=TempPlayer �� : � �ComputerMaxGains(rToBeat) � turn<3 � " �ComputerCornerMix(0) ,� 6 rnd=�(100)-1 @ Diff()=0 J md=1000 T fd=� ^ � tx=0 � 7 h � ty=0 � 7 r8 � (owner(tx,ty)=0 � owner(tx,ty)=player) � � fd � | TempOwner()=owner() �! TempStrength()=strength() � TempAmmount()=ammount() � TempPlayer=player �& �ComputerAddOneToSquare(tx,ty) �, �ComputerCheckIfChainReaction(tx,ty) � Diff(tx,ty)=0 � fd=� �$� PRINTTAB(0,65)"";TempPlayer � � lp=1 � NumPlayers � � lp=TempPlayer � �( Diff(tx,ty)-=TempAmmount(lp)+1 � � �& Diff(tx,ty)+=TempAmmount(lp) " � TempAmmount(lp)>0 fd=� � � & � fd � fx=tx:fy=ty 0 � : Diff(tx,ty)=0 D � N&� PRINTTAB(tx*4+31,14-2*ty) SPC(4) X.� PRINTTAB(tx*4+31,14-2*ty) "";Diff(tx,ty) b � l � v � A$=GET$ � md=1000 � mt=0 � Md=-1000 � Mt=0 � � fd � � xps=fx � yps=fy � � � � x=0 � 7 � � y=0 � 7 �< � (owner(x,y)=0 � rnd<rToBeat) � owner(x,y)=player � �5 � Diff(x,y)<md � md=Diff(x,y):mt=0:xm=x:ym=y �, � Diff(x,y)=md � md=Diff(x,y):mt+=1 5 � Diff(x,y)>Md � Md=Diff(x,y):Mt=0:xM=x:yM=y , � Diff(x,y)=Md � Md=Diff(x,y):Mt+=1 � � * � 4 � mt=1 � > xps=xm H yps=ym R � \ pck=� f pp=�(mt) p x=0 z y=0 � � �< � (owner(x,y)=0 � rnd<rToBeat) � owner(x,y)=player � � � Diff(x,y)=md � � pp-=1 � xps=x � yps=y � � � � � x+=1 � � x=8 � x=0:y+=1 � � pp=0 � � � � �AddOneToSquare(xps,yps) # �CheckIfChainReaction(xps,yps) � $� �
00000000 0d 00 0a 1d f4 20 3e 20 3c 43 68 61 69 6e 24 44 |..... > <Chain$D| 00000010 69 72 3e 2e 21 52 75 6e 49 6d 61 67 65 0d 00 14 |ir>.!RunImage...| 00000020 14 f4 20 43 68 61 69 6e 20 52 65 61 63 74 69 6f |.. Chain Reactio| 00000030 6e 0d 00 1e 15 f4 20 62 79 20 53 74 65 76 65 20 |n..... by Steve | 00000040 42 6f 73 6d 61 6e 0d 00 28 12 f4 20 56 65 72 73 |Bosman..(.. Vers| 00000050 69 6f 6e 20 30 2e 30 31 0d 00 32 14 f4 20 28 63 |ion 0.01..2.. (c| 00000060 29 20 4d 61 72 63 68 20 31 39 39 30 0d 00 3c 2b |) March 1990..<+| 00000070 f4 20 41 64 64 20 65 78 74 72 61 20 63 6f 6d 70 |. Add extra comp| 00000080 75 74 65 72 20 70 6c 61 79 65 72 73 20 61 74 20 |uter players at | 00000090 74 68 65 20 65 6e 64 0d 00 46 3b f4 20 54 68 65 |the end..F;. The| 000000a0 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 6f 64 65 20 | following code | 000000b0 6d 61 79 20 6f 6e 6c 79 20 62 65 20 6d 6f 64 69 |may only be modi| 000000c0 66 69 65 64 20 69 66 20 49 20 61 6d 20 74 6f 6c |fied if I am tol| 000000d0 64 2e 0d 00 47 38 f4 20 49 66 20 79 6f 75 20 64 |d...G8. If you d| 000000e0 6f 20 6d 61 6e 61 67 65 20 74 6f 20 77 72 69 74 |o manage to writ| 000000f0 65 20 61 20 62 65 74 74 65 72 20 63 6f 6d 70 75 |e a better compu| 00000100 74 65 72 20 70 6c 61 79 65 72 0d 00 48 31 f4 20 |ter player..H1. | 00000110 70 6c 65 61 73 65 20 73 65 6e 64 20 6d 65 20 61 |please send me a| 00000120 20 63 6f 70 79 20 6f 66 20 74 68 65 20 6d 6f 64 | copy of the mod| 00000130 69 66 69 65 64 20 63 6f 64 65 2e 0d 00 50 36 f4 |ified code...P6.| 00000140 20 55 6e 64 65 72 20 6e 6f 20 63 69 72 63 75 6d | Under no circum| 00000150 73 74 61 6e 63 65 73 20 6d 61 79 20 69 74 20 62 |stances may it b| 00000160 65 20 73 6f 6c 64 20 66 6f 72 20 70 72 6f 66 69 |e sold for profi| 00000170 74 0d 00 51 25 f4 20 28 65 69 74 68 65 72 20 6d |t..Q%. (either m| 00000180 6f 64 69 66 69 65 64 20 6f 72 20 75 6e 6d 6f 64 |odified or unmod| 00000190 69 66 69 65 64 29 0d 00 64 05 f4 0d 00 6e 23 f4 |ified)..d....n#.| 000001a0 20 73 65 65 20 74 68 65 20 21 72 65 61 64 6d 65 | see the !readme| 000001b0 20 66 69 6c 65 20 66 6f 72 20 6d 6f 72 65 0d 00 | file for more..| 000001c0 78 05 f4 0d 00 82 08 eb 20 31 35 0d 00 8c 09 e6 |x....... 15.....| 000001d0 20 38 2c 30 0d 00 96 08 c8 a0 20 32 0d 00 a0 24 | 8,0...... 2...$| 000001e0 2a 43 48 41 4e 4e 45 4c 56 4f 49 43 45 20 32 20 |*CHANNELVOICE 2 | 000001f0 50 65 72 63 75 73 73 69 6f 6e 2d 4e 6f 69 73 65 |Percussion-Noise| 00000200 0d 00 aa 0a f2 69 6e 69 74 31 0d 00 b4 0e f2 44 |.....init1.....D| 00000210 72 61 77 42 6f 61 72 64 0d 00 be 11 f2 44 72 61 |rawBoard.....Dra| 00000220 77 49 6e 69 74 4d 65 6e 75 0d 00 c8 1c f2 50 6c |wInitMenu.....Pl| 00000230 61 63 65 53 70 72 69 74 65 28 22 4c 4f 47 4f 22 |aceSprite("LOGO"| 00000240 2c 38 2c 36 29 0d 00 d2 21 f2 50 6c 61 63 65 53 |,8,6)...!.PlaceS| 00000250 70 72 69 74 65 28 22 76 6c 61 72 67 65 62 61 72 |prite("vlargebar| 00000260 22 2c 38 2c 30 29 0d 00 dc 08 c8 97 20 ee 0d 00 |",8,0)...... ...| 00000270 e6 0a f2 69 6e 69 74 32 0d 00 f0 0a f2 73 74 61 |...init2.....sta| 00000280 72 74 0d 00 fa 05 f5 0d 01 04 15 20 e7 20 ac 20 |rt......... . . | 00000290 65 78 69 74 20 8c 20 f2 4d 61 69 6e 0d 01 0e 0a |exit . .Main....| 000002a0 fd 20 65 78 69 74 0d 01 18 08 c8 97 20 87 0d 01 |. exit...... ...| 000002b0 22 05 db 0d 01 2c 05 e0 0d 01 36 05 3a 0d 01 40 |"....,....6.:..@| 000002c0 0c dd 20 f2 73 74 61 72 74 0d 01 4a 0e f2 57 72 |.. .start..J..Wr| 000002d0 69 74 65 50 6c 61 79 0d 01 54 0f f2 57 72 69 74 |itePlay..T..Writ| 000002e0 65 53 6f 75 6e 64 0d 01 5e 0d f2 61 6d 6d 6f 75 |eSound..^..ammou| 000002f0 6e 74 73 0d 01 68 17 e3 20 6c 70 3d 31 20 b8 20 |nts..h.. lp=1 . | 00000300 4e 75 6d 50 6c 61 79 65 72 73 0d 01 72 14 20 f2 |NumPlayers..r. .| 00000310 50 6c 61 79 65 72 54 79 70 65 28 6c 70 29 0d 01 |PlayerType(lp)..| 00000320 7c 05 ed 0d 01 86 0e e3 20 6c 70 3d 31 20 b8 20 ||....... lp=1 . | 00000330 34 0d 01 90 12 20 61 6d 6d 6f 75 6e 74 28 6c 70 |4.... ammount(lp| 00000340 29 3d 30 0d 01 9a 05 ed 0d 01 a4 06 ef 34 0d 01 |)=0..........4..| 00000350 ae 0f 6c 65 61 76 65 6c 6f 6f 70 3d 30 0d 01 b8 |..leaveloop=0...| 00000360 0a 65 78 69 74 3d a3 0d 01 c2 0b 73 74 61 72 74 |.exit=.....start| 00000370 3d a3 0d 01 cc 05 f5 0d 01 d6 10 20 c8 97 20 6d |=.......... .. m| 00000380 78 2c 6d 79 2c 6d 62 0d 01 e0 29 20 e7 20 6d 62 |x,my,mb...) . mb| 00000390 3e 30 20 80 20 6d 78 3e 31 30 32 34 20 80 20 6d |>0 . mx>1024 . m| 000003a0 79 3e 35 31 32 20 80 20 6d 79 3c 37 36 38 20 8c |y>512 . my<768 .| 000003b0 0d 01 ea 15 20 20 79 70 6f 73 3d a8 28 6d 79 2f |.... ypos=.(my/| 000003c0 36 34 29 2d 37 0d 01 f4 0f 20 20 c8 8e 20 79 70 |64)-7.... .. yp| 000003d0 6f 73 20 ca 0d 01 fe 13 20 20 20 c9 20 31 20 3a |os ..... . 1 :| 000003e0 20 65 78 69 74 3d b9 0d 02 08 14 20 20 20 c9 20 | exit=..... . | 000003f0 32 20 3a 20 73 74 61 72 74 3d b9 0d 02 12 0a 20 |2 : start=..... | 00000400 20 20 c9 20 33 0d 02 1c 16 20 20 20 20 20 73 6f | . 3.... so| 00000410 75 6e 64 3d ac 20 73 6f 75 6e 64 0d 02 26 14 20 |und=. sound..&. | 00000420 20 20 20 20 f2 57 72 69 74 65 53 6f 75 6e 64 0d | .WriteSound.| 00000430 02 30 0a 20 20 20 c9 20 34 0d 02 3a 16 20 20 20 |.0. . 4..:. | 00000440 20 20 4e 75 6d 50 6c 61 79 65 72 73 2b 3d 31 0d | NumPlayers+=1.| 00000450 02 44 26 20 20 20 20 20 e7 20 4e 75 6d 50 6c 61 |.D& . NumPla| 00000460 79 65 72 73 3e 34 20 8c 20 4e 75 6d 50 6c 61 79 |yers>4 . NumPlay| 00000470 65 72 73 3d 32 0d 02 4e 13 20 20 20 20 20 f2 57 |ers=2..N. .W| 00000480 72 69 74 65 50 6c 61 79 0d 02 58 12 20 20 20 20 |ritePlay..X. | 00000490 20 f2 61 6d 6d 6f 75 6e 74 73 0d 02 62 1c 20 20 | .ammounts..b. | 000004a0 20 20 20 e3 20 6c 70 3d 31 20 b8 20 4e 75 6d 50 | . lp=1 . NumP| 000004b0 6c 61 79 65 72 73 0d 02 6c 19 20 20 20 20 20 20 |layers..l. | 000004c0 f2 50 6c 61 79 65 72 54 79 70 65 28 6c 70 29 0d |.PlayerType(lp).| 000004d0 02 76 0a 20 20 20 20 20 ed 0d 02 80 07 20 20 cb |.v. ..... .| 000004e0 0d 02 8a 13 20 20 e3 20 4c 3d 31 20 b8 20 31 30 |.... . L=1 . 10| 000004f0 30 30 30 0d 02 94 07 20 20 ed 0d 02 9e 06 20 cd |000.... ..... .| 00000500 0d 02 a8 39 20 e7 20 6d 62 3e 30 20 80 20 6d 78 |...9 . mb>0 . mx| 00000510 3e 31 30 38 38 20 80 20 6d 79 3c 36 34 2a 38 20 |>1088 . my<64*8 | 00000520 20 80 20 6d 79 3e 36 34 2a 28 38 2d 4e 75 6d 50 | . my>64*(8-NumP| 00000530 6c 61 79 65 72 73 29 20 8c 0d 02 b2 15 20 20 79 |layers) ..... y| 00000540 70 6f 73 3d a8 28 6d 79 2f 36 34 29 2d 34 0d 02 |pos=.(my/64)-4..| 00000550 bc 16 20 20 78 70 6f 73 3d a8 28 6d 78 2f 36 34 |.. xpos=.(mx/64| 00000560 29 2d 31 36 0d 02 c6 0f 20 20 c8 8e 20 78 70 6f |)-16.... .. xpo| 00000570 73 20 ca 0d 02 d0 0a 20 20 20 c9 20 31 0d 02 da |s ..... . 1...| 00000580 33 20 20 20 20 50 6c 61 79 65 72 54 79 70 65 28 |3 PlayerType(| 00000590 34 2d 79 70 6f 73 2c 30 29 3d 31 2d 50 6c 61 79 |4-ypos,0)=1-Play| 000005a0 65 72 54 79 70 65 28 34 2d 79 70 6f 73 2c 30 29 |erType(4-ypos,0)| 000005b0 0d 02 e4 0a 20 20 20 c9 20 32 0d 02 ee 22 20 20 |.... . 2..." | 000005c0 20 20 e7 20 50 6c 61 79 65 72 54 79 70 65 28 34 | . PlayerType(4| 000005d0 2d 79 70 6f 73 2c 30 29 3d 31 20 8c 0d 02 f8 20 |-ypos,0)=1 .... | 000005e0 20 20 20 20 20 50 6c 61 79 65 72 54 79 70 65 28 | PlayerType(| 000005f0 34 2d 79 70 6f 73 2c 31 29 2b 3d 31 0d 03 02 3a |4-ypos,1)+=1...:| 00000600 20 20 20 20 20 e7 20 50 6c 61 79 65 72 54 79 70 | . PlayerTyp| 00000610 65 28 34 2d 79 70 6f 73 2c 31 29 3e 35 20 8c 20 |e(4-ypos,1)>5 . | 00000620 50 6c 61 79 65 72 54 79 70 65 28 34 2d 79 70 6f |PlayerType(4-ypo| 00000630 73 2c 31 29 3d 30 0d 03 0c 09 20 20 20 20 cd 0d |s,1)=0.... ..| 00000640 03 16 0a 20 20 20 c9 20 33 0d 03 20 54 20 20 20 |... . 3.. T | 00000650 20 e7 20 50 6c 61 79 65 72 54 79 70 65 28 34 2d | . PlayerType(4-| 00000660 79 70 6f 73 2c 31 29 3d 32 20 84 20 50 6c 61 79 |ypos,1)=2 . Play| 00000670 65 72 54 79 70 65 28 34 2d 79 70 6f 73 2c 31 29 |erType(4-ypos,1)| 00000680 3d 34 20 84 20 50 6c 61 79 65 72 54 79 70 65 28 |=4 . PlayerType(| 00000690 34 2d 79 70 6f 73 2c 31 29 3d 35 20 8c 0d 03 2a |4-ypos,1)=5 ...*| 000006a0 10 20 20 20 20 20 c8 8e 20 6d 62 20 ca 0d 03 34 |. .. mb ...4| 000006b0 0c 20 20 20 20 20 c9 20 34 0d 03 3e 21 20 20 20 |. . 4..>! | 000006c0 20 20 20 50 6c 61 79 65 72 54 79 70 65 28 34 2d | PlayerType(4-| 000006d0 79 70 6f 73 2c 32 29 2b 3d 31 0d 03 48 3c 20 20 |ypos,2)+=1..H< | 000006e0 20 20 20 20 e7 20 50 6c 61 79 65 72 54 79 70 65 | . PlayerType| 000006f0 28 34 2d 79 70 6f 73 2c 32 29 3e 39 39 20 8c 20 |(4-ypos,2)>99 . | 00000700 50 6c 61 79 65 72 54 79 70 65 28 34 2d 79 70 6f |PlayerType(4-ypo| 00000710 73 2c 32 29 3d 30 0d 03 52 0c 20 20 20 20 20 c9 |s,2)=0..R. .| 00000720 20 32 0d 03 5c 20 20 20 20 20 20 20 50 6c 61 79 | 2..\ Play| 00000730 65 72 54 79 70 65 28 34 2d 79 70 6f 73 2c 32 29 |erType(4-ypos,2)| 00000740 3d 30 0d 03 66 0c 20 20 20 20 20 c9 20 31 0d 03 |=0..f. . 1..| 00000750 70 21 20 20 20 20 20 20 50 6c 61 79 65 72 54 79 |p! PlayerTy| 00000760 70 65 28 34 2d 79 70 6f 73 2c 32 29 2d 3d 31 0d |pe(4-ypos,2)-=1.| 00000770 03 7a 3c 20 20 20 20 20 20 e7 20 50 6c 61 79 65 |.z< . Playe| 00000780 72 54 79 70 65 28 34 2d 79 70 6f 73 2c 32 29 3c |rType(4-ypos,2)<| 00000790 30 20 8c 20 50 6c 61 79 65 72 54 79 70 65 28 34 |0 . PlayerType(4| 000007a0 2d 79 70 6f 73 2c 32 29 3d 39 39 0d 03 84 0a 20 |-ypos,2)=99.... | 000007b0 20 20 20 20 cb 0d 03 8e 09 20 20 20 20 cd 0d 03 | ..... ...| 000007c0 98 07 20 20 cb 0d 03 a2 19 20 20 f2 50 6c 61 79 |.. ..... .Play| 000007d0 65 72 54 79 70 65 28 34 2d 79 70 6f 73 29 0d 03 |erType(4-ypos)..| 000007e0 ac 12 20 20 e3 20 4c 3d 31 20 b8 20 35 30 30 30 |.. . L=1 . 5000| 000007f0 0d 03 b6 07 20 20 ed 0d 03 c0 06 20 cd 0d 03 ca |.... ..... ....| 00000800 12 fd 20 73 74 61 72 74 20 84 20 65 78 69 74 0d |.. start . exit.| 00000810 03 d4 0d e7 20 73 74 61 72 74 20 8c 0d 03 de 0e |.... start .....| 00000820 20 f2 61 6d 6d 6f 75 6e 74 73 0d 03 e8 22 20 f2 | .ammounts..." .| 00000830 50 6c 61 63 65 53 70 72 69 74 65 28 22 6c 6f 6e |PlaceSprite("lon| 00000840 67 62 61 72 22 2c 38 2c 34 2e 35 29 0d 03 f2 07 |gbar",8,4.5)....| 00000850 20 ef 35 0d 03 fc 0f 20 ec 20 31 30 38 38 2c 36 | .5.... . 1088,6| 00000860 31 38 0d 04 06 11 20 f1 22 51 75 69 74 20 47 61 |18.... ."Quit Ga| 00000870 6d 65 22 0d 04 10 07 20 ef 34 0d 04 1a 25 20 f2 |me".... .4...% .| 00000880 50 6c 61 63 65 53 70 72 69 74 65 28 22 73 68 6f |PlaceSprite("sho| 00000890 72 74 62 6c 61 6e 6b 22 2c 38 2c 35 2e 35 29 0d |rtblank",8,5.5).| 000008a0 04 24 22 20 f2 50 6c 61 63 65 53 70 72 69 74 65 |.$" .PlaceSprite| 000008b0 28 22 6c 6f 6e 67 62 6c 61 6e 6b 22 2c 38 2c 34 |("longblank",8,4| 000008c0 29 0d 04 2e 22 20 f2 50 6c 61 63 65 53 70 72 69 |)..." .PlaceSpri| 000008d0 74 65 28 22 76 6c 61 72 67 65 62 61 72 22 2c 38 |te("vlargebar",8| 000008e0 2c 30 29 0d 04 38 07 20 ef 35 0d 04 42 0f 20 ec |,0)..8. .5..B. .| 000008f0 20 31 31 32 30 2c 32 31 36 0d 04 4c 0c 20 f1 22 | 1120,216..L. ."| 00000900 54 55 52 4e 22 0d 04 56 07 20 ef 34 0d 04 60 05 |TURN"..V. .4..`.| 00000910 cd 0d 04 6a 05 e1 0d 04 74 05 3a 0d 04 7e 11 dd |...j....t.:..~..| 00000920 20 f2 57 72 69 74 65 53 6f 75 6e 64 0d 04 88 23 | .WriteSound...#| 00000930 f2 50 6c 61 63 65 53 70 72 69 74 65 28 22 76 73 |.PlaceSprite("vs| 00000940 68 6f 72 74 62 61 72 22 2c 39 2e 35 2c 35 29 0d |hortbar",9.5,5).| 00000950 04 92 06 ef 35 0d 04 9c 0e ec 20 31 32 34 30 2c |....5..... 1240,| 00000960 36 38 32 0d 04 a6 19 e7 20 73 6f 75 6e 64 20 8c |682..... sound .| 00000970 20 f1 22 59 22 20 8b 20 f1 22 4e 22 0d 04 b0 06 | ."Y" . ."N"....| 00000980 ef 34 0d 04 ba 05 e1 0d 04 c4 05 3a 0d 04 ce 0f |.4.........:....| 00000990 dd f2 57 72 69 74 65 50 6c 61 79 0d 04 d8 25 f2 |..WritePlay...%.| 000009a0 50 6c 61 63 65 53 70 72 69 74 65 28 22 76 73 68 |PlaceSprite("vsh| 000009b0 6f 72 74 62 61 72 22 2c 39 2e 35 2c 35 2e 35 29 |ortbar",9.5,5.5)| 000009c0 0d 04 e2 06 ef 35 0d 04 ec 0e ec 20 31 32 34 30 |.....5..... 1240| 000009d0 2c 37 34 36 0d 04 f6 12 f1 22 22 3b 4e 75 6d 50 |,746....."";NumP| 000009e0 6c 61 79 65 72 73 0d 05 00 06 ef 34 0d 05 0a 05 |layers.....4....| 000009f0 e1 0d 05 14 05 3a 0d 05 1e 0f dd 20 f2 61 6d 6d |.....:..... .amm| 00000a00 6f 75 6e 74 73 0d 05 28 13 6c 70 3d 34 2d 4e 75 |ounts..(.lp=4-Nu| 00000a10 6d 50 6c 61 79 65 72 73 0d 05 32 0b c8 95 20 6c |mPlayers..2... l| 00000a20 70 3e 30 0d 05 3c 2d 20 f2 50 6c 61 63 65 53 70 |p>0..<- .PlaceSp| 00000a30 72 69 74 65 28 22 76 73 68 6f 72 74 62 61 72 22 |rite("vshortbar"| 00000a40 2c 38 2c 31 2e 35 2b 30 2e 35 2a 28 6c 70 29 29 |,8,1.5+0.5*(lp))| 00000a50 0d 05 46 2f 20 f2 50 6c 61 63 65 53 70 72 69 74 |..F/ .PlaceSprit| 00000a60 65 28 22 76 73 68 6f 72 74 62 61 72 22 2c 38 2e |e("vshortbar",8.| 00000a70 35 2c 31 2e 35 2b 30 2e 35 2a 28 6c 70 29 29 0d |5,1.5+0.5*(lp)).| 00000a80 05 50 2d 20 f2 50 6c 61 63 65 53 70 72 69 74 65 |.P- .PlaceSprite| 00000a90 28 22 76 73 68 6f 72 74 62 61 72 22 2c 39 2c 31 |("vshortbar",9,1| 00000aa0 2e 35 2b 30 2e 35 2a 28 6c 70 29 29 0d 05 5a 2f |.5+0.5*(lp))..Z/| 00000ab0 20 f2 50 6c 61 63 65 53 70 72 69 74 65 28 22 76 | .PlaceSprite("v| 00000ac0 73 68 6f 72 74 62 61 72 22 2c 39 2e 35 2c 31 2e |shortbar",9.5,1.| 00000ad0 35 2b 30 2e 35 2a 28 6c 70 29 29 0d 05 64 0a 20 |5+0.5*(lp))..d. | 00000ae0 6c 70 2d 3d 31 0d 05 6e 05 ce 0d 05 78 17 e3 20 |lp-=1..n....x.. | 00000af0 6c 70 3d 31 20 b8 20 4e 75 6d 50 6c 61 79 65 72 |lp=1 . NumPlayer| 00000b00 73 0d 05 82 13 61 6d 6d 3d 61 6d 6d 6f 75 6e 74 |s....amm=ammount| 00000b10 28 6c 70 29 0d 05 8c 0f 61 6d 6d 24 3d c3 28 61 |(lp)....amm$=.(a| 00000b20 6d 6d 29 0d 05 96 1f e7 20 a9 28 61 6d 6d 24 29 |mm)..... .(amm$)| 00000b30 3d 31 20 8c 20 61 6d 6d 24 3d 22 30 22 2b 61 6d |=1 . amm$="0"+am| 00000b40 6d 24 0d 05 a0 31 f2 50 6c 61 63 65 53 70 72 69 |m$...1.PlaceSpri| 00000b50 74 65 28 22 73 6d 22 2b 70 6c 61 79 65 72 24 28 |te("sm"+player$(| 00000b60 6c 70 29 2c 38 2c 32 2b 30 2e 35 2a 28 34 2d 6c |lp),8,2+0.5*(4-l| 00000b70 70 29 29 0d 05 aa 06 ef 35 0d 05 b4 18 ec 20 31 |p)).....5..... 1| 00000b80 30 34 30 2c 28 34 2d 6c 70 29 2a 36 34 2b 32 39 |040,(4-lp)*64+29| 00000b90 36 0d 05 be 0a f1 20 61 6d 6d 24 0d 05 c8 06 ef |6..... amm$.....| 00000ba0 34 0d 05 d2 05 ed 0d 05 dc 05 e1 0d 05 e6 05 3a |4..............:| 00000bb0 0d 05 f0 15 dd 20 f2 50 6c 61 79 65 72 54 79 70 |..... .PlayerTyp| 00000bc0 65 28 70 6c 29 0d 05 fa 33 f2 50 6c 61 63 65 53 |e(pl)...3.PlaceS| 00000bd0 70 72 69 74 65 28 22 73 6d 22 2b 70 6c 61 79 65 |prite("sm"+playe| 00000be0 72 24 28 70 6c 29 2c 38 2e 35 2c 32 2b 30 2e 35 |r$(pl),8.5,2+0.5| 00000bf0 2a 28 34 2d 70 6c 29 29 0d 06 04 1a e7 20 50 6c |*(4-pl))..... Pl| 00000c00 61 79 65 72 54 79 70 65 28 70 6c 2c 30 29 3d 31 |ayerType(pl,0)=1| 00000c10 20 8c 0d 06 0e 32 20 f2 50 6c 61 63 65 53 70 72 | ....2 .PlaceSpr| 00000c20 69 74 65 28 22 73 6d 22 2b 70 6c 61 79 65 72 24 |ite("sm"+player$| 00000c30 28 70 6c 29 2c 39 2c 32 2b 30 2e 35 2a 28 34 2d |(pl),9,2+0.5*(4-| 00000c40 70 6c 29 29 0d 06 18 45 20 e7 20 50 6c 61 79 65 |pl))...E . Playe| 00000c50 72 54 79 70 65 28 70 6c 2c 31 29 3d 32 20 84 20 |rType(pl,1)=2 . | 00000c60 50 6c 61 79 65 72 54 79 70 65 28 70 6c 2c 31 29 |PlayerType(pl,1)| 00000c70 3d 34 20 84 20 50 6c 61 79 65 72 54 79 70 65 28 |=4 . PlayerType(| 00000c80 70 6c 2c 31 29 3d 35 20 8c 0d 06 22 35 20 20 f2 |pl,1)=5 ..."5 .| 00000c90 50 6c 61 63 65 53 70 72 69 74 65 28 22 73 6d 22 |PlaceSprite("sm"| 00000ca0 2b 70 6c 61 79 65 72 24 28 70 6c 29 2c 39 2e 35 |+player$(pl),9.5| 00000cb0 2c 32 2b 30 2e 35 2a 28 34 2d 70 6c 29 29 0d 06 |,2+0.5*(4-pl))..| 00000cc0 2c 06 20 cc 0d 06 36 30 20 20 f2 50 6c 61 63 65 |,. ...60 .Place| 00000cd0 53 70 72 69 74 65 28 22 76 73 68 6f 72 74 62 61 |Sprite("vshortba| 00000ce0 72 22 2c 39 2e 35 2c 32 2b 30 2e 35 2a 28 34 2d |r",9.5,2+0.5*(4-| 00000cf0 70 6c 29 29 0d 06 40 06 20 cd 0d 06 4a 05 cc 0d |pl))..@. ...J...| 00000d00 06 54 2d 20 f2 50 6c 61 63 65 53 70 72 69 74 65 |.T- .PlaceSprite| 00000d10 28 22 76 73 68 6f 72 74 62 61 72 22 2c 39 2c 32 |("vshortbar",9,2| 00000d20 2b 30 2e 35 2a 28 34 2d 70 6c 29 29 0d 06 5e 2f |+0.5*(4-pl))..^/| 00000d30 20 f2 50 6c 61 63 65 53 70 72 69 74 65 28 22 76 | .PlaceSprite("v| 00000d40 73 68 6f 72 74 62 61 72 22 2c 39 2e 35 2c 32 2b |shortbar",9.5,2+| 00000d50 30 2e 35 2a 28 34 2d 70 6c 29 29 0d 06 68 05 cd |0.5*(4-pl))..h..| 00000d60 0d 06 72 06 ef 35 0d 06 7c 18 ec 20 31 31 31 32 |..r..5..|.. 1112| 00000d70 2c 36 34 2a 28 34 2d 70 6c 29 2b 32 39 36 0d 06 |,64*(4-pl)+296..| 00000d80 86 1a e7 20 50 6c 61 79 65 72 54 79 70 65 28 70 |... PlayerType(p| 00000d90 6c 2c 30 29 3d 30 20 8c 0d 06 90 09 20 f1 22 48 |l,0)=0 ..... ."H| 00000da0 22 0d 06 9a 05 cc 0d 06 a4 09 20 f1 22 41 22 0d |"......... ."A".| 00000db0 06 ae 19 20 ec 20 31 31 37 34 2c 36 34 2a 28 34 |... . 1174,64*(4| 00000dc0 2d 70 6c 29 2b 32 39 36 0d 06 b8 1a 20 f1 20 c3 |-pl)+296.... . .| 00000dd0 28 50 6c 61 79 65 72 54 79 70 65 28 70 6c 2c 31 |(PlayerType(pl,1| 00000de0 29 29 0d 06 c2 45 20 e7 20 50 6c 61 79 65 72 54 |))...E . PlayerT| 00000df0 79 70 65 28 70 6c 2c 31 29 3d 32 20 84 20 50 6c |ype(pl,1)=2 . Pl| 00000e00 61 79 65 72 54 79 70 65 28 70 6c 2c 31 29 3d 34 |ayerType(pl,1)=4| 00000e10 20 84 20 50 6c 61 79 65 72 54 79 70 65 28 70 6c | . PlayerType(pl| 00000e20 2c 31 29 3d 35 20 8c 0d 06 cc 1a 20 20 ec 20 31 |,1)=5 ..... . 1| 00000e30 32 33 38 2c 36 34 2a 28 34 2d 70 6c 29 2b 32 39 |238,64*(4-pl)+29| 00000e40 36 0d 06 d6 1b 20 20 f1 20 c3 28 50 6c 61 79 65 |6.... . .(Playe| 00000e50 72 54 79 70 65 28 70 6c 2c 32 29 29 0d 06 e0 06 |rType(pl,2))....| 00000e60 20 cd 0d 06 ea 05 cd 0d 06 f4 06 ef 34 0d 06 fe | ...........4...| 00000e70 05 e1 0d 07 08 05 3a 0d 07 12 0c dd 20 f2 69 6e |......:..... .in| 00000e80 69 74 31 0d 07 1c 10 f2 4c 6f 61 64 53 70 72 69 |it1.....LoadSpri| 00000e90 74 65 73 0d 07 26 10 de 20 6f 77 6e 65 72 28 37 |tes..&.. owner(7| 00000ea0 2c 37 29 0d 07 30 13 de 20 73 74 72 65 6e 67 74 |,7)..0.. strengt| 00000eb0 68 28 37 2c 37 29 0d 07 3a 14 de 20 63 72 69 74 |h(7,7)..:.. crit| 00000ec0 69 63 61 6c 73 28 37 2c 37 29 0d 07 44 15 de 20 |icals(7,7)..D.. | 00000ed0 50 6c 61 79 65 72 54 79 70 65 28 34 2c 32 29 0d |PlayerType(4,2).| 00000ee0 07 4e 10 de 20 70 6c 61 79 65 72 24 28 34 29 0d |.N.. player$(4).| 00000ef0 07 58 10 de 20 61 6d 6d 6f 75 6e 74 28 34 29 0d |.X.. ammount(4).| 00000f00 07 62 10 de 20 6e 75 6d 62 65 72 24 28 37 29 0d |.b.. number$(7).| 00000f10 07 6c 14 de 20 54 65 6d 70 4f 77 6e 65 72 28 37 |.l.. TempOwner(7| 00000f20 2c 37 29 0d 07 76 17 de 20 54 65 6d 70 53 74 72 |,7)..v.. TempStr| 00000f30 65 6e 67 74 68 28 37 2c 37 29 0d 07 80 14 de 20 |ength(7,7)..... | 00000f40 54 65 6d 70 41 6d 6d 6f 75 6e 74 28 34 29 0d 07 |TempAmmount(4)..| 00000f50 8a 0f de 20 44 69 66 66 28 37 2c 37 29 0d 07 94 |... Diff(7,7)...| 00000f60 16 70 6c 61 79 65 72 24 28 30 29 3d 22 62 6c 61 |.player$(0)="bla| 00000f70 6e 6b 22 0d 07 9e 14 70 6c 61 79 65 72 24 28 31 |nk"....player$(1| 00000f80 29 3d 22 72 65 64 22 0d 07 a8 16 70 6c 61 79 65 |)="red"....playe| 00000f90 72 24 28 32 29 3d 22 67 72 65 65 6e 22 0d 07 b2 |r$(2)="green"...| 00000fa0 15 70 6c 61 79 65 72 24 28 33 29 3d 22 62 6c 75 |.player$(3)="blu| 00000fb0 65 22 0d 07 bc 17 70 6c 61 79 65 72 24 28 34 29 |e"....player$(4)| 00000fc0 3d 22 70 75 72 70 6c 65 22 0d 07 c6 16 6e 75 6d |="purple"....num| 00000fd0 62 65 72 24 28 30 29 3d 22 62 6c 61 6e 6b 22 0d |ber$(0)="blank".| 00000fe0 07 d0 14 6e 75 6d 62 65 72 24 28 31 29 3d 22 6f |...number$(1)="o| 00000ff0 6e 65 22 0d 07 da 14 6e 75 6d 62 65 72 24 28 32 |ne"....number$(2| 00001000 29 3d 22 74 77 6f 22 0d 07 e4 16 6e 75 6d 62 65 |)="two"....numbe| 00001010 72 24 28 33 29 3d 22 74 68 72 65 65 22 0d 07 ee |r$(3)="three"...| 00001020 15 6e 75 6d 62 65 72 24 28 34 29 3d 22 66 6f 75 |.number$(4)="fou| 00001030 72 22 0d 07 f8 15 6e 75 6d 62 65 72 24 28 35 29 |r"....number$(5)| 00001040 3d 22 66 69 76 65 22 0d 08 02 14 6e 75 6d 62 65 |="five"....numbe| 00001050 72 24 28 36 29 3d 22 73 69 78 22 0d 08 0c 16 6e |r$(6)="six"....n| 00001060 75 6d 62 65 72 24 28 37 29 3d 22 73 65 76 65 6e |umber$(7)="seven| 00001070 22 0d 08 16 0b 73 6f 75 6e 64 3d b9 0d 08 20 10 |"....sound=... .| 00001080 4e 75 6d 50 6c 61 79 65 72 73 3d 32 0d 08 2a 05 |NumPlayers=2..*.| 00001090 e1 0d 08 34 05 3a 0d 08 3e 0c dd 20 f2 69 6e 69 |...4.:..>.. .ini| 000010a0 74 32 0d 08 48 0d e3 20 78 3d 30 20 b8 20 37 0d |t2..H.. x=0 . 7.| 000010b0 08 52 0e 20 e3 20 79 3d 30 20 b8 20 37 0d 08 5c |.R. . y=0 . 7..\| 000010c0 12 20 20 6f 77 6e 65 72 28 78 2c 79 29 3d 30 0d |. owner(x,y)=0.| 000010d0 08 66 15 20 20 73 74 72 65 6e 67 74 68 28 78 2c |.f. strength(x,| 000010e0 79 29 3d 30 0d 08 70 16 20 20 63 72 69 74 69 63 |y)=0..p. critic| 000010f0 61 6c 73 28 78 2c 79 29 3d 30 0d 08 7a 06 20 ed |als(x,y)=0..z. .| 00001100 0d 08 84 05 ed 0d 08 8e 0c 66 69 6e 69 73 68 3d |.........finish=| 00001110 30 0d 08 98 05 e1 0d 08 a2 05 3a 0d 08 ac 12 dd |0.........:.....| 00001120 20 f2 4c 6f 61 64 53 70 72 69 74 65 73 0d 08 b6 | .LoadSprites...| 00001130 1e 2a 53 4c 4f 41 44 20 3c 43 68 61 69 6e 24 44 |.*SLOAD <Chain$D| 00001140 69 72 3e 2e 53 70 72 69 74 65 73 0d 08 c0 12 2a |ir>.Sprites....*| 00001150 53 43 48 4f 4f 53 45 20 42 4c 41 4e 4b 0d 08 ca |SCHOOSE BLANK...| 00001160 05 e1 0d 08 d4 05 3a 0d 08 de 10 dd 20 f2 44 72 |......:..... .Dr| 00001170 61 77 42 6f 61 72 64 0d 08 e8 0d e3 20 58 3d 30 |awBoard..... X=0| 00001180 20 b8 20 37 0d 08 f2 0e 20 e3 20 59 3d 30 20 b8 | . 7.... . Y=0 .| 00001190 20 37 0d 08 fc 1f 20 20 f2 50 6c 61 63 65 53 70 | 7.... .PlaceSp| 000011a0 72 69 74 65 28 22 62 6c 61 6e 6b 22 2c 58 2c 59 |rite("blank",X,Y| 000011b0 29 0d 09 06 06 20 ed 0d 09 10 05 ed 0d 09 1a 05 |).... ..........| 000011c0 e1 0d 09 24 05 3a 0d 09 2e 13 dd 20 f2 44 72 61 |...$.:..... .Dra| 000011d0 77 49 6e 69 74 4d 65 6e 75 0d 09 38 1f f2 50 6c |wInitMenu..8..Pl| 000011e0 61 63 65 53 70 72 69 74 65 28 22 6c 6f 6e 67 62 |aceSprite("longb| 000011f0 61 72 22 2c 38 2c 34 29 0d 09 42 21 f2 50 6c 61 |ar",8,4)..B!.Pla| 00001200 63 65 53 70 72 69 74 65 28 22 6c 6f 6e 67 62 61 |ceSprite("longba| 00001210 72 22 2c 38 2c 34 2e 35 29 0d 09 4c 20 f2 50 6c |r",8,4.5)..L .Pl| 00001220 61 63 65 53 70 72 69 74 65 28 22 73 68 6f 72 74 |aceSprite("short| 00001230 62 61 72 22 2c 38 2c 35 29 0d 09 56 23 f2 50 6c |bar",8,5)..V#.Pl| 00001240 61 63 65 53 70 72 69 74 65 28 22 76 73 68 6f 72 |aceSprite("vshor| 00001250 74 62 61 72 22 2c 39 2e 35 2c 35 29 0d 09 60 22 |tbar",9.5,5)..`"| 00001260 f2 50 6c 61 63 65 53 70 72 69 74 65 28 22 73 68 |.PlaceSprite("sh| 00001270 6f 72 74 62 61 72 22 2c 38 2c 35 2e 35 29 0d 09 |ortbar",8,5.5)..| 00001280 6a 25 f2 50 6c 61 63 65 53 70 72 69 74 65 28 22 |j%.PlaceSprite("| 00001290 76 73 68 6f 72 74 62 61 72 22 2c 39 2e 35 2c 35 |vshortbar",9.5,5| 000012a0 2e 35 29 0d 09 74 06 ef 35 0d 09 7e 0e ec 20 31 |.5)..t..5..~.. 1| 000012b0 30 36 34 2c 37 34 34 0d 09 88 0e f1 22 50 6c 61 |064,744....."Pla| 000012c0 79 65 72 73 22 0d 09 92 0e ec 20 31 30 38 30 2c |yers"..... 1080,| 000012d0 36 38 32 0d 09 9c 0c f1 22 53 6f 75 6e 64 22 0d |682....."Sound".| 000012e0 09 a6 0e ec 20 31 30 37 32 2c 36 31 38 0d 09 b0 |.... 1072,618...| 000012f0 11 f1 22 53 74 61 72 74 20 47 61 6d 65 22 0d 09 |.."Start Game"..| 00001300 ba 0e ec 20 31 31 31 36 2c 35 35 34 0d 09 c4 0b |... 1116,554....| 00001310 f1 22 45 78 69 74 22 0d 09 ce 05 e1 0d 09 d8 05 |."Exit".........| 00001320 3a 0d 09 e2 1f dd 20 f2 50 6c 61 63 65 53 70 72 |:..... .PlaceSpr| 00001330 69 74 65 28 73 70 72 69 74 65 24 2c 78 2c 79 29 |ite(sprite$,x,y)| 00001340 0d 09 ec 0c 78 70 3d 78 2a 31 32 38 0d 09 f6 0c |....xp=x*128....| 00001350 79 70 3d 79 2a 31 32 38 0d 0a 00 19 ff 28 22 53 |yp=y*128.....("S| 00001360 43 48 4f 4f 53 45 20 22 2b 73 70 72 69 74 65 24 |CHOOSE "+sprite$| 00001370 29 0d 0a 0a 0f f0 20 26 45 44 2c 78 70 2c 79 70 |)..... &ED,xp,yp| 00001380 0d 0a 14 05 e1 0d 0a 1e 05 3a 0d 0a 28 19 dd 20 |.........:..(.. | 00001390 f2 57 72 69 74 65 53 74 72 65 6e 67 74 68 28 78 |.WriteStrength(x| 000013a0 2c 79 29 0d 0a 32 17 76 61 6c 75 65 3d 73 74 72 |,y)..2.value=str| 000013b0 65 6e 67 74 68 28 78 2c 79 29 0d 0a 3c 24 f2 50 |ength(x,y)..<$.P| 000013c0 6c 61 63 65 53 70 72 69 74 65 28 6e 75 6d 62 65 |laceSprite(numbe| 000013d0 72 24 28 76 61 6c 75 65 29 2c 78 2c 79 29 0d 0a |r$(value),x,y)..| 000013e0 46 05 e1 0d 0a 50 05 3a 0d 0a 5a 0b dd 20 f2 4d |F....P.:..Z.. .M| 000013f0 61 69 6e 0d 0a 64 0a 74 75 72 6e 3d 31 0d 0a 6e |ain..d.turn=1..n| 00001400 0c 70 6c 61 79 65 72 3d 31 0d 0a 78 0a 71 75 69 |.player=1..x.qui| 00001410 74 3d a3 0d 0a 82 05 f5 0d 0a 8c 23 20 e7 20 61 |t=.........# . a| 00001420 6d 6d 6f 75 6e 74 28 70 6c 61 79 65 72 29 3e 30 |mmount(player)>0| 00001430 20 84 20 74 75 72 6e 3d 31 20 8c 0d 0a 96 2b 20 | . turn=1 ....+ | 00001440 20 f2 50 6c 61 63 65 53 70 72 69 74 65 28 70 6c | .PlaceSprite(pl| 00001450 61 79 65 72 24 28 70 6c 61 79 65 72 29 2c 38 2e |ayer$(player),8.| 00001460 35 2c 2e 32 35 29 0d 0a a0 1f 20 20 c8 8e 20 50 |5,.25).... .. P| 00001470 6c 61 79 65 72 54 79 70 65 28 70 6c 61 79 65 72 |layerType(player| 00001480 2c 30 29 20 ca 0d 0a aa 13 20 20 20 c9 20 30 20 |,0) ..... . 0 | 00001490 3a 20 f2 48 75 6d 61 6e 0d 0a b4 16 20 20 20 c9 |: .Human.... .| 000014a0 20 31 20 3a 20 f2 43 6f 6d 70 75 74 65 72 0d 0a | 1 : .Computer..| 000014b0 be 07 20 20 cb 0d 0a c8 21 20 20 66 69 6e 69 73 |.. ....! finis| 000014c0 68 3d a4 43 68 65 63 6b 46 69 6e 69 73 68 28 70 |h=.CheckFinish(p| 000014d0 6c 61 79 65 72 29 0d 0a d2 06 20 cd 0d 0a dc 0e |layer).... .....| 000014e0 20 70 6c 61 79 65 72 2b 3d 31 0d 0a e6 2b 20 e7 | player+=1...+ .| 000014f0 20 70 6c 61 79 65 72 3e 4e 75 6d 50 6c 61 79 65 | player>NumPlaye| 00001500 72 73 20 8c 20 70 6c 61 79 65 72 3d 31 3a 74 75 |rs . player=1:tu| 00001510 72 6e 2b 3d 31 0d 0a f0 15 fd 20 66 69 6e 69 73 |rn+=1..... finis| 00001520 68 3e 30 20 84 20 71 75 69 74 0d 0a fa 0f f2 46 |h>0 . quit.....F| 00001530 69 6e 69 73 68 47 61 6d 65 0d 0b 04 05 e1 0d 0b |inishGame.......| 00001540 0e 05 3a 0d 0b 18 1a dd 20 a4 43 68 65 63 6b 46 |..:..... .CheckF| 00001550 69 6e 69 73 68 28 70 6c 61 79 65 72 29 0d 0b 22 |inish(player).."| 00001560 17 e3 20 6c 70 3d 31 20 b8 20 4e 75 6d 50 6c 61 |.. lp=1 . NumPla| 00001570 79 65 72 73 0d 0b 2c 2e 20 e7 20 28 61 6d 6d 6f |yers..,. . (ammo| 00001580 75 6e 74 28 6c 70 29 3e 30 20 80 20 6c 70 3c 3e |unt(lp)>0 . lp<>| 00001590 70 6c 61 79 65 72 29 20 84 20 74 75 72 6e 3d 31 |player) . turn=1| 000015a0 20 8c 0d 0b 36 08 20 20 3d 30 0d 0b 40 06 20 cd | ...6. =0..@. .| 000015b0 0d 0b 4a 05 ed 0d 0b 54 0b 3d 70 6c 61 79 65 72 |..J....T.=player| 000015c0 0d 0b 5e 05 3a 0d 0b 68 1a dd 20 a4 70 6f 73 28 |..^.:..h.. .pos(| 000015d0 70 73 29 20 3d 20 a8 28 70 73 2f 31 32 38 29 0d |ps) = .(ps/128).| 000015e0 0b 72 05 3a 0d 0b 7c 13 dd 20 a4 6c 65 67 61 6c |.r.:..|.. .legal| 000015f0 28 78 2c 79 2c 70 29 0d 0b 86 28 e7 20 6f 77 6e |(x,y,p)...(. own| 00001600 65 72 28 78 2c 79 29 3d 70 6c 61 79 65 72 20 84 |er(x,y)=player .| 00001610 20 6f 77 6e 65 72 28 78 2c 79 29 3d 30 20 8c 0d | owner(x,y)=0 ..| 00001620 0b 90 06 3d 31 0d 0b 9a 05 cd 0d 0b a4 06 3d 30 |...=1.........=0| 00001630 0d 0b ae 05 3a 0d 0b b8 10 dd f2 46 69 6e 69 73 |....:......Finis| 00001640 68 47 61 6d 65 0d 0b c2 21 f2 50 6c 61 63 65 53 |hGame...!.PlaceS| 00001650 70 72 69 74 65 28 22 76 6c 61 72 67 65 62 61 72 |prite("vlargebar| 00001660 22 2c 38 2c 30 29 0d 0b cc 06 ef 35 0d 0b d6 10 |",8,0).....5....| 00001670 e7 20 66 69 6e 69 73 68 3e 30 20 8c 0d 0b e0 0f |. finish>0 .....| 00001680 20 ec 20 31 30 39 36 2c 32 31 36 0d 0b ea 0f 20 | . 1096,216.... | 00001690 f1 22 57 49 4e 4e 45 52 21 22 0d 0b f4 2a 20 f2 |."WINNER!"...* .| 000016a0 50 6c 61 63 65 53 70 72 69 74 65 28 70 6c 61 79 |PlaceSprite(play| 000016b0 65 72 24 28 66 69 6e 69 73 68 29 2c 38 2e 35 2c |er$(finish),8.5,| 000016c0 2e 32 35 29 0d 0b fe 05 cc 0d 0c 08 0f 20 ec 20 |.25)......... . | 000016d0 31 30 38 38 2c 31 32 38 0d 0c 12 12 20 f1 20 22 |1088,128.... . "| 000016e0 4e 6f 20 57 69 6e 6e 65 72 22 0d 0c 1c 05 cd 0d |No Winner"......| 000016f0 0c 26 11 f2 44 72 61 77 49 6e 69 74 4d 65 6e 75 |.&..DrawInitMenu| 00001700 0d 0c 30 0a f2 69 6e 69 74 32 0d 0c 3a 0a f2 73 |..0..init2..:..s| 00001710 74 61 72 74 0d 0c 44 17 e7 20 ac 20 65 78 69 74 |tart..D.. . exit| 00001720 20 f2 44 72 61 77 42 6f 61 72 64 0d 0c 4e 05 e1 | .DrawBoard..N..| 00001730 0d 0c 58 05 3a 0d 0c 62 20 dd 20 f2 41 64 64 4f |..X.:..b . .AddO| 00001740 6e 65 54 6f 53 71 75 61 72 65 28 78 70 6f 73 2c |neToSquare(xpos,| 00001750 79 70 6f 73 29 0d 0c 6c 1a 73 74 72 65 6e 67 74 |ypos)..l.strengt| 00001760 68 28 78 70 6f 73 2c 79 70 6f 73 29 2b 3d 31 0d |h(xpos,ypos)+=1.| 00001770 0c 76 20 e7 20 6f 77 6e 65 72 28 78 70 6f 73 2c |.v . owner(xpos,| 00001780 79 70 6f 73 29 3c 3e 70 6c 61 79 65 72 20 8c 0d |ypos)<>player ..| 00001790 0c 80 17 20 61 6d 6d 6f 75 6e 74 28 70 6c 61 79 |... ammount(play| 000017a0 65 72 29 2b 3d 31 0d 0c 8a 38 20 e7 20 6f 77 6e |er)+=1...8 . own| 000017b0 65 72 28 78 70 6f 73 2c 79 70 6f 73 29 3e 30 20 |er(xpos,ypos)>0 | 000017c0 8c 20 61 6d 6d 6f 75 6e 74 28 6f 77 6e 65 72 28 |. ammount(owner(| 000017d0 78 70 6f 73 2c 79 70 6f 73 29 29 2d 3d 31 0d 0c |xpos,ypos))-=1..| 000017e0 94 0e 20 f2 61 6d 6d 6f 75 6e 74 73 0d 0c 9e 05 |.. .ammounts....| 000017f0 cd 0d 0c a8 1b 6f 77 6e 65 72 28 78 70 6f 73 2c |.....owner(xpos,| 00001800 79 70 6f 73 29 3d 70 6c 61 79 65 72 0d 0c b2 2b |ypos)=player...+| 00001810 f2 50 6c 61 63 65 53 70 72 69 74 65 28 70 6c 61 |.PlaceSprite(pla| 00001820 79 65 72 24 28 70 6c 61 79 65 72 29 2c 78 70 6f |yer$(player),xpo| 00001830 73 2c 79 70 6f 73 29 0d 0c bc 1d f2 57 72 69 74 |s,ypos).....Writ| 00001840 65 53 74 72 65 6e 67 74 68 28 78 70 6f 73 2c 79 |eStrength(xpos,y| 00001850 70 6f 73 29 0d 0c c6 05 e1 0d 0c d0 05 3a 0d 0c |pos).........:..| 00001860 da 22 dd 20 f2 43 68 65 63 6b 49 66 43 68 61 69 |.". .CheckIfChai| 00001870 6e 52 65 61 63 74 69 6f 6e 28 63 78 2c 63 79 29 |nReaction(cx,cy)| 00001880 0d 0c e4 21 43 72 69 74 69 63 61 6c 53 69 7a 65 |...!CriticalSize| 00001890 3d a4 63 72 69 74 69 63 61 6c 28 63 78 2c 63 79 |=.critical(cx,cy| 000018a0 29 0d 0c ee 24 e7 20 73 74 72 65 6e 67 74 68 28 |)...$. strength(| 000018b0 63 78 2c 63 79 29 3e 43 72 69 74 69 63 61 6c 53 |cx,cy)>CriticalS| 000018c0 69 7a 65 20 8c 0d 0c f8 13 20 f2 43 68 61 69 6e |ize ..... .Chain| 000018d0 52 65 61 63 74 69 6f 6e 0d 0d 02 05 cd 0d 0d 0c |Reaction........| 000018e0 05 e1 0d 0d 16 05 3a 0d 0d 20 16 dd 20 a4 63 72 |......:.. .. .cr| 000018f0 69 74 69 63 61 6c 28 63 78 2c 63 79 29 0d 0d 2a |itical(cx,cy)..*| 00001900 13 e7 20 63 78 3d 30 20 84 20 63 78 3d 37 20 8c |.. cx=0 . cx=7 .| 00001910 0d 0d 34 14 20 e7 20 63 79 3d 30 20 84 20 63 79 |..4. . cy=0 . cy| 00001920 3d 37 20 8c 0d 0d 3e 08 20 20 3d 31 0d 0d 48 06 |=7 ...>. =1..H.| 00001930 20 cc 0d 0d 52 08 20 20 3d 32 0d 0d 5c 06 20 cd | ...R. =2..\. .| 00001940 0d 0d 66 05 cc 0d 0d 70 14 20 e7 20 63 79 3d 30 |..f....p. . cy=0| 00001950 20 84 20 63 79 3d 37 20 8c 0d 0d 7a 08 20 20 3d | . cy=7 ...z. =| 00001960 32 0d 0d 84 06 20 cd 0d 0d 8e 05 cd 0d 0d 98 06 |2.... ..........| 00001970 3d 33 0d 0d a2 05 3a 0d 0d ac 14 dd 20 f2 43 68 |=3....:..... .Ch| 00001980 61 69 6e 52 65 61 63 74 69 6f 6e 0d 0d b6 05 f5 |ainReaction.....| 00001990 0d 0d c0 10 20 c8 97 20 6d 78 2c 6d 79 2c 6d 62 |.... .. mx,my,mb| 000019a0 0d 0d ca 29 20 e7 20 6d 62 3e 30 20 80 20 6d 78 |...) . mb>0 . mx| 000019b0 3e 31 30 35 36 20 80 20 6d 79 3e 35 31 32 20 80 |>1056 . my>512 .| 000019c0 20 6d 79 3c 37 36 38 20 8c 0d 0d d4 15 20 20 79 | my<768 ..... y| 000019d0 70 6f 73 3d a8 28 6d 79 2f 36 34 29 2d 37 0d 0d |pos=.(my/64)-7..| 000019e0 de 0f 20 20 c8 8e 20 79 70 6f 73 20 ca 0d 0d e8 |.. .. ypos ....| 000019f0 13 20 20 20 c9 20 32 20 3a 20 71 75 69 74 3d b9 |. . 2 : quit=.| 00001a00 0d 0d f2 0a 20 20 20 c9 20 33 0d 0d fc 15 20 20 |.... . 3.... | 00001a10 20 20 73 6f 75 6e 64 3d ac 20 73 6f 75 6e 64 0d | sound=. sound.| 00001a20 0e 06 13 20 20 20 20 f2 57 72 69 74 65 53 6f 75 |... .WriteSou| 00001a30 6e 64 0d 0e 10 07 20 20 cb 0d 0e 1a 13 20 20 e3 |nd.... ..... .| 00001a40 20 4c 3d 31 20 b8 20 31 30 30 30 30 0d 0e 24 07 | L=1 . 10000..$.| 00001a50 20 20 ed 0d 0e 2e 06 20 cd 0d 0e 38 0f 20 e7 20 | ..... ...8. . | 00001a60 71 75 69 74 3d 30 20 8c 0d 0e 42 19 20 20 4e 75 |quit=0 ...B. Nu| 00001a70 6d 62 65 72 4f 66 43 72 69 74 69 63 61 6c 73 3d |mberOfCriticals=| 00001a80 30 0d 0e 4c 0f 20 20 e3 20 78 3d 30 20 b8 20 37 |0..L. . x=0 . 7| 00001a90 0d 0e 56 10 20 20 20 e3 20 79 3d 30 20 b8 20 37 |..V. . y=0 . 7| 00001aa0 0d 0e 60 23 20 20 20 20 43 72 69 74 69 63 61 6c |..`# Critical| 00001ab0 53 69 7a 65 3d a4 63 72 69 74 69 63 61 6c 28 78 |Size=.critical(x| 00001ac0 2c 79 29 0d 0e 6a 26 20 20 20 20 e7 20 73 74 72 |,y)..j& . str| 00001ad0 65 6e 67 74 68 28 78 2c 79 29 3e 43 72 69 74 69 |ength(x,y)>Criti| 00001ae0 63 61 6c 53 69 7a 65 20 8c 0d 0e 74 19 20 20 20 |calSize ...t. | 00001af0 20 20 63 72 69 74 69 63 61 6c 73 28 78 2c 79 29 | criticals(x,y)| 00001b00 3d 31 0d 0e 7e 26 20 20 20 20 20 f2 50 6c 61 63 |=1..~& .Plac| 00001b10 65 53 70 72 69 74 65 28 22 65 78 70 6c 6f 73 69 |eSprite("explosi| 00001b20 6f 6e 22 2c 78 2c 79 29 0d 0e 88 12 20 20 20 20 |on",x,y).... | 00001b30 20 e7 20 73 6f 75 6e 64 20 8c 0d 0e 92 18 20 20 | . sound ..... | 00001b40 20 20 20 20 d4 20 32 2c 2d 31 35 2c 32 35 35 2c | . 2,-15,255,| 00001b50 31 30 0d 0e 9c 0a 20 20 20 20 20 cd 0d 0e a6 29 |10.... ....)| 00001b60 20 20 20 20 20 e7 20 73 74 72 65 6e 67 74 68 28 | . strength(| 00001b70 78 2c 79 29 3d 43 72 69 74 69 63 61 6c 53 69 7a |x,y)=CriticalSiz| 00001b80 65 2b 31 20 8c 0d 0e b0 20 20 20 20 20 20 20 61 |e+1 .... a| 00001b90 6d 6d 6f 75 6e 74 28 6f 77 6e 65 72 28 78 2c 79 |mmount(owner(x,y| 00001ba0 29 29 2d 3d 31 0d 0e ba 0a 20 20 20 20 20 cd 0d |))-=1.... ..| 00001bb0 0e c4 12 20 20 20 20 20 f2 61 6d 6d 6f 75 6e 74 |... .ammount| 00001bc0 73 0d 0e ce 26 20 20 20 20 20 73 74 72 65 6e 67 |s...& streng| 00001bd0 74 68 28 78 2c 79 29 2d 3d 43 72 69 74 69 63 61 |th(x,y)-=Critica| 00001be0 6c 53 69 7a 65 2b 31 0d 0e d8 1d 20 20 20 20 20 |lSize+1.... | 00001bf0 4e 75 6d 62 65 72 4f 66 43 72 69 74 69 63 61 6c |NumberOfCritical| 00001c00 73 2b 3d 31 0d 0e e2 09 20 20 20 20 cd 0d 0e ec |s+=1.... ....| 00001c10 08 20 20 20 ed 0d 0e f6 07 20 20 ed 0d 0f 00 0f |. ..... .....| 00001c20 20 20 e3 20 78 3d 30 20 b8 20 37 0d 0f 0a 10 20 | . x=0 . 7.... | 00001c30 20 20 e3 20 79 3d 30 20 b8 20 37 0d 0f 14 1a 20 | . y=0 . 7.... | 00001c40 20 20 20 e7 20 63 72 69 74 69 63 61 6c 73 28 78 | . criticals(x| 00001c50 2c 79 29 20 8c 0d 0f 1e 1e 20 20 20 20 20 f2 41 |,y) ..... .A| 00001c60 64 64 4f 6e 65 54 6f 42 6f 72 64 65 72 73 28 78 |ddOneToBorders(x| 00001c70 2c 79 29 0d 0f 28 09 20 20 20 20 cd 0d 0f 32 08 |,y)..(. ...2.| 00001c80 20 20 20 ed 0d 0f 3c 07 20 20 ed 0d 0f 46 0f 20 | ...<. ...F. | 00001c90 20 e3 20 78 3d 30 20 b8 20 37 0d 0f 50 10 20 20 | . x=0 . 7..P. | 00001ca0 20 e3 20 79 3d 30 20 b8 20 37 0d 0f 5a 1a 20 20 | . y=0 . 7..Z. | 00001cb0 20 20 e7 20 63 72 69 74 69 63 61 6c 73 28 78 2c | . criticals(x,| 00001cc0 79 29 20 8c 0d 0f 64 27 20 20 20 20 20 e7 20 73 |y) ...d' . s| 00001cd0 74 72 65 6e 67 74 68 28 78 2c 79 29 3d 30 20 6f |trength(x,y)=0 o| 00001ce0 77 6e 65 72 28 78 2c 79 29 3d 30 0d 0f 6e 2e 20 |wner(x,y)=0..n. | 00001cf0 20 20 20 20 f2 50 6c 61 63 65 53 70 72 69 74 65 | .PlaceSprite| 00001d00 28 70 6c 61 79 65 72 24 28 6f 77 6e 65 72 28 78 |(player$(owner(x| 00001d10 2c 79 29 29 2c 78 2c 79 29 0d 0f 78 31 20 20 20 |,y)),x,y)..x1 | 00001d20 20 20 f2 50 6c 61 63 65 53 70 72 69 74 65 28 6e | .PlaceSprite(n| 00001d30 75 6d 62 65 72 24 28 73 74 72 65 6e 67 74 68 28 |umber$(strength(| 00001d40 78 2c 79 29 29 2c 78 2c 79 29 0d 0f 82 19 20 20 |x,y)),x,y).... | 00001d50 20 20 20 63 72 69 74 69 63 61 6c 73 28 78 2c 79 | criticals(x,y| 00001d60 29 3d 30 0d 0f 8c 09 20 20 20 20 cd 0d 0f 96 08 |)=0.... .....| 00001d70 20 20 20 ed 0d 0f a0 07 20 20 ed 0d 0f aa 06 20 | ..... ..... | 00001d80 cd 0d 0f b4 20 fd 20 4e 75 6d 62 65 72 4f 66 43 |.... . NumberOfC| 00001d90 72 69 74 69 63 61 6c 73 3d 30 20 84 20 71 75 69 |riticals=0 . qui| 00001da0 74 0d 0f be 05 e1 0d 0f c8 05 3a 0d 0f d2 1d dd |t.........:.....| 00001db0 20 f2 41 64 64 4f 6e 65 54 6f 42 6f 72 64 65 72 | .AddOneToBorder| 00001dc0 73 28 62 78 2c 62 79 29 0d 0f dc 0c 61 6c 74 3d |s(bx,by)....alt=| 00001dd0 62 78 2d 31 0d 0f e6 0e e7 20 61 6c 74 3e 2d 31 |bx-1..... alt>-1| 00001de0 20 8c 0d 0f f0 1c 20 f2 41 64 64 4f 6e 65 54 6f | ..... .AddOneTo| 00001df0 53 71 75 61 72 65 28 61 6c 74 2c 62 79 29 0d 0f |Square(alt,by)..| 00001e00 fa 05 cd 0d 10 04 0c 61 6c 74 3d 62 78 2b 31 0d |.......alt=bx+1.| 00001e10 10 0e 0d e7 20 61 6c 74 3c 38 20 8c 0d 10 18 1c |.... alt<8 .....| 00001e20 20 f2 41 64 64 4f 6e 65 54 6f 53 71 75 61 72 65 | .AddOneToSquare| 00001e30 28 61 6c 74 2c 62 79 29 0d 10 22 05 cd 0d 10 2c |(alt,by).."....,| 00001e40 0c 61 6c 74 3d 62 79 2d 31 0d 10 36 0e e7 20 61 |.alt=by-1..6.. a| 00001e50 6c 74 3e 2d 31 20 8c 0d 10 40 1c 20 f2 41 64 64 |lt>-1 ...@. .Add| 00001e60 4f 6e 65 54 6f 53 71 75 61 72 65 28 62 78 2c 61 |OneToSquare(bx,a| 00001e70 6c 74 29 0d 10 4a 05 cd 0d 10 54 0c 61 6c 74 3d |lt)..J....T.alt=| 00001e80 62 79 2b 31 0d 10 5e 0d e7 20 61 6c 74 3c 38 20 |by+1..^.. alt<8 | 00001e90 8c 0d 10 68 1c 20 f2 41 64 64 4f 6e 65 54 6f 53 |...h. .AddOneToS| 00001ea0 71 75 61 72 65 28 62 78 2c 61 6c 74 29 0d 10 72 |quare(bx,alt)..r| 00001eb0 05 cd 0d 10 7c 05 e1 0d 10 86 05 3a 0d 10 90 0c |....|......:....| 00001ec0 dd 20 f2 48 75 6d 61 6e 0d 10 9a 0f 54 75 72 6e |. .Human....Turn| 00001ed0 54 61 6b 65 6e 3d a3 0d 10 a4 05 f5 0d 10 ae 10 |Taken=..........| 00001ee0 20 c8 97 20 6d 78 2c 6d 79 2c 6d 62 0d 10 b8 29 | .. mx,my,mb...)| 00001ef0 20 e7 20 6d 62 3e 30 20 80 20 6d 78 3e 31 30 35 | . mb>0 . mx>105| 00001f00 36 20 80 20 6d 79 3e 35 31 32 20 80 20 6d 79 3c |6 . my>512 . my<| 00001f10 37 36 38 20 8c 0d 10 c2 15 20 20 79 70 6f 73 3d |768 ..... ypos=| 00001f20 a8 28 6d 79 2f 36 34 29 2d 37 0d 10 cc 0f 20 20 |.(my/64)-7.... | 00001f30 c8 8e 20 79 70 6f 73 20 ca 0d 10 d6 13 20 20 20 |.. ypos ..... | 00001f40 c9 20 32 20 3a 20 71 75 69 74 3d b9 0d 10 e0 0a |. 2 : quit=.....| 00001f50 20 20 20 c9 20 33 0d 10 ea 15 20 20 20 20 73 6f | . 3.... so| 00001f60 75 6e 64 3d ac 20 73 6f 75 6e 64 0d 10 f4 13 20 |und=. sound.... | 00001f70 20 20 20 f2 57 72 69 74 65 53 6f 75 6e 64 0d 10 | .WriteSound..| 00001f80 fe 07 20 20 cb 0d 11 08 13 20 20 e3 20 4c 3d 31 |.. ..... . L=1| 00001f90 20 b8 20 31 30 30 30 30 0d 11 12 07 20 20 ed 0d | . 10000.... ..| 00001fa0 11 1c 06 20 cd 0d 11 26 12 20 78 70 6f 73 3d a4 |... ...&. xpos=.| 00001fb0 70 6f 73 28 6d 78 29 0d 11 30 16 20 e7 20 6d 62 |pos(mx)..0. . mb| 00001fc0 3e 30 20 80 20 78 70 6f 73 3c 38 20 8c 0d 11 3a |>0 . xpos<8 ...:| 00001fd0 13 20 20 79 70 6f 73 3d a4 70 6f 73 28 6d 79 29 |. ypos=.pos(my)| 00001fe0 0d 11 44 24 20 20 6c 65 67 61 6c 3d a4 6c 65 67 |..D$ legal=.leg| 00001ff0 61 6c 28 78 70 6f 73 2c 79 70 6f 73 2c 70 6c 61 |al(xpos,ypos,pla| 00002000 79 65 72 29 0d 11 4e 0f 20 20 e7 20 6c 65 67 61 |yer)..N. . lega| 00002010 6c 20 8c 0d 11 58 21 20 20 20 f2 41 64 64 4f 6e |l ...X! .AddOn| 00002020 65 54 6f 53 71 75 61 72 65 28 78 70 6f 73 2c 79 |eToSquare(xpos,y| 00002030 70 6f 73 29 0d 11 62 27 20 20 20 f2 43 68 65 63 |pos)..b' .Chec| 00002040 6b 49 66 43 68 61 69 6e 52 65 61 63 74 69 6f 6e |kIfChainReaction| 00002050 28 78 70 6f 73 2c 79 70 6f 73 29 0d 11 6c 12 20 |(xpos,ypos)..l. | 00002060 20 20 54 75 72 6e 54 61 6b 65 6e 3d b9 0d 11 76 | TurnTaken=...v| 00002070 07 20 20 cd 0d 11 80 06 20 cd 0d 11 8a 16 fd 20 |. ..... ...... | 00002080 54 75 72 6e 54 61 6b 65 6e 20 84 20 71 75 69 74 |TurnTaken . quit| 00002090 0d 11 94 05 e1 0d 11 9e 05 3a 0d 11 a8 0f dd 20 |.........:..... | 000020a0 f2 43 6f 6d 70 75 74 65 72 0d 11 b2 1d c8 8e 20 |.Computer...... | 000020b0 50 6c 61 79 65 72 54 79 70 65 28 70 6c 61 79 65 |PlayerType(playe| 000020c0 72 2c 31 29 20 ca 0d 11 bc 1f 20 c9 20 30 20 3a |r,1) ..... . 0 :| 000020d0 20 f2 43 6f 6d 70 75 74 65 72 54 6f 74 61 6c 52 | .ComputerTotalR| 000020e0 61 6e 64 6f 6d 0d 11 c6 21 20 c9 20 31 20 3a 20 |andom...! . 1 : | 000020f0 f2 43 6f 6d 70 75 74 65 72 50 61 72 74 69 61 6c |.ComputerPartial| 00002100 52 61 6e 64 6f 6d 0d 11 d0 33 20 c9 20 32 20 3a |Random...3 . 2 :| 00002110 20 f2 43 6f 6d 70 75 74 65 72 4d 69 78 52 61 6e | .ComputerMixRan| 00002120 64 6f 6d 28 50 6c 61 79 65 72 54 79 70 65 28 70 |dom(PlayerType(p| 00002130 6c 61 79 65 72 2c 32 29 29 0d 11 da 20 20 c9 20 |layer,2))... . | 00002140 33 20 3a 20 f2 43 6f 6d 70 75 74 65 72 43 6f 72 |3 : .ComputerCor| 00002150 6e 65 72 4d 69 78 28 30 29 0d 11 e4 e4 e4 20 34 |nerMix(0)..... 4| 00002160 20 3a 20 f2 43 6f 6d 70 75 74 65 72 43 6f 72 6e | : .ComputerCorn| 00002170 65 72 4d 69 78 28 50 6c 61 79 65 72 54 79 70 65 |erMix(PlayerType| 00002180 28 70 6c 61 79 65 72 2c 32 29 29 0d 11 ee 32 20 |(player,2))...2 | 00002190 c9 20 35 20 3a 20 f2 43 6f 6d 70 75 74 65 72 4d |. 5 : .ComputerM| 000021a0 61 78 47 61 69 6e 73 28 50 6c 61 79 65 72 54 79 |axGains(PlayerTy| 000021b0 70 65 28 70 6c 61 79 65 72 2c 32 29 29 0d 11 f8 |pe(player,2))...| 000021c0 1e 20 7f 20 3a 20 f2 43 6f 6d 70 75 74 65 72 43 |. . : .ComputerC| 000021d0 6f 72 6e 65 72 4d 69 78 28 30 29 0d 12 02 05 cb |ornerMix(0).....| 000021e0 0d 12 0c 05 e1 0d 12 16 05 3a 0d 12 20 1a dd 20 |.........:.. .. | 000021f0 f2 43 6f 6d 70 75 74 65 72 54 6f 74 61 6c 52 61 |.ComputerTotalRa| 00002200 6e 64 6f 6d 0d 12 2a 05 f5 0d 12 34 10 20 70 6f |ndom..*....4. po| 00002210 73 3d b3 28 36 34 29 2d 31 0d 12 3e 11 20 78 70 |s=.(64)-1..>. xp| 00002220 6f 73 3d 70 6f 73 20 81 20 38 0d 12 48 11 20 79 |os=pos . 8..H. y| 00002230 70 6f 73 3d 70 6f 73 20 83 20 38 0d 12 52 23 20 |pos=pos . 8..R# | 00002240 6c 65 67 61 6c 3d a4 6c 65 67 61 6c 28 78 70 6f |legal=.legal(xpo| 00002250 73 2c 79 70 6f 73 2c 70 6c 61 79 65 72 29 0d 12 |s,ypos,player)..| 00002260 5c 0b fd 20 6c 65 67 61 6c 0d 12 66 1e f2 41 64 |\.. legal..f..Ad| 00002270 64 4f 6e 65 54 6f 53 71 75 61 72 65 28 78 70 6f |dOneToSquare(xpo| 00002280 73 2c 79 70 6f 73 29 0d 12 70 24 f2 43 68 65 63 |s,ypos)..p$.Chec| 00002290 6b 49 66 43 68 61 69 6e 52 65 61 63 74 69 6f 6e |kIfChainReaction| 000022a0 28 78 70 6f 73 2c 79 70 6f 73 29 0d 12 7a 05 e1 |(xpos,ypos)..z..| 000022b0 0d 12 84 05 3a 0d 12 8e 1c dd 20 f2 43 6f 6d 70 |....:..... .Comp| 000022c0 75 74 65 72 50 61 72 74 69 61 6c 52 61 6e 64 6f |uterPartialRando| 000022d0 6d 0d 12 98 0e e7 20 74 75 72 6e 3d 31 20 8c 0d |m..... turn=1 ..| 000022e0 12 a2 19 20 f2 43 6f 6d 70 75 74 65 72 54 6f 74 |... .ComputerTot| 000022f0 61 6c 52 61 6e 64 6f 6d 0d 12 ac 05 cc 0d 12 b6 |alRandom........| 00002300 06 20 f5 0d 12 c0 1b 20 20 e7 20 61 6d 6d 6f 75 |. ..... . ammou| 00002310 6e 74 28 70 6c 61 79 65 72 29 3e 32 20 8c 0d 12 |nt(player)>2 ...| 00002320 ca 1f 20 20 20 70 6f 73 3d b3 28 61 6d 6d 6f 75 |.. pos=.(ammou| 00002330 6e 74 28 70 6c 61 79 65 72 29 2d 31 29 0d 12 d4 |nt(player)-1)...| 00002340 07 20 20 cc 0d 12 de 1c 20 20 20 70 6f 73 3d 61 |. ..... pos=a| 00002350 6d 6d 6f 75 6e 74 28 70 6c 61 79 65 72 29 2d 31 |mmount(player)-1| 00002360 0d 12 e8 07 20 20 cd 0d 12 f2 0d 20 20 6c 65 67 |.... ..... leg| 00002370 61 6c 3d a3 0d 12 fc 0c 20 20 78 70 6f 73 3d 30 |al=..... xpos=0| 00002380 0d 13 06 0c 20 20 79 70 6f 73 3d 30 0d 13 10 07 |.... ypos=0....| 00002390 20 20 f5 0d 13 1a 2a 20 20 20 e7 20 6f 77 6e 65 | ....* . owne| 000023a0 72 28 78 70 6f 73 2c 79 70 6f 73 29 3d 70 6c 61 |r(xpos,ypos)=pla| 000023b0 79 65 72 20 80 20 70 6f 73 3d 30 20 8c 0d 13 24 |yer . pos=0 ...$| 000023c0 0f 20 20 20 20 6c 65 67 61 6c 3d b9 0d 13 2e 08 |. legal=.....| 000023d0 20 20 20 cc 0d 13 38 28 20 20 20 20 e7 20 6f 77 | ...8( . ow| 000023e0 6e 65 72 28 78 70 6f 73 2c 79 70 6f 73 29 3d 70 |ner(xpos,ypos)=p| 000023f0 6c 61 79 65 72 20 70 6f 73 2d 3d 31 0d 13 42 0f |layer pos-=1..B.| 00002400 20 20 20 20 78 70 6f 73 2b 3d 31 0d 13 4c 13 20 | xpos+=1..L. | 00002410 20 20 20 e7 20 78 70 6f 73 3d 38 20 20 8c 0d 13 | . xpos=8 ...| 00002420 56 0f 20 20 20 20 20 78 70 6f 73 3d 30 0d 13 60 |V. xpos=0..`| 00002430 10 20 20 20 20 20 79 70 6f 73 2b 3d 31 0d 13 6a |. ypos+=1..j| 00002440 09 20 20 20 20 cd 0d 13 74 08 20 20 20 cd 0d 13 |. ...t. ...| 00002450 7e 15 20 20 fd 20 70 6f 73 3d 30 20 80 20 6c 65 |~. . pos=0 . le| 00002460 67 61 6c 0d 13 88 0c 20 fd 20 6c 65 67 61 6c 0d |gal.... . legal.| 00002470 13 92 1f 20 f2 41 64 64 4f 6e 65 54 6f 53 71 75 |... .AddOneToSqu| 00002480 61 72 65 28 78 70 6f 73 2c 79 70 6f 73 29 0d 13 |are(xpos,ypos)..| 00002490 9c 25 20 f2 43 68 65 63 6b 49 66 43 68 61 69 6e |.% .CheckIfChain| 000024a0 52 65 61 63 74 69 6f 6e 28 78 70 6f 73 2c 79 70 |Reaction(xpos,yp| 000024b0 6f 73 29 0d 13 a6 05 cd 0d 13 b0 05 e1 0d 13 ba |os).............| 000024c0 05 3a 0d 13 c4 21 dd 20 f2 43 6f 6d 70 75 74 65 |.:...!. .Compute| 000024d0 72 43 6f 72 6e 65 72 4d 69 78 28 72 54 6f 42 65 |rCornerMix(rToBe| 000024e0 61 74 29 0d 13 ce 0d c8 8e 20 74 75 72 6e 20 ca |at)...... turn .| 000024f0 0d 13 d8 08 20 c9 20 31 0d 13 e2 0c 20 20 67 6f |.... . 1.... go| 00002500 6e 65 3d a3 0d 13 ec 07 20 20 f5 0d 13 f6 13 20 |ne=..... ..... | 00002510 20 20 78 3d 28 b3 28 32 29 2d 31 29 2a 37 0d 14 | x=(.(2)-1)*7..| 00002520 00 13 20 20 20 79 3d 28 b3 28 32 29 2d 31 29 2a |.. y=(.(2)-1)*| 00002530 37 0d 14 0a 17 20 20 20 e7 20 6f 77 6e 65 72 28 |7.... . owner(| 00002540 78 2c 79 29 3d 30 20 8c 0d 14 14 1c 20 20 20 20 |x,y)=0 ..... | 00002550 f2 41 64 64 4f 6e 65 54 6f 53 71 75 61 72 65 28 |.AddOneToSquare(| 00002560 78 2c 79 29 0d 14 1e 22 20 20 20 20 f2 43 68 65 |x,y)..." .Che| 00002570 63 6b 49 66 43 68 61 69 6e 52 65 61 63 74 69 6f |ckIfChainReactio| 00002580 6e 28 78 2c 79 29 0d 14 28 0e 20 20 20 20 67 6f |n(x,y)..(. go| 00002590 6e 65 3d b9 0d 14 32 08 20 20 20 cd 0d 14 3c 0c |ne=...2. ...<.| 000025a0 20 20 fd 20 67 6f 6e 65 0d 14 46 08 20 c9 20 32 | . gone..F. . 2| 000025b0 0d 14 50 0d 20 20 78 70 6f 73 3d 2d 31 0d 14 5a |..P. xpos=-1..Z| 000025c0 0d 20 20 79 70 6f 73 3d 2d 31 0d 14 64 0c 20 20 |. ypos=-1..d. | 000025d0 67 6f 6e 65 3d a3 0d 14 6e 07 20 20 f5 0d 14 78 |gone=...n. ...x| 000025e0 14 20 20 20 e3 20 78 3d 30 20 b8 20 37 20 88 20 |. . x=0 . 7 . | 000025f0 37 0d 14 82 15 20 20 20 20 e3 20 79 3d 30 20 b8 |7.... . y=0 .| 00002600 20 37 20 88 20 37 0d 14 8c 28 20 20 20 20 20 e7 | 7 . 7...( .| 00002610 20 6f 77 6e 65 72 28 78 2c 79 29 3d 70 6c 61 79 | owner(x,y)=play| 00002620 65 72 20 8c 20 70 78 3d 78 3a 70 79 3d 79 0d 14 |er . px=x:py=y..| 00002630 96 09 20 20 20 20 ed 0d 14 a0 08 20 20 20 ed 0d |.. ..... ..| 00002640 14 aa 0e 20 20 20 6c 65 67 61 6c 3d a3 0d 14 b4 |... legal=....| 00002650 08 20 20 20 f5 0d 14 be 10 20 20 20 20 e7 20 70 |. ..... . p| 00002660 78 3d 37 20 8c 0d 14 c8 11 20 20 20 20 20 e7 20 |x=7 ..... . | 00002670 70 79 3d 37 20 8c 0d 14 d2 1a 20 20 20 20 20 20 |py=7 ..... | 00002680 e7 20 6f 77 6e 65 72 28 37 2c 36 29 3d 30 20 8c |. owner(7,6)=0 .| 00002690 0d 14 dc 11 20 20 20 20 20 20 20 78 70 6f 73 3d |.... xpos=| 000026a0 37 0d 14 e6 11 20 20 20 20 20 20 20 79 70 6f 73 |7.... ypos| 000026b0 3d 36 0d 14 f0 0b 20 20 20 20 20 20 cc 0d 14 fa |=6.... ....| 000026c0 1b 20 20 20 20 20 20 20 e7 20 6f 77 6e 65 72 28 |. . owner(| 000026d0 36 2c 37 29 3d 30 20 8c 0d 15 04 12 20 20 20 20 |6,7)=0 ..... | 000026e0 20 20 20 20 78 70 6f 73 3d 36 0d 15 0e 12 20 20 | xpos=6.... | 000026f0 20 20 20 20 20 20 79 70 6f 73 3d 37 0d 15 18 0c | ypos=7....| 00002700 20 20 20 20 20 20 20 cd 0d 15 22 0b 20 20 20 20 | ...". | 00002710 20 20 cd 0d 15 2c 0a 20 20 20 20 20 cc 0d 15 36 | ...,. ...6| 00002720 1a 20 20 20 20 20 20 e7 20 6f 77 6e 65 72 28 37 |. . owner(7| 00002730 2c 31 29 3d 30 20 8c 0d 15 40 11 20 20 20 20 20 |,1)=0 ...@. | 00002740 20 20 78 70 6f 73 3d 37 0d 15 4a 11 20 20 20 20 | xpos=7..J. | 00002750 20 20 20 79 70 6f 73 3d 31 0d 15 54 0b 20 20 20 | ypos=1..T. | 00002760 20 20 20 cc 0d 15 5e 1b 20 20 20 20 20 20 20 e7 | ...^. .| 00002770 20 6f 77 6e 65 72 28 36 2c 30 29 3d 30 20 8c 0d | owner(6,0)=0 ..| 00002780 15 68 12 20 20 20 20 20 20 20 20 78 70 6f 73 3d |.h. xpos=| 00002790 36 0d 15 72 12 20 20 20 20 20 20 20 20 79 70 6f |6..r. ypo| 000027a0 73 3d 30 0d 15 7c 0c 20 20 20 20 20 20 20 cd 0d |s=0..|. ..| 000027b0 15 86 0b 20 20 20 20 20 20 cd 0d 15 90 0a 20 20 |... ..... | 000027c0 20 20 20 cd 0d 15 9a 09 20 20 20 20 cc 0d 15 a4 | ..... ....| 000027d0 11 20 20 20 20 20 e7 20 70 79 3d 37 20 8c 0d 15 |. . py=7 ...| 000027e0 ae 1a 20 20 20 20 20 20 e7 20 6f 77 6e 65 72 28 |.. . owner(| 000027f0 30 2c 36 29 3d 30 20 8c 0d 15 b8 11 20 20 20 20 |0,6)=0 ..... | 00002800 20 20 20 78 70 6f 73 3d 30 0d 15 c2 11 20 20 20 | xpos=0.... | 00002810 20 20 20 20 79 70 6f 73 3d 36 0d 15 cc 0b 20 20 | ypos=6.... | 00002820 20 20 20 20 cc 0d 15 d6 1b 20 20 20 20 20 20 20 | ..... | 00002830 e7 20 6f 77 6e 65 72 28 31 2c 37 29 3d 30 20 8c |. owner(1,7)=0 .| 00002840 0d 15 e0 12 20 20 20 20 20 20 20 20 78 70 6f 73 |.... xpos| 00002850 3d 31 0d 15 ea 12 20 20 20 20 20 20 20 20 79 70 |=1.... yp| 00002860 6f 73 3d 37 0d 15 f4 0c 20 20 20 20 20 20 20 cd |os=7.... .| 00002870 0d 15 fe 0b 20 20 20 20 20 20 cd 0d 16 08 0a 20 |.... ..... | 00002880 20 20 20 20 cc 0d 16 12 1a 20 20 20 20 20 20 e7 | ..... .| 00002890 20 6f 77 6e 65 72 28 30 2c 31 29 3d 30 20 8c 0d | owner(0,1)=0 ..| 000028a0 16 1c 11 20 20 20 20 20 20 20 78 70 6f 73 3d 30 |... xpos=0| 000028b0 0d 16 26 11 20 20 20 20 20 20 20 79 70 6f 73 3d |..&. ypos=| 000028c0 31 0d 16 30 0b 20 20 20 20 20 20 cc 0d 16 3a 1b |1..0. ...:.| 000028d0 20 20 20 20 20 20 20 e7 20 6f 77 6e 65 72 28 31 | . owner(1| 000028e0 2c 30 29 3d 30 20 8c 0d 16 44 12 20 20 20 20 20 |,0)=0 ...D. | 000028f0 20 20 20 78 70 6f 73 3d 31 0d 16 4e 12 20 20 20 | xpos=1..N. | 00002900 20 20 20 20 20 79 70 6f 73 3d 30 0d 16 58 0c 20 | ypos=0..X. | 00002910 20 20 20 20 20 20 cd 0d 16 62 0b 20 20 20 20 20 | ...b. | 00002920 20 cd 0d 16 6c 0a 20 20 20 20 20 cd 0d 16 76 09 | ...l. ...v.| 00002930 20 20 20 20 cd 0d 16 80 1d 20 20 20 20 e7 20 78 | ..... . x| 00002940 70 6f 73 3e 2d 31 20 80 20 79 70 6f 73 3e 2d 31 |pos>-1 . ypos>-1| 00002950 20 8c 0d 16 8a 27 20 20 20 20 20 6c 65 67 61 6c | ....' legal| 00002960 3d a4 6c 65 67 61 6c 28 78 70 6f 73 2c 79 70 6f |=.legal(xpos,ypo| 00002970 73 2c 70 6c 61 79 65 72 29 0d 16 94 09 20 20 20 |s,player).... | 00002980 20 cd 0d 16 9e 24 20 20 20 fd 20 6c 65 67 61 6c | ....$ . legal| 00002990 20 84 20 28 78 70 6f 73 3d 2d 31 20 80 20 79 70 | . (xpos=-1 . yp| 000029a0 6f 73 3d 2d 31 29 0d 16 a8 1c 20 20 20 e7 20 78 |os=-1).... . x| 000029b0 70 6f 73 3e 2d 31 20 80 20 79 70 6f 73 3e 2d 31 |pos>-1 . ypos>-1| 000029c0 20 8c 0d 16 b2 22 20 20 20 20 f2 41 64 64 4f 6e | ...." .AddOn| 000029d0 65 54 6f 53 71 75 61 72 65 28 78 70 6f 73 2c 79 |eToSquare(xpos,y| 000029e0 70 6f 73 29 0d 16 bc 28 20 20 20 20 f2 43 68 65 |pos)...( .Che| 000029f0 63 6b 49 66 43 68 61 69 6e 52 65 61 63 74 69 6f |ckIfChainReactio| 00002a00 6e 28 78 70 6f 73 2c 79 70 6f 73 29 0d 16 c6 0e |n(xpos,ypos)....| 00002a10 20 20 20 20 67 6f 6e 65 3d b9 0d 16 d0 08 20 20 | gone=..... | 00002a20 20 cc 0d 16 da 23 20 20 20 20 f2 43 6f 6d 70 75 | ....# .Compu| 00002a30 74 65 72 4d 69 78 52 61 6e 64 6f 6d 28 72 54 6f |terMixRandom(rTo| 00002a40 42 65 61 74 29 0d 16 e4 0e 20 20 20 20 67 6f 6e |Beat).... gon| 00002a50 65 3d b9 0d 16 ee 08 20 20 20 cd 0d 16 f8 0c 20 |e=..... ..... | 00002a60 20 fd 20 67 6f 6e 65 0d 17 02 06 20 7f 0d 17 0c | . gone.... ....| 00002a70 21 20 20 f2 43 6f 6d 70 75 74 65 72 4d 69 78 52 |! .ComputerMixR| 00002a80 61 6e 64 6f 6d 28 72 54 6f 42 65 61 74 29 0d 17 |andom(rToBeat)..| 00002a90 16 05 cb 0d 17 20 05 e1 0d 17 2a 05 3a 0d 17 34 |..... ....*.:..4| 00002aa0 21 dd 20 f2 43 6f 6d 70 75 74 65 72 4d 69 78 52 |!. .ComputerMixR| 00002ab0 61 6e 64 6f 6d 28 72 54 6f 42 65 61 74 29 0d 17 |andom(rToBeat)..| 00002ac0 3e 0d c8 8e 20 74 75 72 6e 20 ca 0d 17 48 1f 20 |>... turn ...H. | 00002ad0 c9 20 31 20 3a 20 f2 43 6f 6d 70 75 74 65 72 54 |. 1 : .ComputerT| 00002ae0 6f 74 61 6c 52 61 6e 64 6f 6d 0d 17 52 06 20 7f |otalRandom..R. .| 00002af0 0d 17 5c 12 20 20 72 6e 64 3d b3 28 31 30 30 29 |..\. rnd=.(100)| 00002b00 2d 31 0d 17 66 16 20 20 e7 20 72 6e 64 3e 3d 72 |-1..f. . rnd>=r| 00002b10 54 6f 42 65 61 74 20 8c 0d 17 70 1d 20 20 20 f2 |ToBeat ...p. .| 00002b20 43 6f 6d 70 75 74 65 72 50 61 72 74 69 61 6c 52 |ComputerPartialR| 00002b30 61 6e 64 6f 6d 0d 17 7a 07 20 20 cc 0d 17 84 1b |andom..z. .....| 00002b40 20 20 20 f2 43 6f 6d 70 75 74 65 72 54 6f 74 61 | .ComputerTota| 00002b50 6c 52 61 6e 64 6f 6d 0d 17 8e 07 20 20 cd 0d 17 |lRandom.... ...| 00002b60 98 05 cb 0d 17 a2 05 e1 0d 17 ac 05 3a 0d 17 b6 |............:...| 00002b70 2a dd 20 f2 43 6f 6d 70 75 74 65 72 43 68 65 63 |*. .ComputerChec| 00002b80 6b 49 66 43 68 61 69 6e 52 65 61 63 74 69 6f 6e |kIfChainReaction| 00002b90 28 63 78 2c 63 79 29 0d 17 c0 21 43 72 69 74 69 |(cx,cy)...!Criti| 00002ba0 63 61 6c 53 69 7a 65 3d a4 63 72 69 74 69 63 61 |calSize=.critica| 00002bb0 6c 28 63 78 2c 63 79 29 0d 17 ca 28 e7 20 54 65 |l(cx,cy)...(. Te| 00002bc0 6d 70 53 74 72 65 6e 67 74 68 28 63 78 2c 63 79 |mpStrength(cx,cy| 00002bd0 29 3e 43 72 69 74 69 63 61 6c 53 69 7a 65 20 8c |)>CriticalSize .| 00002be0 0d 17 d4 1b 20 f2 43 6f 6d 70 75 74 65 72 43 68 |.... .ComputerCh| 00002bf0 61 69 6e 52 65 61 63 74 69 6f 6e 0d 17 de 05 cd |ainReaction.....| 00002c00 0d 17 e8 05 e1 0d 17 f2 05 3a 0d 17 fc 1c dd 20 |.........:..... | 00002c10 f2 43 6f 6d 70 75 74 65 72 43 68 61 69 6e 52 65 |.ComputerChainRe| 00002c20 61 63 74 69 6f 6e 0d 18 06 05 f5 0d 18 10 19 20 |action......... | 00002c30 20 4e 75 6d 62 65 72 4f 66 43 72 69 74 69 63 61 | NumberOfCritica| 00002c40 6c 73 3d 30 0d 18 1a 0f 20 20 e3 20 78 3d 30 20 |ls=0.... . x=0 | 00002c50 b8 20 37 0d 18 24 10 20 20 20 e3 20 79 3d 30 20 |. 7..$. . y=0 | 00002c60 b8 20 37 0d 18 2e 23 20 20 20 20 43 72 69 74 69 |. 7...# Criti| 00002c70 63 61 6c 53 69 7a 65 3d a4 63 72 69 74 69 63 61 |calSize=.critica| 00002c80 6c 28 78 2c 79 29 0d 18 38 2a 20 20 20 20 e7 20 |l(x,y)..8* . | 00002c90 54 65 6d 70 53 74 72 65 6e 67 74 68 28 78 2c 79 |TempStrength(x,y| 00002ca0 29 3e 43 72 69 74 69 63 61 6c 53 69 7a 65 20 8c |)>CriticalSize .| 00002cb0 0d 18 42 26 20 20 20 20 20 f2 43 6f 6d 70 75 74 |..B& .Comput| 00002cc0 65 72 41 64 64 4f 6e 65 54 6f 42 6f 72 64 65 72 |erAddOneToBorder| 00002cd0 73 28 78 2c 79 29 0d 18 4c 2d 20 20 20 20 20 e7 |s(x,y)..L- .| 00002ce0 20 54 65 6d 70 53 74 72 65 6e 67 74 68 28 78 2c | TempStrength(x,| 00002cf0 79 29 3d 43 72 69 74 69 63 61 6c 53 69 7a 65 2b |y)=CriticalSize+| 00002d00 31 20 8c 0d 18 56 28 20 20 20 20 20 20 54 65 6d |1 ...V( Tem| 00002d10 70 41 6d 6d 6f 75 6e 74 28 54 65 6d 70 4f 77 6e |pAmmount(TempOwn| 00002d20 65 72 28 78 2c 79 29 29 2d 3d 31 0d 18 60 0a 20 |er(x,y))-=1..`. | 00002d30 20 20 20 20 cd 0d 18 6a 2a 20 20 20 20 20 54 65 | ...j* Te| 00002d40 6d 70 53 74 72 65 6e 67 74 68 28 78 2c 79 29 2d |mpStrength(x,y)-| 00002d50 3d 43 72 69 74 69 63 61 6c 53 69 7a 65 2b 31 0d |=CriticalSize+1.| 00002d60 18 74 1d 20 20 20 20 20 4e 75 6d 62 65 72 4f 66 |.t. NumberOf| 00002d70 43 72 69 74 69 63 61 6c 73 2b 3d 31 0d 18 7e 09 |Criticals+=1..~.| 00002d80 20 20 20 20 cd 0d 18 88 08 20 20 20 ed 0d 18 92 | ..... ....| 00002d90 07 20 20 ed 0d 18 9c 0d 20 20 6c 65 61 76 65 3d |. ..... leave=| 00002da0 b9 0d 18 a6 19 20 20 e3 20 6c 70 3d 31 20 b8 20 |..... . lp=1 . | 00002db0 4e 75 6d 50 6c 61 79 65 72 73 0d 18 b0 19 20 20 |NumPlayers.... | 00002dc0 20 e7 20 6c 70 3c 3e 54 65 6d 70 50 6c 61 79 65 | . lp<>TempPlaye| 00002dd0 72 20 8c 0d 18 ba 23 20 20 20 20 e7 20 54 65 6d |r ....# . Tem| 00002de0 70 41 6d 6d 6f 75 6e 74 28 6c 70 29 3e 30 20 6c |pAmmount(lp)>0 l| 00002df0 65 61 76 65 3d a3 0d 18 c4 08 20 20 20 cd 0d 18 |eave=..... ...| 00002e00 ce 07 20 20 ed 0d 18 d8 21 fd 20 4e 75 6d 62 65 |.. ....!. Numbe| 00002e10 72 4f 66 43 72 69 74 69 63 61 6c 73 3d 30 20 84 |rOfCriticals=0 .| 00002e20 20 6c 65 61 76 65 0d 18 e2 05 e1 0d 18 ec 05 3a | leave.........:| 00002e30 0d 18 f6 25 dd 20 f2 43 6f 6d 70 75 74 65 72 41 |...%. .ComputerA| 00002e40 64 64 4f 6e 65 54 6f 42 6f 72 64 65 72 73 28 62 |ddOneToBorders(b| 00002e50 78 2c 62 79 29 0d 19 00 0c 61 6c 74 3d 62 78 2d |x,by)....alt=bx-| 00002e60 31 0d 19 0a 0e e7 20 61 6c 74 3e 2d 31 20 8c 0d |1..... alt>-1 ..| 00002e70 19 14 24 20 f2 43 6f 6d 70 75 74 65 72 41 64 64 |..$ .ComputerAdd| 00002e80 4f 6e 65 54 6f 53 71 75 61 72 65 28 61 6c 74 2c |OneToSquare(alt,| 00002e90 62 79 29 0d 19 1e 05 cd 0d 19 28 0c 61 6c 74 3d |by).......(.alt=| 00002ea0 62 78 2b 31 0d 19 32 0d e7 20 61 6c 74 3c 38 20 |bx+1..2.. alt<8 | 00002eb0 8c 0d 19 3c 24 20 f2 43 6f 6d 70 75 74 65 72 41 |...<$ .ComputerA| 00002ec0 64 64 4f 6e 65 54 6f 53 71 75 61 72 65 28 61 6c |ddOneToSquare(al| 00002ed0 74 2c 62 79 29 0d 19 46 05 cd 0d 19 50 0c 61 6c |t,by)..F....P.al| 00002ee0 74 3d 62 79 2d 31 0d 19 5a 0e e7 20 61 6c 74 3e |t=by-1..Z.. alt>| 00002ef0 2d 31 20 8c 0d 19 64 24 20 f2 43 6f 6d 70 75 74 |-1 ...d$ .Comput| 00002f00 65 72 41 64 64 4f 6e 65 54 6f 53 71 75 61 72 65 |erAddOneToSquare| 00002f10 28 62 78 2c 61 6c 74 29 0d 19 6e 05 cd 0d 19 78 |(bx,alt)..n....x| 00002f20 0c 61 6c 74 3d 62 79 2b 31 0d 19 82 0d e7 20 61 |.alt=by+1..... a| 00002f30 6c 74 3c 38 20 8c 0d 19 8c 24 20 f2 43 6f 6d 70 |lt<8 ....$ .Comp| 00002f40 75 74 65 72 41 64 64 4f 6e 65 54 6f 53 71 75 61 |uterAddOneToSqua| 00002f50 72 65 28 62 78 2c 61 6c 74 29 0d 19 96 05 cd 0d |re(bx,alt)......| 00002f60 19 a0 05 e1 0d 19 aa 05 3a 0d 19 b4 24 dd 20 f2 |........:...$. .| 00002f70 43 6f 6d 70 75 74 65 72 41 64 64 4f 6e 65 54 6f |ComputerAddOneTo| 00002f80 53 71 75 61 72 65 28 78 70 2c 79 70 29 0d 19 be |Square(xp,yp)...| 00002f90 1a 54 65 6d 70 53 74 72 65 6e 67 74 68 28 78 70 |.TempStrength(xp| 00002fa0 2c 79 70 29 2b 3d 31 0d 19 c8 24 e7 20 54 65 6d |,yp)+=1...$. Tem| 00002fb0 70 4f 77 6e 65 72 28 78 70 2c 79 70 29 3c 3e 54 |pOwner(xp,yp)<>T| 00002fc0 65 6d 70 50 6c 61 79 65 72 20 8c 0d 19 d2 1f 20 |empPlayer ..... | 00002fd0 54 65 6d 70 41 6d 6d 6f 75 6e 74 28 54 65 6d 70 |TempAmmount(Temp| 00002fe0 50 6c 61 79 65 72 29 2b 3d 31 0d 19 dc 3c 20 e7 |Player)+=1...< .| 00002ff0 20 54 65 6d 70 4f 77 6e 65 72 28 78 70 2c 79 70 | TempOwner(xp,yp| 00003000 29 3e 30 20 8c 20 54 65 6d 70 41 6d 6d 6f 75 6e |)>0 . TempAmmoun| 00003010 74 28 54 65 6d 70 4f 77 6e 65 72 28 78 70 2c 79 |t(TempOwner(xp,y| 00003020 70 29 29 2d 3d 31 0d 19 e6 05 cd 0d 19 f0 1f 54 |p))-=1.........T| 00003030 65 6d 70 4f 77 6e 65 72 28 78 70 2c 79 70 29 3d |empOwner(xp,yp)=| 00003040 54 65 6d 70 50 6c 61 79 65 72 0d 19 fa 05 e1 0d |TempPlayer......| 00003050 1a 04 05 3a 0d 1a 0e 20 dd 20 f2 43 6f 6d 70 75 |...:... . .Compu| 00003060 74 65 72 4d 61 78 47 61 69 6e 73 28 72 54 6f 42 |terMaxGains(rToB| 00003070 65 61 74 29 0d 1a 18 0e e7 20 74 75 72 6e 3c 33 |eat)..... turn<3| 00003080 20 8c 0d 1a 22 1a 20 f2 43 6f 6d 70 75 74 65 72 | ...". .Computer| 00003090 43 6f 72 6e 65 72 4d 69 78 28 30 29 0d 1a 2c 05 |CornerMix(0)..,.| 000030a0 cc 0d 1a 36 11 20 72 6e 64 3d b3 28 31 30 30 29 |...6. rnd=.(100)| 000030b0 2d 31 0d 1a 40 0d 20 44 69 66 66 28 29 3d 30 0d |-1..@. Diff()=0.| 000030c0 1a 4a 0c 20 6d 64 3d 31 30 30 30 0d 1a 54 09 20 |.J. md=1000..T. | 000030d0 66 64 3d a3 0d 1a 5e 0f 20 e3 20 74 78 3d 30 20 |fd=...^. . tx=0 | 000030e0 b8 20 37 0d 1a 68 10 20 20 e3 20 74 79 3d 30 20 |. 7..h. . ty=0 | 000030f0 b8 20 37 0d 1a 72 38 20 20 20 e7 20 28 6f 77 6e |. 7..r8 . (own| 00003100 65 72 28 74 78 2c 74 79 29 3d 30 20 84 20 6f 77 |er(tx,ty)=0 . ow| 00003110 6e 65 72 28 74 78 2c 74 79 29 3d 70 6c 61 79 65 |ner(tx,ty)=playe| 00003120 72 29 20 80 20 ac 20 66 64 20 8c 0d 1a 7c 1b 20 |r) . . fd ...|. | 00003130 20 20 20 54 65 6d 70 4f 77 6e 65 72 28 29 3d 6f | TempOwner()=o| 00003140 77 6e 65 72 28 29 0d 1a 86 21 20 20 20 20 54 65 |wner()...! Te| 00003150 6d 70 53 74 72 65 6e 67 74 68 28 29 3d 73 74 72 |mpStrength()=str| 00003160 65 6e 67 74 68 28 29 0d 1a 90 1f 20 20 20 20 54 |ength().... T| 00003170 65 6d 70 41 6d 6d 6f 75 6e 74 28 29 3d 61 6d 6d |empAmmount()=amm| 00003180 6f 75 6e 74 28 29 0d 1a 9a 19 20 20 20 20 54 65 |ount().... Te| 00003190 6d 70 50 6c 61 79 65 72 3d 70 6c 61 79 65 72 0d |mpPlayer=player.| 000031a0 1a a4 26 20 20 20 20 f2 43 6f 6d 70 75 74 65 72 |..& .Computer| 000031b0 41 64 64 4f 6e 65 54 6f 53 71 75 61 72 65 28 74 |AddOneToSquare(t| 000031c0 78 2c 74 79 29 0d 1a ae 2c 20 20 20 20 f2 43 6f |x,ty)..., .Co| 000031d0 6d 70 75 74 65 72 43 68 65 63 6b 49 66 43 68 61 |mputerCheckIfCha| 000031e0 69 6e 52 65 61 63 74 69 6f 6e 28 74 78 2c 74 79 |inReaction(tx,ty| 000031f0 29 0d 1a b8 15 20 20 20 20 44 69 66 66 28 74 78 |).... Diff(tx| 00003200 2c 74 79 29 3d 30 0d 1a c2 0c 20 20 20 20 66 64 |,ty)=0.... fd| 00003210 3d b9 0d 1a cc 24 f4 20 20 20 20 50 52 49 4e 54 |=....$. PRINT| 00003220 54 41 42 28 30 2c 36 35 29 22 22 3b 54 65 6d 70 |TAB(0,65)"";Temp| 00003230 50 6c 61 79 65 72 0d 1a d6 1b 20 20 20 20 e3 20 |Player.... . | 00003240 6c 70 3d 31 20 b8 20 4e 75 6d 50 6c 61 79 65 72 |lp=1 . NumPlayer| 00003250 73 0d 1a e0 1a 20 20 20 20 20 e7 20 6c 70 3d 54 |s.... . lp=T| 00003260 65 6d 70 50 6c 61 79 65 72 20 8c 0d 1a ea 28 20 |empPlayer ....( | 00003270 20 20 20 20 20 44 69 66 66 28 74 78 2c 74 79 29 | Diff(tx,ty)| 00003280 2d 3d 54 65 6d 70 41 6d 6d 6f 75 6e 74 28 6c 70 |-=TempAmmount(lp| 00003290 29 2b 31 0d 1a f4 0a 20 20 20 20 20 cc 0d 1a fe |)+1.... ....| 000032a0 26 20 20 20 20 20 20 44 69 66 66 28 74 78 2c 74 |& Diff(tx,t| 000032b0 79 29 2b 3d 54 65 6d 70 41 6d 6d 6f 75 6e 74 28 |y)+=TempAmmount(| 000032c0 6c 70 29 0d 1b 08 22 20 20 20 20 20 20 e7 20 54 |lp)..." . T| 000032d0 65 6d 70 41 6d 6d 6f 75 6e 74 28 6c 70 29 3e 30 |empAmmount(lp)>0| 000032e0 20 66 64 3d a3 0d 1b 12 0a 20 20 20 20 20 cd 0d | fd=..... ..| 000032f0 1b 1c 09 20 20 20 20 ed 0d 1b 26 1a 20 20 20 20 |... ...&. | 00003300 e7 20 66 64 20 8c 20 66 78 3d 74 78 3a 66 79 3d |. fd . fx=tx:fy=| 00003310 74 79 0d 1b 30 08 20 20 20 cc 0d 1b 3a 15 20 20 |ty..0. ...:. | 00003320 20 20 44 69 66 66 28 74 78 2c 74 79 29 3d 30 0d | Diff(tx,ty)=0.| 00003330 1b 44 08 20 20 20 cd 0d 1b 4e 26 f4 20 50 52 49 |.D. ...N&. PRI| 00003340 4e 54 54 41 42 28 74 78 2a 34 2b 33 31 2c 31 34 |NTTAB(tx*4+31,14| 00003350 2d 32 2a 74 79 29 20 53 50 43 28 34 29 0d 1b 58 |-2*ty) SPC(4)..X| 00003360 2e f4 20 50 52 49 4e 54 54 41 42 28 74 78 2a 34 |.. PRINTTAB(tx*4| 00003370 2b 33 31 2c 31 34 2d 32 2a 74 79 29 20 22 22 3b |+31,14-2*ty) "";| 00003380 44 69 66 66 28 74 78 2c 74 79 29 0d 1b 62 07 20 |Diff(tx,ty)..b. | 00003390 20 ed 0d 1b 6c 06 20 ed 0d 1b 76 0d f4 20 41 24 | ...l. ...v.. A$| 000033a0 3d 47 45 54 24 0d 1b 80 0c 20 6d 64 3d 31 30 30 |=GET$.... md=100| 000033b0 30 0d 1b 8a 09 20 6d 74 3d 30 0d 1b 94 0d 20 4d |0.... mt=0.... M| 000033c0 64 3d 2d 31 30 30 30 0d 1b 9e 09 20 4d 74 3d 30 |d=-1000.... Mt=0| 000033d0 0d 1b a8 0b 20 e7 20 66 64 20 8c 0d 1b b2 0c 20 |.... . fd ..... | 000033e0 20 78 70 73 3d 66 78 0d 1b bc 0c 20 20 79 70 73 | xps=fx.... yps| 000033f0 3d 66 79 0d 1b c6 06 20 cc 0d 1b d0 0f 20 20 e3 |=fy.... ..... .| 00003400 20 78 3d 30 20 b8 20 37 0d 1b da 10 20 20 20 e3 | x=0 . 7.... .| 00003410 20 79 3d 30 20 b8 20 37 0d 1b e4 3c 20 20 20 20 | y=0 . 7...< | 00003420 e7 20 28 6f 77 6e 65 72 28 78 2c 79 29 3d 30 20 |. (owner(x,y)=0 | 00003430 80 20 72 6e 64 3c 72 54 6f 42 65 61 74 29 20 84 |. rnd<rToBeat) .| 00003440 20 6f 77 6e 65 72 28 78 2c 79 29 3d 70 6c 61 79 | owner(x,y)=play| 00003450 65 72 20 8c 0d 1b ee 35 20 20 20 20 20 e7 20 44 |er ....5 . D| 00003460 69 66 66 28 78 2c 79 29 3c 6d 64 20 8c 20 6d 64 |iff(x,y)<md . md| 00003470 3d 44 69 66 66 28 78 2c 79 29 3a 6d 74 3d 30 3a |=Diff(x,y):mt=0:| 00003480 78 6d 3d 78 3a 79 6d 3d 79 0d 1b f8 2c 20 20 20 |xm=x:ym=y..., | 00003490 20 20 e7 20 44 69 66 66 28 78 2c 79 29 3d 6d 64 | . Diff(x,y)=md| 000034a0 20 8c 20 6d 64 3d 44 69 66 66 28 78 2c 79 29 3a | . md=Diff(x,y):| 000034b0 6d 74 2b 3d 31 0d 1c 02 35 20 20 20 20 20 e7 20 |mt+=1...5 . | 000034c0 44 69 66 66 28 78 2c 79 29 3e 4d 64 20 8c 20 4d |Diff(x,y)>Md . M| 000034d0 64 3d 44 69 66 66 28 78 2c 79 29 3a 4d 74 3d 30 |d=Diff(x,y):Mt=0| 000034e0 3a 78 4d 3d 78 3a 79 4d 3d 79 0d 1c 0c 2c 20 20 |:xM=x:yM=y..., | 000034f0 20 20 20 e7 20 44 69 66 66 28 78 2c 79 29 3d 4d | . Diff(x,y)=M| 00003500 64 20 8c 20 4d 64 3d 44 69 66 66 28 78 2c 79 29 |d . Md=Diff(x,y)| 00003510 3a 4d 74 2b 3d 31 0d 1c 16 09 20 20 20 20 cd 0d |:Mt+=1.... ..| 00003520 1c 20 08 20 20 20 ed 0d 1c 2a 07 20 20 ed 0d 1c |. . ...*. ...| 00003530 34 0e 20 20 e7 20 6d 74 3d 31 20 8c 0d 1c 3e 0d |4. . mt=1 ...>.| 00003540 20 20 20 78 70 73 3d 78 6d 0d 1c 48 0d 20 20 20 | xps=xm..H. | 00003550 79 70 73 3d 79 6d 0d 1c 52 07 20 20 cc 0d 1c 5c |yps=ym..R. ...\| 00003560 0c 20 20 20 70 63 6b 3d a3 0d 1c 66 0f 20 20 20 |. pck=...f. | 00003570 70 70 3d b3 28 6d 74 29 0d 1c 70 0a 20 20 20 78 |pp=.(mt)..p. x| 00003580 3d 30 0d 1c 7a 0a 20 20 20 79 3d 30 0d 1c 84 08 |=0..z. y=0....| 00003590 20 20 20 f5 0d 1c 8e 3c 20 20 20 20 e7 20 28 6f | ....< . (o| 000035a0 77 6e 65 72 28 78 2c 79 29 3d 30 20 80 20 72 6e |wner(x,y)=0 . rn| 000035b0 64 3c 72 54 6f 42 65 61 74 29 20 84 20 6f 77 6e |d<rToBeat) . own| 000035c0 65 72 28 78 2c 79 29 3d 70 6c 61 79 65 72 20 8c |er(x,y)=player .| 000035d0 0d 1c 98 19 20 20 20 20 20 e7 20 44 69 66 66 28 |.... . Diff(| 000035e0 78 2c 79 29 3d 6d 64 20 8c 0d 1c a2 0f 20 20 20 |x,y)=md ..... | 000035f0 20 20 20 70 70 2d 3d 31 0d 1c ac 0f 20 20 20 20 | pp-=1.... | 00003600 20 20 78 70 73 3d 78 0d 1c b6 0f 20 20 20 20 20 | xps=x.... | 00003610 20 79 70 73 3d 79 0d 1c c0 0a 20 20 20 20 20 cd | yps=y.... .| 00003620 0d 1c ca 09 20 20 20 20 cd 0d 1c d4 0c 20 20 20 |.... ..... | 00003630 20 78 2b 3d 31 0d 1c de 18 20 20 20 20 e7 20 78 | x+=1.... . x| 00003640 3d 38 20 8c 20 78 3d 30 3a 79 2b 3d 31 0d 1c e8 |=8 . x=0:y+=1...| 00003650 0d 20 20 20 fd 20 70 70 3d 30 0d 1c f2 07 20 20 |. . pp=0.... | 00003660 cd 0d 1c fc 06 20 cd 0d 1d 06 1d 20 f2 41 64 64 |..... ..... .Add| 00003670 4f 6e 65 54 6f 53 71 75 61 72 65 28 78 70 73 2c |OneToSquare(xps,| 00003680 79 70 73 29 0d 1d 10 23 20 f2 43 68 65 63 6b 49 |yps)...# .CheckI| 00003690 66 43 68 61 69 6e 52 65 61 63 74 69 6f 6e 28 78 |fChainReaction(x| 000036a0 70 73 2c 79 70 73 29 0d 1d 1a 05 cd 0d 1d 24 05 |ps,yps).......$.| 000036b0 e1 0d ff |...| 000036b3