Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_E00.adf » WELCOME/Gomoku
WELCOME/Gomoku
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 » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_E00.adf |
Filename: | WELCOME/Gomoku |
Read OK: | ✔ |
File size: | 159D bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There are 5 duplicate copies of this file in the archive:
- AEW website » acornsoft » acornsoft_3_5_discs_Electron_Welcome_Disc_HA-WELC.adf » Welcome/Gomoku
- AEW website » acp_pres » acp_pres_3_5_discs_Electron-Adfs-E00_A-E00.adf » WELCOME/Gomoku
- Personal collection » Acorn ADFS disks » Electron » PRES_E00.ADF » WELCOME/Gomoku
- Personal collection » Acorn ADFS disks » Electron » PRES_E00_backup.ADF » Welcome/Gomoku
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_E00.adf » WELCOME/Gomoku
- Personal collection » Acorn ADFS disks » Greaseweazled » dfs_box04_disk01b_adfs_welcome_disk_interleaved.adf » WELCOME/Gomoku
File contents
10VDU6:DIMM 255,B 8:DIMM%(19,19),T%27*27,S%81,a%12:*FX220,27 20*FX21,0 30ONERRORGOTO980 40o=&FFF1:PROCI:MODE4:PROCO:b%=1:c%=1:i%=40:@%=3:H%=0:d%=0:F%=7:M%=7:g%=7:PROCB:MODE6:PROCN:MODE5:PROCA(40,150):PROCP 50FORI%=1TO81:S%?I%=0:NEXT:PROCO:IFH%>0ORd%>0:CLS:PRINT"Change the"'"colours (Y/N)?":A=GET:IFA=89:PROCP 60CLS:PRINT"Shall I start (Y/N)?":A=GET:CLS:S%?20=1:S%?10=40:S%?12=30:S%?13=47:S%?27=15:S%?28=20:S%?29=10:S%?30=40:S%?31=50:S%?32=30:S%?24=1:S%?36=39:S%?37=65:S%?38=40:S%?39=70:S%?40=100:S%?41=60:S%?42=30:S%?43=30:S%?44=30:S%?62=41:S%?72=31:S%?73=11:S%?74=41 70S%?78=51:S%?80=90:S%?26=21:S%?79=40:S%?60=21:S%?61=11:S%?54=1:FORI%=1TO27:IFI%<=19FORJ%=1TO19:M%(I%,J%)=0:NEXT 80FORJ%=1TO27*27STEP27:T%?(I%+J%)=0:NEXT:NEXT:C%=-1:W%=19-RND(10):N%=14:O%=14:X%=19-RND(10):IFA=89THEN160 90PROCC:Z%=b%:Y%=c%:Y%=Y%+4:Z%=Z%+4:IFY%<5ORZ%<5ORY%>23ORZ%>23THEN90 100IFT%?(Y%*27+Z%)>0THEN90 110PROCD(Z%-4,Y%-4,225,2):T%?(Y%*27+Z%)=2:I%=Y%:J%=Z%:PRINTCHR$30;" Thinking...":GOSUB230:IFC%<>-1THEN180 120I%=W%:J%=X%:GOSUB230:Q%=-1:FORI%=5TO23:FORJ%=5TO23:IFT%?(I%*27+J%)>0THEN150 130A%=M%(I%-4,J%-4):IFA%<Q%THEN150 140W%=I%:X%=J%:Q%=A% 150NEXT,:CLS 160FORI%=1TO3:PROCD(X%-4,W%-4,225,0):T=TIME:REPEATUNTILTIME>T+30:PROCD(X%-4,W%-4,225,1):T=TIME:REPEATUNTILTIME>T+30:NEXT:T%?(W%*27+X%)=1:IFM%(W%-4,X%-4)<100THEN90 170PROCF(X%-4,W%-4,1):CLS:PRINT"I win":d%=d%+1 180IFC%=0:PROCF(Z%-4,Y%-4,2):CLS:PRINT"You win":H%=H%+1 190PRINT"Another game (Y/N) ?":VDU28,14,24,19,2:PRINT'"Me ";d%''"You ";H%:*FX15 200*FX12 210A=GET:IFA<>89THEN990ELSEFORI%=1TO27:FORJ%=1TO27:IFT%?(I%*27+J%)>0THENPROCD(J%-4,I%-4,225,0) 220NEXT,:CLS:VDU28,0,31,19,29:GOTO50 230K%=1:L%=-1:IFI%<N%IFI%>5N%=I% 240IFI%>O%IFI%<23O%=I% 250U%=I%:V%=J%:D%=0 260D%=D%+1:P%=81:IFU%>23ORV%>23ORU%<5ORV%<5THEN530 270E%=U%-4:G%=V%-4:A%=M%(E%,G%):Q%=T%?(27*(U%+K%)+V%+L%):R%=27*T%?(27*(U%-K%)+V%-L%)+9*T%?(27*(U%-2*K%)+V%-2*L%)+3*T%?(27*(U%-3*K%)+V%-3*L%)+T%?(27*(U%-4*K%)+V%-4*L%):B%=Q%*27+T%?(27*(U%+2*K%)+V%+2*L%)*9+T%?(27*(U%+3*K%)+V%+3*L%)*3 280IFR%=80IFT%?(27*U%+V%)=2C%=0 290IFT%?(27*U%+V%)<>0THEN510 300IFR%<14IFR%>11IFQ%=1P%=37 310IFR%>71IFB%>53IFB%<63P%=80 320IFR%>71IFB%>71P%=80 330IFR%>53IFR%<63IFQ%=2P%=72 340IFP%=72IFR%=60P%=31 350IFQ%<>2THEN390 360IFR%=78P%=80 370IFR%=79P%=80 380IFR%=41R%=81 390IFR%<42IFR%>35IFQ%=1P%=41 400IFR%<33IFR%>29IFQ%=1P%=41 410IFR%>53IFR%<63IFB%>71P%=80 420IFR%>38IFR%<42IFQ%=1R%=40 430IFR%>35IFR%<45IFB%>35IFB%<45R%=40 440IFR%>27IFR%<54IFB%>38IFB%<42R%=40 450IFR%=79IFA%=51M%(E%,G%)=41 460IFR%=0R%=81 470IFS%?P%>S%?R%:R%=P% 480IFS%?R%-S%?R%MOD10=1IFA%-A%MOD10=1IFS%?R%<41R%=74 490IFS%?R%-S%?R%MOD10=9IFA%-A%MOD10=9IFS%?R%<65R%=37 500IFS%?R%>M%(E%,G%)M%(E%,G%)=S%?R% 510IFD%>4THEN530 520U%=U%+K%:V%=V%+L%:GOTO260 530IFK%=0IFL%=-1RETURN 540IFK%=-1IFL%=-1K%=0 550IFK%=-1IFL%=0L%=-1 560IFK%=-1IFL%=1L%=0 570IFK%=0IFL%=1K%=-1 580IFK%=1IFL%=1K%=0 590IFK%=1IFL%=0L%=1 600IFK%=1IFL%=-1L%=0 610GOTO250 620DEFPROCA(X%,Y%):LOCALT%:VDU19,7,0;0;:MOVEX%,Y%:T%=i%*19:FORI%=0TO19:PLOT1,0,T%:PLOT0,i%,-T%:NEXT:MOVEX%,Y%:FORI%=0TO19:PLOT1,T%,0:PLOT0,-T%,i%:NEXT:VDU19,3,F%;0;:VDU29,X%-16;Y%;:ENDPROC 630DEFPROCB:VDU23,224,0,0,&7E,&42,&42,&7E,0,0:VDU23,226,0,&08,&08,&08,&08,&08,&08,0:VDU23,227,0,0,&3C,&24,&24,&3C,0,0:VDU23,225,0,&18,&3C,&3C,&3C,&3C,&18,0:VDU23,228,0,0,0,&1C,0,0,0,0:ENDPROC 640DEFPROCD(X%,Y%,e%,h%):MOVE0,0:VDU5:MOVE(X%-1)*i%+8,Y%*i%-8:GCOL0,h%:VDUe%:VDU4:ENDPROC 650DEFPROCP:VDU28,0,31,19,29:VDU23;&200A;0;0;0;:CLS:*FX15 660*FX12,0 670PRINT"Please select"'"board colour";:F%=FNP(3,F%):PRINTCHR$13"my colour ";:PROCD(19,-2,225,1):M%=FNP(1,M%):PRINTCHR$13"your colour ";:PROCD(19,-2,225,2):g%=FNP(2,g%):CLS:ENDPROC 680DEFFNP(I%,J%):*FX15 690*FX12,0 700REPEATVDU19,I%,J%;0;:A%=GET:J%=J%+1:IFJ%=8THENJ%=1 710UNTILA%=13:IFJ%=1THEN=7ELSE=J%-1 720DEFPROCC:CLS:PRINT" Your move":*FX11,1 730*FX12,1 740S$="/:ZXzx":GOTO840 750*FX15 760A$=GET$:IFA$=CHR$13CLS:ENDPROC 770I%=0:REPEATI%=I%+1:UNTILA$=MID$(S$,I%,1)ORI%>7:IFI%>7THEN750ELSEIFI%>4THENI%=I%-2 780IFI%<=2THENJ%=(I%-1)*2-1:PROCD(0,c%,228,0):PROCD(20,c%,228,0) 790IFI%>2THENJ%=(I%-3)*2-1:PROCD(b%,0,225,0):PROCD(b%,20,225,0) 800IFT%?(27*(c%+4)+b%+4)=0THENPROCD(b%,c%,227,0) 810IFI%<=2THENc%=c%+J%ELSEb%=b%+J% 820IFc%=0THENc%=19ELSEIFc%=20c%=1 830IFb%=0THENb%=19ELSEIFb%=20b%=1 840PROCD(0,c%,228,3):PROCD(20,c%,228,3):PROCD(b%,0,226,3):PROCD(b%,20,226,3):IFT%?(27*(c%+4)+b%+4)=0THENPROCD(b%,c%,227,2) 850GOTO750 860DEFPROCF(X%,Y%,k%):LOCALP%,l%,m%,j%:P%=0:l%=X%:m%=Y%:FORI%=-1TO1:FORJ%=-1TO1:j%=0 870REPEAT:a%?P%=X%:P%=P%+1:a%?P%=Y%:P%=P%+1:X%=X%+I%:Y%=Y%+J%:UNTILT%?(27*(Y%+4)+X%+4)<>k%ORP%=10:IFT%?(27*(Y%+4)+X%+4)<>k%ANDj%=0ANDP%<>10THENX%=X%-5*I%:Y%=Y%-5*J%:j%=1:GOTO870 880IFP%=10THENI%=1:J%=1ELSEX%=l%:Y%=m%:P%=0 890NEXT,:FORJ%=0TO3:FORI%=0TO9STEP2:PROCD(a%?I%,a%?(I%+1),225,0):NEXT:j%=TIME:REPEATUNTILTIME=j%+70:FORI%=0TO9STEP2:PROCD(a%?I%,a%?(I%+1),225,k%):NEXT:j%=TIME:REPEATUNTILTIME=j%+70:NEXT:ENDPROC 900DEFPROCN:PRINT'"GOMOKU is a board game where the winner":PRINT"is the first to get 5 counters in a row":PRINT"(horizontal, vertical or diagonal).":PRINT'"To place a counter on the board, move"'"the cursor (";CHR$224;") to the desired square"'"and press RETURN." 910PRINT'" CURSOR CONTROL KEYS :-":PRINT'TAB(14)"Z - Left":PRINT'TAB(14)"X - Right":PRINT'TAB(14)": - Up":PRINT'TAB(14)"/ - Down" 920PRINT'"To choose the board and counter colours,press any key when you are prompted and"'"the selected colour will alter. When thedesired colour is displayed press RETURN":PRINT" Press the SPACE BAR to continue";:REPEATUNTILGET=32:ENDPROC 930DEFPROCOVDU23,1,0;0;0;0;:ENDPROC 940DEFPROCI$M=STRING$(255,CHR$0):M?255=0:C=224:ENDPROC 950DEFPROCL(A$,y%)B$="":C$="":FORf%=1TOLENA$:K%=FNC(ASCMID$(A$,f%,1)):B$=B$+CHR$K%:C$=C$+CHR$(K%+1):NEXT:K%=19-LENA$/2:D$=CHR$31+CHR$K%+CHR$y%+B$+CHR$31+CHR$K%+CHR$(y%+1)+C$:PRINTD$;:ENDPROC 960DEFFNC(C%)IFM?C%THEN=M?C%ELSEIFC>=256STOPELSEM?C%=C:?B=C%:A%=10:X%=B:Y%=BDIV256:CALLo:FORJ%=0TO1:VDU23,C+J%:FORI%=2TO9:VDUB?(J%*4+I%DIV2):NEXT,:C=C+2:=M?C% 970DEFPROCE(A$,y%)PRINTTAB((38-LENA$)/2,y%)A$;:ENDPROC 980IFERR<>17REPORT:PRINT" at line ";ERL 990REPEAT:MODE4:CLS:PROCE("Which do you want to do ?",10):PRINTTAB(10,VPOS+3)"";:PROCn("R"):PRINT"epeat this program":PRINTTAB(10,VPOS+1)"Go to ";:PROCn("N"):PRINT"ext program":PRINTTAB(10,VPOS+1)"Return to main ";:PROCn("M"):PRINT"enu":PRINTTAB(10,VPOS+1)"";:PROCn("E"):PRINT"xit from disc":PRINTTAB(0,VPOS+3)"Choose from ";:PROCn("R"):PRINT"epeat, "; 1000PROCn("N"):PRINT"ext, ";:PROCn("M"):PRINT"enu or ";:PROCn("E"):PRINT"xit ";:A$=GET$:UNTIL(A$="R")OR(A$="N")OR(A$="M")OR(A$="E"):CLS:IFA$="R"THENGOTO30 1010IFA$="N"THENP%=8ELSEIFA$="M"THENP%=1ELSEP%=17 1020*FX4 1030*FX201,1 1040*FX15,1 1050VDU21:*FX220,0 1060CHAIN"BOOT":END 1070DEFPROCn(A$):COLOUR0:COLOUR135:PRINTA$;:COLOUR7:COLOUR128:ENDPROC
8�6:�M 255,B 8:�M%(19,19),T%27*27,S%81,a%12:*FX220,27 *FX21,0 ��dTC (\o=&FFF1:�I:�4:�O:b%=1:c%=1:i%=40:@%=3:H%=0:d%=0:F%=7:M%=7:g%=7:�B:�6:�N:�5:�A(40,150):�P 2R�I%=1�81:S%?I%=0:�:�O:�H%>0�d%>0:�:�"Change the"'"colours (Y/N)?":A=�:�A=89:�P <��:�"Shall I start (Y/N)?":A=�:�:S%?20=1:S%?10=40:S%?12=30:S%?13=47:S%?27=15:S%?28=20:S%?29=10:S%?30=40:S%?31=50:S%?32=30:S%?24=1:S%?36=39:S%?37=65:S%?38=40:S%?39=70:S%?40=100:S%?41=60:S%?42=30:S%?43=30:S%?44=30:S%?62=41:S%?72=31:S%?73=11:S%?74=41 FhS%?78=51:S%?80=90:S%?26=21:S%?79=40:S%?60=21:S%?61=11:S%?54=1:�I%=1�27:�I%<=19�J%=1�19:M%(I%,J%)=0:� PX�J%=1�27*27�27:T%?(I%+J%)=0:�:�:C%=-1:W%=19-�(10):N%=14:O%=14:X%=19-�(10):�A=89��t`@ Z>�C:Z%=b%:Y%=c%:Y%=Y%+4:Z%=Z%+4:�Y%<5�Z%<5�Y%>23�Z%>23��DZ@ d�T%?(Y%*27+Z%)>0��DZ@ n[�D(Z%-4,Y%-4,225,2):T%?(Y%*27+Z%)=2:I%=Y%:J%=Z%:�30;" Thinking...":�df@:�C%<>-1��tt@ xCI%=W%:J%=X%:�df@:Q%=-1:�I%=5�23:�J%=5�23:�T%?(I%*27+J%)>0��tV@ � A%=M%(I%-4,J%-4):�A%<Q%��tV@ �W%=I%:X%=J%:Q%=A% ��,:� �w�I%=1�3:�D(X%-4,W%-4,225,0):T=�:���>T+30:�D(X%-4,W%-4,225,1):T=�:���>T+30:�:T%?(W%*27+X%)=1:�M%(W%-4,X%-4)<100��DZ@ �&�F(X%-4,W%-4,1):�:�"I win":d%=d%+1 �.�C%=0:�F(Z%-4,Y%-4,2):�:�"You win":H%=H%+1 �G�"Another game (Y/N) ?":�28,14,24,19,2:�'"Me ";d%''"You ";H%:*FX15 � *FX12 �JA=�:�A<>89��d^C��I%=1�27:�J%=1�27:�T%?(I%*27+J%)>0��D(J%-4,I%-4,225,0) ��,:�:�28,0,31,19,29:�Tr@ �K%=1:L%=-1:�I%<N%�I%>5N%=I% ��I%>O%�I%<23O%=I% �U%=I%:V%=J%:D%=0 -D%=D%+1:P%=81:�U%>23�V%>23�U%<5�V%<5��TRB �E%=U%-4:G%=V%-4:A%=M%(E%,G%):Q%=T%?(27*(U%+K%)+V%+L%):R%=27*T%?(27*(U%-K%)+V%-L%)+9*T%?(27*(U%-2*K%)+V%-2*L%)+3*T%?(27*(U%-3*K%)+V%-3*L%)+T%?(27*(U%-4*K%)+V%-4*L%):B%=Q%*27+T%?(27*(U%+2*K%)+V%+2*L%)*9+T%?(27*(U%+3*K%)+V%+3*L%)*3 �R%=80�T%?(27*U%+V%)=2C%=0 "�T%?(27*U%+V%)<>0��d~A ,�R%<14�R%>11�Q%=1P%=37 6�R%>71�B%>53�B%<63P%=80 @�R%>71�B%>71P%=80 J�R%>53�R%<63�Q%=2P%=72 T�P%=72�R%=60P%=31 ^�Q%<>2��tFA h�R%=78P%=80 r�R%=79P%=80 |�R%=41R%=81 ��R%<42�R%>35�Q%=1P%=41 ��R%<33�R%>29�Q%=1P%=41 ��R%>53�R%<63�B%>71P%=80 ��R%>38�R%<42�Q%=1R%=40 �!�R%>35�R%<45�B%>35�B%<45R%=40 �!�R%>27�R%<54�B%>38�B%<42R%=40 ��R%=79�A%=51M%(E%,G%)=41 ��R%=0R%=81 ��S%?P%>S%?R%:R%=P% �.�S%?R%-S%?R%�10=1�A%-A%�10=1�S%?R%<41R%=74 �.�S%?R%-S%?R%�10=9�A%-A%�10=9�S%?R%<65R%=37 �#�S%?R%>M%(E%,G%)M%(E%,G%)=S%?R% ��D%>4��TRB U%=U%+K%:V%=V%+L%:�TDA �K%=0�L%=-1� �K%=-1�L%=-1K%=0 &�K%=-1�L%=0L%=-1 0�K%=-1�L%=1L%=0 :�K%=0�L%=1K%=-1 D�K%=1�L%=1K%=0 N�K%=1�L%=0L%=1 X�K%=1�L%=-1L%=0 b �dz@ l���A(X%,Y%):�T%:�19,7,0;0;:�X%,Y%:T%=i%*19:�I%=0�19:�1,0,T%:�0,i%,-T%:�:�X%,Y%:�I%=0�19:�1,T%,0:�0,-T%,i%:�:�19,3,F%;0;:�29,X%-16;Y%;:� v���B:�23,224,0,0,&7E,&42,&42,&7E,0,0:�23,226,0,&08,&08,&08,&08,&08,&08,0:�23,227,0,0,&3C,&24,&24,&3C,0,0:�23,225,0,&18,&3C,&3C,&3C,&3C,&18,0:�23,228,0,0,0,&1C,0,0,0,0:� �@��D(X%,Y%,e%,h%):�0,0:�5:�(X%-1)*i%+8,Y%*i%-8:�0,h%:�e%:�4:� �/��P:�28,0,31,19,29:�23;&200A;0;0;0;:�:*FX15 �*FX12,0 ���"Please select"'"board colour";:F%=�P(3,F%):�13"my colour ";:�D(19,-2,225,1):M%=�P(1,M%):�13"your colour ";:�D(19,-2,225,2):g%=�P(2,g%):�:� �ݤP(I%,J%):*FX15 �*FX12,0 �)��19,I%,J%;0;:A%=�:J%=J%+1:�J%=8�J%=1 ��A%=13:�J%=1�=7�=J%-1 �!��C:�:�" Your move":*FX11,1 �*FX12,1 �S$="/:ZXzx":�DHC � *FX15 �A$=�:�A$=�13�:� =I%=0:�I%=I%+1:�A$=�S$,I%,1)�I%>7:�I%>7��dnB��I%>4�I%=I%-2 7�I%<=2�J%=(I%-1)*2-1:�D(0,c%,228,0):�D(20,c%,228,0) 6�I%>2�J%=(I%-3)*2-1:�D(b%,0,225,0):�D(b%,20,225,0) *�T%?(27*(c%+4)+b%+4)=0��D(b%,c%,227,0) *�I%<=2�c%=c%+J%�b%=b%+J% 4�c%=0�c%=19��c%=20c%=1 >�b%=0�b%=19��b%=20b%=1 Hh�D(0,c%,228,3):�D(20,c%,228,3):�D(b%,0,226,3):�D(b%,20,226,3):�T%?(27*(c%+4)+b%+4)=0��D(b%,c%,227,2) R �dnB \F��F(X%,Y%,k%):�P%,l%,m%,j%:P%=0:l%=X%:m%=Y%:�I%=-1�1:�J%=-1�1:j%=0 f��:a%?P%=X%:P%=P%+1:a%?P%=Y%:P%=P%+1:X%=X%+I%:Y%=Y%+J%:�T%?(27*(Y%+4)+X%+4)<>k%�P%=10:�T%?(27*(Y%+4)+X%+4)<>k%�j%=0�P%<>10�X%=X%-5*I%:Y%=Y%-5*J%:j%=1:�DfC p%�P%=10�I%=1:J%=1�X%=l%:Y%=m%:P%=0 z}�,:�J%=0�3:�I%=0�9�2:�D(a%?I%,a%?(I%+1),225,0):�:j%=�:���=j%+70:�I%=0�9�2:�D(a%?I%,a%?(I%+1),225,k%):�:j%=�:���=j%+70:�:� ����N:�'"GOMOKU is a board game where the winner":�"is the first to get 5 counters in a row":�"(horizontal, vertical or diagonal).":�'"To place a counter on the board, move"'"the cursor (";�224;") to the desired square"'"and press RETURN." �b�'" CURSOR CONTROL KEYS :-":�'�14)"Z - Left":�'�14)"X - Right":�'�14)": - Up":�'�14)"/ - Down" ���'"To choose the board and counter colours,press any key when you are prompted and"'"the selected colour will alter. When thedesired colour is displayed press RETURN":�" Press the SPACE BAR to continue";:���=32:� ���O�23,1,0;0;0;0;:� �"��I$M=�255,�0):M?255=0:C=224:� ����L(A$,y%)B$="":C$="":�f%=1��A$:K%=�C(��A$,f%,1)):B$=B$+�K%:C$=C$+�(K%+1):�:K%=19-�A$/2:D$=�31+�K%+�y%+B$+�31+�K%+�(y%+1)+C$:�D$;:� �zݤC(C%)�M?C%�=M?C%��C>=256��M?C%=C:?B=C%:A%=10:X%=B:Y%=B�256:�o:�J%=0�1:�23,C+J%:�I%=2�9:�B?(J%*4+I%�2):�,:C=C+2:=M?C% �#��E(A$,y%)�(38-�A$)/2,y%)A$;:� ��<>17�:�" at line ";� ��:�4:�:�E("Which do you want to do ?",10):�10,�+3)"";:�n("R"):�"epeat this program":�10,�+1)"Go to ";:�n("N"):�"ext program":�10,�+1)"Return to main ";:�n("M"):�"enu":�10,�+1)"";:�n("E"):�"xit from disc":�0,�+3)"Choose from ";:�n("R"):�"epeat, "; �t�n("N"):�"ext, ";:�n("M"):�"enu or ";:�n("E"):�"xit ";:A$=�:�(A$="R")�(A$="N")�(A$="M")�(A$="E"):�:�A$="R"��T^@ �#�A$="N"�P%=8��A$="M"�P%=1�P%=17 �*FX4 *FX201,1 *FX15,1 �21:*FX220,0 $ �"BOOT":� ."��n(A$):�0:�135:�A$;:�7:�128:� �
00000000 0d 00 0a 38 ef 36 3a de 4d 20 32 35 35 2c 42 20 |...8.6:.M 255,B | 00000010 38 3a de 4d 25 28 31 39 2c 31 39 29 2c 54 25 32 |8:.M%(19,19),T%2| 00000020 37 2a 32 37 2c 53 25 38 31 2c 61 25 31 32 3a 2a |7*27,S%81,a%12:*| 00000030 46 58 32 32 30 2c 32 37 0d 00 14 0b 2a 46 58 32 |FX220,27....*FX2| 00000040 31 2c 30 0d 00 1e 0b ee 85 e5 8d 64 54 43 0d 00 |1,0........dTC..| 00000050 28 5c 6f 3d 26 46 46 46 31 3a f2 49 3a eb 34 3a |(\o=&FFF1:.I:.4:| 00000060 f2 4f 3a 62 25 3d 31 3a 63 25 3d 31 3a 69 25 3d |.O:b%=1:c%=1:i%=| 00000070 34 30 3a 40 25 3d 33 3a 48 25 3d 30 3a 64 25 3d |40:@%=3:H%=0:d%=| 00000080 30 3a 46 25 3d 37 3a 4d 25 3d 37 3a 67 25 3d 37 |0:F%=7:M%=7:g%=7| 00000090 3a f2 42 3a eb 36 3a f2 4e 3a eb 35 3a f2 41 28 |:.B:.6:.N:.5:.A(| 000000a0 34 30 2c 31 35 30 29 3a f2 50 0d 00 32 52 e3 49 |40,150):.P..2R.I| 000000b0 25 3d 31 b8 38 31 3a 53 25 3f 49 25 3d 30 3a ed |%=1.81:S%?I%=0:.| 000000c0 3a f2 4f 3a e7 48 25 3e 30 84 64 25 3e 30 3a db |:.O:.H%>0.d%>0:.| 000000d0 3a f1 22 43 68 61 6e 67 65 20 74 68 65 22 27 22 |:."Change the"'"| 000000e0 63 6f 6c 6f 75 72 73 20 28 59 2f 4e 29 3f 22 3a |colours (Y/N)?":| 000000f0 41 3d a5 3a e7 41 3d 38 39 3a f2 50 0d 00 3c fa |A=.:.A=89:.P..<.| 00000100 db 3a f1 22 53 68 61 6c 6c 20 49 20 73 74 61 72 |.:."Shall I star| 00000110 74 20 28 59 2f 4e 29 3f 22 3a 41 3d a5 3a db 3a |t (Y/N)?":A=.:.:| 00000120 53 25 3f 32 30 3d 31 3a 53 25 3f 31 30 3d 34 30 |S%?20=1:S%?10=40| 00000130 3a 53 25 3f 31 32 3d 33 30 3a 53 25 3f 31 33 3d |:S%?12=30:S%?13=| 00000140 34 37 3a 53 25 3f 32 37 3d 31 35 3a 53 25 3f 32 |47:S%?27=15:S%?2| 00000150 38 3d 32 30 3a 53 25 3f 32 39 3d 31 30 3a 53 25 |8=20:S%?29=10:S%| 00000160 3f 33 30 3d 34 30 3a 53 25 3f 33 31 3d 35 30 3a |?30=40:S%?31=50:| 00000170 53 25 3f 33 32 3d 33 30 3a 53 25 3f 32 34 3d 31 |S%?32=30:S%?24=1| 00000180 3a 53 25 3f 33 36 3d 33 39 3a 53 25 3f 33 37 3d |:S%?36=39:S%?37=| 00000190 36 35 3a 53 25 3f 33 38 3d 34 30 3a 53 25 3f 33 |65:S%?38=40:S%?3| 000001a0 39 3d 37 30 3a 53 25 3f 34 30 3d 31 30 30 3a 53 |9=70:S%?40=100:S| 000001b0 25 3f 34 31 3d 36 30 3a 53 25 3f 34 32 3d 33 30 |%?41=60:S%?42=30| 000001c0 3a 53 25 3f 34 33 3d 33 30 3a 53 25 3f 34 34 3d |:S%?43=30:S%?44=| 000001d0 33 30 3a 53 25 3f 36 32 3d 34 31 3a 53 25 3f 37 |30:S%?62=41:S%?7| 000001e0 32 3d 33 31 3a 53 25 3f 37 33 3d 31 31 3a 53 25 |2=31:S%?73=11:S%| 000001f0 3f 37 34 3d 34 31 0d 00 46 68 53 25 3f 37 38 3d |?74=41..FhS%?78=| 00000200 35 31 3a 53 25 3f 38 30 3d 39 30 3a 53 25 3f 32 |51:S%?80=90:S%?2| 00000210 36 3d 32 31 3a 53 25 3f 37 39 3d 34 30 3a 53 25 |6=21:S%?79=40:S%| 00000220 3f 36 30 3d 32 31 3a 53 25 3f 36 31 3d 31 31 3a |?60=21:S%?61=11:| 00000230 53 25 3f 35 34 3d 31 3a e3 49 25 3d 31 b8 32 37 |S%?54=1:.I%=1.27| 00000240 3a e7 49 25 3c 3d 31 39 e3 4a 25 3d 31 b8 31 39 |:.I%<=19.J%=1.19| 00000250 3a 4d 25 28 49 25 2c 4a 25 29 3d 30 3a ed 0d 00 |:M%(I%,J%)=0:...| 00000260 50 58 e3 4a 25 3d 31 b8 32 37 2a 32 37 88 32 37 |PX.J%=1.27*27.27| 00000270 3a 54 25 3f 28 49 25 2b 4a 25 29 3d 30 3a ed 3a |:T%?(I%+J%)=0:.:| 00000280 ed 3a 43 25 3d 2d 31 3a 57 25 3d 31 39 2d b3 28 |.:C%=-1:W%=19-.(| 00000290 31 30 29 3a 4e 25 3d 31 34 3a 4f 25 3d 31 34 3a |10):N%=14:O%=14:| 000002a0 58 25 3d 31 39 2d b3 28 31 30 29 3a e7 41 3d 38 |X%=19-.(10):.A=8| 000002b0 39 8c 8d 74 60 40 0d 00 5a 3e f2 43 3a 5a 25 3d |9..t`@..Z>.C:Z%=| 000002c0 62 25 3a 59 25 3d 63 25 3a 59 25 3d 59 25 2b 34 |b%:Y%=c%:Y%=Y%+4| 000002d0 3a 5a 25 3d 5a 25 2b 34 3a e7 59 25 3c 35 84 5a |:Z%=Z%+4:.Y%<5.Z| 000002e0 25 3c 35 84 59 25 3e 32 33 84 5a 25 3e 32 33 8c |%<5.Y%>23.Z%>23.| 000002f0 8d 44 5a 40 0d 00 64 19 e7 54 25 3f 28 59 25 2a |.DZ@..d..T%?(Y%*| 00000300 32 37 2b 5a 25 29 3e 30 8c 8d 44 5a 40 0d 00 6e |27+Z%)>0..DZ@..n| 00000310 5b f2 44 28 5a 25 2d 34 2c 59 25 2d 34 2c 32 32 |[.D(Z%-4,Y%-4,22| 00000320 35 2c 32 29 3a 54 25 3f 28 59 25 2a 32 37 2b 5a |5,2):T%?(Y%*27+Z| 00000330 25 29 3d 32 3a 49 25 3d 59 25 3a 4a 25 3d 5a 25 |%)=2:I%=Y%:J%=Z%| 00000340 3a f1 bd 33 30 3b 22 20 20 54 68 69 6e 6b 69 6e |:..30;" Thinkin| 00000350 67 2e 2e 2e 22 3a e4 8d 64 66 40 3a e7 43 25 3c |g...":..df@:.C%<| 00000360 3e 2d 31 8c 8d 74 74 40 0d 00 78 43 49 25 3d 57 |>-1..tt@..xCI%=W| 00000370 25 3a 4a 25 3d 58 25 3a e4 8d 64 66 40 3a 51 25 |%:J%=X%:..df@:Q%| 00000380 3d 2d 31 3a e3 49 25 3d 35 b8 32 33 3a e3 4a 25 |=-1:.I%=5.23:.J%| 00000390 3d 35 b8 32 33 3a e7 54 25 3f 28 49 25 2a 32 37 |=5.23:.T%?(I%*27| 000003a0 2b 4a 25 29 3e 30 8c 8d 74 56 40 0d 00 82 20 41 |+J%)>0..tV@... A| 000003b0 25 3d 4d 25 28 49 25 2d 34 2c 4a 25 2d 34 29 3a |%=M%(I%-4,J%-4):| 000003c0 e7 41 25 3c 51 25 8c 8d 74 56 40 0d 00 8c 15 57 |.A%<Q%..tV@....W| 000003d0 25 3d 49 25 3a 58 25 3d 4a 25 3a 51 25 3d 41 25 |%=I%:X%=J%:Q%=A%| 000003e0 0d 00 96 08 ed 2c 3a db 0d 00 a0 77 e3 49 25 3d |.....,:....w.I%=| 000003f0 31 b8 33 3a f2 44 28 58 25 2d 34 2c 57 25 2d 34 |1.3:.D(X%-4,W%-4| 00000400 2c 32 32 35 2c 30 29 3a 54 3d 91 3a f5 fd 91 3e |,225,0):T=.:...>| 00000410 54 2b 33 30 3a f2 44 28 58 25 2d 34 2c 57 25 2d |T+30:.D(X%-4,W%-| 00000420 34 2c 32 32 35 2c 31 29 3a 54 3d 91 3a f5 fd 91 |4,225,1):T=.:...| 00000430 3e 54 2b 33 30 3a ed 3a 54 25 3f 28 57 25 2a 32 |>T+30:.:T%?(W%*2| 00000440 37 2b 58 25 29 3d 31 3a e7 4d 25 28 57 25 2d 34 |7+X%)=1:.M%(W%-4| 00000450 2c 58 25 2d 34 29 3c 31 30 30 8c 8d 44 5a 40 0d |,X%-4)<100..DZ@.| 00000460 00 aa 26 f2 46 28 58 25 2d 34 2c 57 25 2d 34 2c |..&.F(X%-4,W%-4,| 00000470 31 29 3a db 3a f1 22 49 20 77 69 6e 22 3a 64 25 |1):.:."I win":d%| 00000480 3d 64 25 2b 31 0d 00 b4 2e e7 43 25 3d 30 3a f2 |=d%+1.....C%=0:.| 00000490 46 28 5a 25 2d 34 2c 59 25 2d 34 2c 32 29 3a db |F(Z%-4,Y%-4,2):.| 000004a0 3a f1 22 59 6f 75 20 77 69 6e 22 3a 48 25 3d 48 |:."You win":H%=H| 000004b0 25 2b 31 0d 00 be 47 f1 22 41 6e 6f 74 68 65 72 |%+1...G."Another| 000004c0 20 67 61 6d 65 20 28 59 2f 4e 29 20 3f 22 3a ef | game (Y/N) ?":.| 000004d0 32 38 2c 31 34 2c 32 34 2c 31 39 2c 32 3a f1 27 |28,14,24,19,2:.'| 000004e0 22 4d 65 20 20 22 3b 64 25 27 27 22 59 6f 75 20 |"Me ";d%''"You | 000004f0 22 3b 48 25 3a 2a 46 58 31 35 0d 00 c8 09 2a 46 |";H%:*FX15....*F| 00000500 58 31 32 0d 00 d2 4a 41 3d a5 3a e7 41 3c 3e 38 |X12...JA=.:.A<>8| 00000510 39 8c 8d 64 5e 43 8b e3 49 25 3d 31 b8 32 37 3a |9..d^C..I%=1.27:| 00000520 e3 4a 25 3d 31 b8 32 37 3a e7 54 25 3f 28 49 25 |.J%=1.27:.T%?(I%| 00000530 2a 32 37 2b 4a 25 29 3e 30 8c f2 44 28 4a 25 2d |*27+J%)>0..D(J%-| 00000540 34 2c 49 25 2d 34 2c 32 32 35 2c 30 29 0d 00 dc |4,I%-4,225,0)...| 00000550 1d ed 2c 3a db 3a ef 32 38 2c 30 2c 33 31 2c 31 |..,:.:.28,0,31,1| 00000560 39 2c 32 39 3a e5 8d 54 72 40 0d 00 e6 1f 4b 25 |9,29:..Tr@....K%| 00000570 3d 31 3a 4c 25 3d 2d 31 3a e7 49 25 3c 4e 25 e7 |=1:L%=-1:.I%<N%.| 00000580 49 25 3e 35 4e 25 3d 49 25 0d 00 f0 15 e7 49 25 |I%>5N%=I%.....I%| 00000590 3e 4f 25 e7 49 25 3c 32 33 4f 25 3d 49 25 0d 00 |>O%.I%<23O%=I%..| 000005a0 fa 14 55 25 3d 49 25 3a 56 25 3d 4a 25 3a 44 25 |..U%=I%:V%=J%:D%| 000005b0 3d 30 0d 01 04 2d 44 25 3d 44 25 2b 31 3a 50 25 |=0...-D%=D%+1:P%| 000005c0 3d 38 31 3a e7 55 25 3e 32 33 84 56 25 3e 32 33 |=81:.U%>23.V%>23| 000005d0 84 55 25 3c 35 84 56 25 3c 35 8c 8d 54 52 42 0d |.U%<5.V%<5..TRB.| 000005e0 01 0e e8 45 25 3d 55 25 2d 34 3a 47 25 3d 56 25 |...E%=U%-4:G%=V%| 000005f0 2d 34 3a 41 25 3d 4d 25 28 45 25 2c 47 25 29 3a |-4:A%=M%(E%,G%):| 00000600 51 25 3d 54 25 3f 28 32 37 2a 28 55 25 2b 4b 25 |Q%=T%?(27*(U%+K%| 00000610 29 2b 56 25 2b 4c 25 29 3a 52 25 3d 32 37 2a 54 |)+V%+L%):R%=27*T| 00000620 25 3f 28 32 37 2a 28 55 25 2d 4b 25 29 2b 56 25 |%?(27*(U%-K%)+V%| 00000630 2d 4c 25 29 2b 39 2a 54 25 3f 28 32 37 2a 28 55 |-L%)+9*T%?(27*(U| 00000640 25 2d 32 2a 4b 25 29 2b 56 25 2d 32 2a 4c 25 29 |%-2*K%)+V%-2*L%)| 00000650 2b 33 2a 54 25 3f 28 32 37 2a 28 55 25 2d 33 2a |+3*T%?(27*(U%-3*| 00000660 4b 25 29 2b 56 25 2d 33 2a 4c 25 29 2b 54 25 3f |K%)+V%-3*L%)+T%?| 00000670 28 32 37 2a 28 55 25 2d 34 2a 4b 25 29 2b 56 25 |(27*(U%-4*K%)+V%| 00000680 2d 34 2a 4c 25 29 3a 42 25 3d 51 25 2a 32 37 2b |-4*L%):B%=Q%*27+| 00000690 54 25 3f 28 32 37 2a 28 55 25 2b 32 2a 4b 25 29 |T%?(27*(U%+2*K%)| 000006a0 2b 56 25 2b 32 2a 4c 25 29 2a 39 2b 54 25 3f 28 |+V%+2*L%)*9+T%?(| 000006b0 32 37 2a 28 55 25 2b 33 2a 4b 25 29 2b 56 25 2b |27*(U%+3*K%)+V%+| 000006c0 33 2a 4c 25 29 2a 33 0d 01 18 1e e7 52 25 3d 38 |3*L%)*3.....R%=8| 000006d0 30 e7 54 25 3f 28 32 37 2a 55 25 2b 56 25 29 3d |0.T%?(27*U%+V%)=| 000006e0 32 43 25 3d 30 0d 01 22 1a e7 54 25 3f 28 32 37 |2C%=0.."..T%?(27| 000006f0 2a 55 25 2b 56 25 29 3c 3e 30 8c 8d 64 7e 41 0d |*U%+V%)<>0..d~A.| 00000700 01 2c 1a e7 52 25 3c 31 34 e7 52 25 3e 31 31 e7 |.,..R%<14.R%>11.| 00000710 51 25 3d 31 50 25 3d 33 37 0d 01 36 1b e7 52 25 |Q%=1P%=37..6..R%| 00000720 3e 37 31 e7 42 25 3e 35 33 e7 42 25 3c 36 33 50 |>71.B%>53.B%<63P| 00000730 25 3d 38 30 0d 01 40 15 e7 52 25 3e 37 31 e7 42 |%=80..@..R%>71.B| 00000740 25 3e 37 31 50 25 3d 38 30 0d 01 4a 1a e7 52 25 |%>71P%=80..J..R%| 00000750 3e 35 33 e7 52 25 3c 36 33 e7 51 25 3d 32 50 25 |>53.R%<63.Q%=2P%| 00000760 3d 37 32 0d 01 54 15 e7 50 25 3d 37 32 e7 52 25 |=72..T..P%=72.R%| 00000770 3d 36 30 50 25 3d 33 31 0d 01 5e 0f e7 51 25 3c |=60P%=31..^..Q%<| 00000780 3e 32 8c 8d 74 46 41 0d 01 68 0f e7 52 25 3d 37 |>2..tFA..h..R%=7| 00000790 38 50 25 3d 38 30 0d 01 72 0f e7 52 25 3d 37 39 |8P%=80..r..R%=79| 000007a0 50 25 3d 38 30 0d 01 7c 0f e7 52 25 3d 34 31 52 |P%=80..|..R%=41R| 000007b0 25 3d 38 31 0d 01 86 1a e7 52 25 3c 34 32 e7 52 |%=81.....R%<42.R| 000007c0 25 3e 33 35 e7 51 25 3d 31 50 25 3d 34 31 0d 01 |%>35.Q%=1P%=41..| 000007d0 90 1a e7 52 25 3c 33 33 e7 52 25 3e 32 39 e7 51 |...R%<33.R%>29.Q| 000007e0 25 3d 31 50 25 3d 34 31 0d 01 9a 1b e7 52 25 3e |%=1P%=41.....R%>| 000007f0 35 33 e7 52 25 3c 36 33 e7 42 25 3e 37 31 50 25 |53.R%<63.B%>71P%| 00000800 3d 38 30 0d 01 a4 1a e7 52 25 3e 33 38 e7 52 25 |=80.....R%>38.R%| 00000810 3c 34 32 e7 51 25 3d 31 52 25 3d 34 30 0d 01 ae |<42.Q%=1R%=40...| 00000820 21 e7 52 25 3e 33 35 e7 52 25 3c 34 35 e7 42 25 |!.R%>35.R%<45.B%| 00000830 3e 33 35 e7 42 25 3c 34 35 52 25 3d 34 30 0d 01 |>35.B%<45R%=40..| 00000840 b8 21 e7 52 25 3e 32 37 e7 52 25 3c 35 34 e7 42 |.!.R%>27.R%<54.B| 00000850 25 3e 33 38 e7 42 25 3c 34 32 52 25 3d 34 30 0d |%>38.B%<42R%=40.| 00000860 01 c2 1c e7 52 25 3d 37 39 e7 41 25 3d 35 31 4d |....R%=79.A%=51M| 00000870 25 28 45 25 2c 47 25 29 3d 34 31 0d 01 cc 0e e7 |%(E%,G%)=41.....| 00000880 52 25 3d 30 52 25 3d 38 31 0d 01 d6 16 e7 53 25 |R%=0R%=81.....S%| 00000890 3f 50 25 3e 53 25 3f 52 25 3a 52 25 3d 50 25 0d |?P%>S%?R%:R%=P%.| 000008a0 01 e0 2e e7 53 25 3f 52 25 2d 53 25 3f 52 25 83 |....S%?R%-S%?R%.| 000008b0 31 30 3d 31 e7 41 25 2d 41 25 83 31 30 3d 31 e7 |10=1.A%-A%.10=1.| 000008c0 53 25 3f 52 25 3c 34 31 52 25 3d 37 34 0d 01 ea |S%?R%<41R%=74...| 000008d0 2e e7 53 25 3f 52 25 2d 53 25 3f 52 25 83 31 30 |..S%?R%-S%?R%.10| 000008e0 3d 39 e7 41 25 2d 41 25 83 31 30 3d 39 e7 53 25 |=9.A%-A%.10=9.S%| 000008f0 3f 52 25 3c 36 35 52 25 3d 33 37 0d 01 f4 23 e7 |?R%<65R%=37...#.| 00000900 53 25 3f 52 25 3e 4d 25 28 45 25 2c 47 25 29 4d |S%?R%>M%(E%,G%)M| 00000910 25 28 45 25 2c 47 25 29 3d 53 25 3f 52 25 0d 01 |%(E%,G%)=S%?R%..| 00000920 fe 0e e7 44 25 3e 34 8c 8d 54 52 42 0d 02 08 1b |...D%>4..TRB....| 00000930 55 25 3d 55 25 2b 4b 25 3a 56 25 3d 56 25 2b 4c |U%=U%+K%:V%=V%+L| 00000940 25 3a e5 8d 54 44 41 0d 02 12 10 e7 4b 25 3d 30 |%:..TDA.....K%=0| 00000950 e7 4c 25 3d 2d 31 f8 0d 02 1c 14 e7 4b 25 3d 2d |.L%=-1......K%=-| 00000960 31 e7 4c 25 3d 2d 31 4b 25 3d 30 0d 02 26 14 e7 |1.L%=-1K%=0..&..| 00000970 4b 25 3d 2d 31 e7 4c 25 3d 30 4c 25 3d 2d 31 0d |K%=-1.L%=0L%=-1.| 00000980 02 30 13 e7 4b 25 3d 2d 31 e7 4c 25 3d 31 4c 25 |.0..K%=-1.L%=1L%| 00000990 3d 30 0d 02 3a 13 e7 4b 25 3d 30 e7 4c 25 3d 31 |=0..:..K%=0.L%=1| 000009a0 4b 25 3d 2d 31 0d 02 44 12 e7 4b 25 3d 31 e7 4c |K%=-1..D..K%=1.L| 000009b0 25 3d 31 4b 25 3d 30 0d 02 4e 12 e7 4b 25 3d 31 |%=1K%=0..N..K%=1| 000009c0 e7 4c 25 3d 30 4c 25 3d 31 0d 02 58 13 e7 4b 25 |.L%=0L%=1..X..K%| 000009d0 3d 31 e7 4c 25 3d 2d 31 4c 25 3d 30 0d 02 62 09 |=1.L%=-1L%=0..b.| 000009e0 e5 8d 64 7a 40 0d 02 6c 8a dd f2 41 28 58 25 2c |..dz@..l...A(X%,| 000009f0 59 25 29 3a ea 54 25 3a ef 31 39 2c 37 2c 30 3b |Y%):.T%:.19,7,0;| 00000a00 30 3b 3a ec 58 25 2c 59 25 3a 54 25 3d 69 25 2a |0;:.X%,Y%:T%=i%*| 00000a10 31 39 3a e3 49 25 3d 30 b8 31 39 3a f0 31 2c 30 |19:.I%=0.19:.1,0| 00000a20 2c 54 25 3a f0 30 2c 69 25 2c 2d 54 25 3a ed 3a |,T%:.0,i%,-T%:.:| 00000a30 ec 58 25 2c 59 25 3a e3 49 25 3d 30 b8 31 39 3a |.X%,Y%:.I%=0.19:| 00000a40 f0 31 2c 54 25 2c 30 3a f0 30 2c 2d 54 25 2c 69 |.1,T%,0:.0,-T%,i| 00000a50 25 3a ed 3a ef 31 39 2c 33 2c 46 25 3b 30 3b 3a |%:.:.19,3,F%;0;:| 00000a60 ef 32 39 2c 58 25 2d 31 36 3b 59 25 3b 3a e1 0d |.29,X%-16;Y%;:..| 00000a70 02 76 ab dd f2 42 3a ef 32 33 2c 32 32 34 2c 30 |.v...B:.23,224,0| 00000a80 2c 30 2c 26 37 45 2c 26 34 32 2c 26 34 32 2c 26 |,0,&7E,&42,&42,&| 00000a90 37 45 2c 30 2c 30 3a ef 32 33 2c 32 32 36 2c 30 |7E,0,0:.23,226,0| 00000aa0 2c 26 30 38 2c 26 30 38 2c 26 30 38 2c 26 30 38 |,&08,&08,&08,&08| 00000ab0 2c 26 30 38 2c 26 30 38 2c 30 3a ef 32 33 2c 32 |,&08,&08,0:.23,2| 00000ac0 32 37 2c 30 2c 30 2c 26 33 43 2c 26 32 34 2c 26 |27,0,0,&3C,&24,&| 00000ad0 32 34 2c 26 33 43 2c 30 2c 30 3a ef 32 33 2c 32 |24,&3C,0,0:.23,2| 00000ae0 32 35 2c 30 2c 26 31 38 2c 26 33 43 2c 26 33 43 |25,0,&18,&3C,&3C| 00000af0 2c 26 33 43 2c 26 33 43 2c 26 31 38 2c 30 3a ef |,&3C,&3C,&18,0:.| 00000b00 32 33 2c 32 32 38 2c 30 2c 30 2c 30 2c 26 31 43 |23,228,0,0,0,&1C| 00000b10 2c 30 2c 30 2c 30 2c 30 3a e1 0d 02 80 40 dd f2 |,0,0,0,0:....@..| 00000b20 44 28 58 25 2c 59 25 2c 65 25 2c 68 25 29 3a ec |D(X%,Y%,e%,h%):.| 00000b30 30 2c 30 3a ef 35 3a ec 28 58 25 2d 31 29 2a 69 |0,0:.5:.(X%-1)*i| 00000b40 25 2b 38 2c 59 25 2a 69 25 2d 38 3a e6 30 2c 68 |%+8,Y%*i%-8:.0,h| 00000b50 25 3a ef 65 25 3a ef 34 3a e1 0d 02 8a 2f dd f2 |%:.e%:.4:..../..| 00000b60 50 3a ef 32 38 2c 30 2c 33 31 2c 31 39 2c 32 39 |P:.28,0,31,19,29| 00000b70 3a ef 32 33 3b 26 32 30 30 41 3b 30 3b 30 3b 30 |:.23;&200A;0;0;0| 00000b80 3b 3a db 3a 2a 46 58 31 35 0d 02 94 0b 2a 46 58 |;:.:*FX15....*FX| 00000b90 31 32 2c 30 0d 02 9e 95 f1 22 50 6c 65 61 73 65 |12,0....."Please| 00000ba0 20 73 65 6c 65 63 74 22 27 22 62 6f 61 72 64 20 | select"'"board | 00000bb0 63 6f 6c 6f 75 72 22 3b 3a 46 25 3d a4 50 28 33 |colour";:F%=.P(3| 00000bc0 2c 46 25 29 3a f1 bd 31 33 22 6d 79 20 63 6f 6c |,F%):..13"my col| 00000bd0 6f 75 72 20 20 20 22 3b 3a f2 44 28 31 39 2c 2d |our ";:.D(19,-| 00000be0 32 2c 32 32 35 2c 31 29 3a 4d 25 3d a4 50 28 31 |2,225,1):M%=.P(1| 00000bf0 2c 4d 25 29 3a f1 bd 31 33 22 79 6f 75 72 20 63 |,M%):..13"your c| 00000c00 6f 6c 6f 75 72 20 20 22 3b 3a f2 44 28 31 39 2c |olour ";:.D(19,| 00000c10 2d 32 2c 32 32 35 2c 32 29 3a 67 25 3d a4 50 28 |-2,225,2):g%=.P(| 00000c20 32 2c 67 25 29 3a db 3a e1 0d 02 a8 14 dd a4 50 |2,g%):.:.......P| 00000c30 28 49 25 2c 4a 25 29 3a 2a 46 58 31 35 0d 02 b2 |(I%,J%):*FX15...| 00000c40 0b 2a 46 58 31 32 2c 30 0d 02 bc 29 f5 ef 31 39 |.*FX12,0...)..19| 00000c50 2c 49 25 2c 4a 25 3b 30 3b 3a 41 25 3d a5 3a 4a |,I%,J%;0;:A%=.:J| 00000c60 25 3d 4a 25 2b 31 3a e7 4a 25 3d 38 8c 4a 25 3d |%=J%+1:.J%=8.J%=| 00000c70 31 0d 02 c6 19 fd 41 25 3d 31 33 3a e7 4a 25 3d |1.....A%=13:.J%=| 00000c80 31 8c 3d 37 8b 3d 4a 25 2d 31 0d 02 d0 21 dd f2 |1.=7.=J%-1...!..| 00000c90 43 3a db 3a f1 22 20 20 20 59 6f 75 72 20 6d 6f |C:.:." Your mo| 00000ca0 76 65 22 3a 2a 46 58 31 31 2c 31 0d 02 da 0b 2a |ve":*FX11,1....*| 00000cb0 46 58 31 32 2c 31 0d 02 e4 15 53 24 3d 22 2f 3a |FX12,1....S$="/:| 00000cc0 5a 58 7a 78 22 3a e5 8d 44 48 43 0d 02 ee 09 2a |ZXzx":..DHC....*| 00000cd0 46 58 31 35 0d 02 f8 13 41 24 3d be 3a e7 41 24 |FX15....A$=.:.A$| 00000ce0 3d bd 31 33 db 3a e1 0d 03 02 3d 49 25 3d 30 3a |=.13.:....=I%=0:| 00000cf0 f5 49 25 3d 49 25 2b 31 3a fd 41 24 3d c1 53 24 |.I%=I%+1:.A$=.S$| 00000d00 2c 49 25 2c 31 29 84 49 25 3e 37 3a e7 49 25 3e |,I%,1).I%>7:.I%>| 00000d10 37 8c 8d 64 6e 42 8b e7 49 25 3e 34 8c 49 25 3d |7..dnB..I%>4.I%=| 00000d20 49 25 2d 32 0d 03 0c 37 e7 49 25 3c 3d 32 8c 4a |I%-2...7.I%<=2.J| 00000d30 25 3d 28 49 25 2d 31 29 2a 32 2d 31 3a f2 44 28 |%=(I%-1)*2-1:.D(| 00000d40 30 2c 63 25 2c 32 32 38 2c 30 29 3a f2 44 28 32 |0,c%,228,0):.D(2| 00000d50 30 2c 63 25 2c 32 32 38 2c 30 29 0d 03 16 36 e7 |0,c%,228,0)...6.| 00000d60 49 25 3e 32 8c 4a 25 3d 28 49 25 2d 33 29 2a 32 |I%>2.J%=(I%-3)*2| 00000d70 2d 31 3a f2 44 28 62 25 2c 30 2c 32 32 35 2c 30 |-1:.D(b%,0,225,0| 00000d80 29 3a f2 44 28 62 25 2c 32 30 2c 32 32 35 2c 30 |):.D(b%,20,225,0| 00000d90 29 0d 03 20 2a e7 54 25 3f 28 32 37 2a 28 63 25 |).. *.T%?(27*(c%| 00000da0 2b 34 29 2b 62 25 2b 34 29 3d 30 8c f2 44 28 62 |+4)+b%+4)=0..D(b| 00000db0 25 2c 63 25 2c 32 32 37 2c 30 29 0d 03 2a 1c e7 |%,c%,227,0)..*..| 00000dc0 49 25 3c 3d 32 8c 63 25 3d 63 25 2b 4a 25 8b 62 |I%<=2.c%=c%+J%.b| 00000dd0 25 3d 62 25 2b 4a 25 0d 03 34 1a e7 63 25 3d 30 |%=b%+J%..4..c%=0| 00000de0 8c 63 25 3d 31 39 8b e7 63 25 3d 32 30 63 25 3d |.c%=19..c%=20c%=| 00000df0 31 0d 03 3e 1a e7 62 25 3d 30 8c 62 25 3d 31 39 |1..>..b%=0.b%=19| 00000e00 8b e7 62 25 3d 32 30 62 25 3d 31 0d 03 48 68 f2 |..b%=20b%=1..Hh.| 00000e10 44 28 30 2c 63 25 2c 32 32 38 2c 33 29 3a f2 44 |D(0,c%,228,3):.D| 00000e20 28 32 30 2c 63 25 2c 32 32 38 2c 33 29 3a f2 44 |(20,c%,228,3):.D| 00000e30 28 62 25 2c 30 2c 32 32 36 2c 33 29 3a f2 44 28 |(b%,0,226,3):.D(| 00000e40 62 25 2c 32 30 2c 32 32 36 2c 33 29 3a e7 54 25 |b%,20,226,3):.T%| 00000e50 3f 28 32 37 2a 28 63 25 2b 34 29 2b 62 25 2b 34 |?(27*(c%+4)+b%+4| 00000e60 29 3d 30 8c f2 44 28 62 25 2c 63 25 2c 32 32 37 |)=0..D(b%,c%,227| 00000e70 2c 32 29 0d 03 52 09 e5 8d 64 6e 42 0d 03 5c 46 |,2)..R...dnB..\F| 00000e80 dd f2 46 28 58 25 2c 59 25 2c 6b 25 29 3a ea 50 |..F(X%,Y%,k%):.P| 00000e90 25 2c 6c 25 2c 6d 25 2c 6a 25 3a 50 25 3d 30 3a |%,l%,m%,j%:P%=0:| 00000ea0 6c 25 3d 58 25 3a 6d 25 3d 59 25 3a e3 49 25 3d |l%=X%:m%=Y%:.I%=| 00000eb0 2d 31 b8 31 3a e3 4a 25 3d 2d 31 b8 31 3a 6a 25 |-1.1:.J%=-1.1:j%| 00000ec0 3d 30 0d 03 66 9e f5 3a 61 25 3f 50 25 3d 58 25 |=0..f..:a%?P%=X%| 00000ed0 3a 50 25 3d 50 25 2b 31 3a 61 25 3f 50 25 3d 59 |:P%=P%+1:a%?P%=Y| 00000ee0 25 3a 50 25 3d 50 25 2b 31 3a 58 25 3d 58 25 2b |%:P%=P%+1:X%=X%+| 00000ef0 49 25 3a 59 25 3d 59 25 2b 4a 25 3a fd 54 25 3f |I%:Y%=Y%+J%:.T%?| 00000f00 28 32 37 2a 28 59 25 2b 34 29 2b 58 25 2b 34 29 |(27*(Y%+4)+X%+4)| 00000f10 3c 3e 6b 25 84 50 25 3d 31 30 3a e7 54 25 3f 28 |<>k%.P%=10:.T%?(| 00000f20 32 37 2a 28 59 25 2b 34 29 2b 58 25 2b 34 29 3c |27*(Y%+4)+X%+4)<| 00000f30 3e 6b 25 80 6a 25 3d 30 80 50 25 3c 3e 31 30 8c |>k%.j%=0.P%<>10.| 00000f40 58 25 3d 58 25 2d 35 2a 49 25 3a 59 25 3d 59 25 |X%=X%-5*I%:Y%=Y%| 00000f50 2d 35 2a 4a 25 3a 6a 25 3d 31 3a e5 8d 44 66 43 |-5*J%:j%=1:..DfC| 00000f60 0d 03 70 25 e7 50 25 3d 31 30 8c 49 25 3d 31 3a |..p%.P%=10.I%=1:| 00000f70 4a 25 3d 31 8b 58 25 3d 6c 25 3a 59 25 3d 6d 25 |J%=1.X%=l%:Y%=m%| 00000f80 3a 50 25 3d 30 0d 03 7a 7d ed 2c 3a e3 4a 25 3d |:P%=0..z}.,:.J%=| 00000f90 30 b8 33 3a e3 49 25 3d 30 b8 39 88 32 3a f2 44 |0.3:.I%=0.9.2:.D| 00000fa0 28 61 25 3f 49 25 2c 61 25 3f 28 49 25 2b 31 29 |(a%?I%,a%?(I%+1)| 00000fb0 2c 32 32 35 2c 30 29 3a ed 3a 6a 25 3d 91 3a f5 |,225,0):.:j%=.:.| 00000fc0 fd 91 3d 6a 25 2b 37 30 3a e3 49 25 3d 30 b8 39 |..=j%+70:.I%=0.9| 00000fd0 88 32 3a f2 44 28 61 25 3f 49 25 2c 61 25 3f 28 |.2:.D(a%?I%,a%?(| 00000fe0 49 25 2b 31 29 2c 32 32 35 2c 6b 25 29 3a ed 3a |I%+1),225,k%):.:| 00000ff0 6a 25 3d 91 3a f5 fd 91 3d 6a 25 2b 37 30 3a ed |j%=.:...=j%+70:.| 00001000 3a e1 0d 03 84 f1 dd f2 4e 3a f1 27 22 47 4f 4d |:.......N:.'"GOM| 00001010 4f 4b 55 20 69 73 20 61 20 62 6f 61 72 64 20 67 |OKU is a board g| 00001020 61 6d 65 20 77 68 65 72 65 20 74 68 65 20 77 69 |ame where the wi| 00001030 6e 6e 65 72 22 3a f1 22 69 73 20 74 68 65 20 66 |nner":."is the f| 00001040 69 72 73 74 20 74 6f 20 67 65 74 20 35 20 63 6f |irst to get 5 co| 00001050 75 6e 74 65 72 73 20 69 6e 20 61 20 72 6f 77 22 |unters in a row"| 00001060 3a f1 22 28 68 6f 72 69 7a 6f 6e 74 61 6c 2c 20 |:."(horizontal, | 00001070 76 65 72 74 69 63 61 6c 20 6f 72 20 64 69 61 67 |vertical or diag| 00001080 6f 6e 61 6c 29 2e 22 3a f1 27 22 54 6f 20 70 6c |onal).":.'"To pl| 00001090 61 63 65 20 61 20 63 6f 75 6e 74 65 72 20 6f 6e |ace a counter on| 000010a0 20 74 68 65 20 62 6f 61 72 64 2c 20 6d 6f 76 65 | the board, move| 000010b0 22 27 22 74 68 65 20 63 75 72 73 6f 72 20 28 22 |"'"the cursor ("| 000010c0 3b bd 32 32 34 3b 22 29 20 74 6f 20 74 68 65 20 |;.224;") to the | 000010d0 64 65 73 69 72 65 64 20 73 71 75 61 72 65 22 27 |desired square"'| 000010e0 22 61 6e 64 20 70 72 65 73 73 20 52 45 54 55 52 |"and press RETUR| 000010f0 4e 2e 22 0d 03 8e 62 f1 27 22 20 43 55 52 53 4f |N."...b.'" CURSO| 00001100 52 20 43 4f 4e 54 52 4f 4c 20 4b 45 59 53 20 3a |R CONTROL KEYS :| 00001110 2d 22 3a f1 27 8a 31 34 29 22 5a 20 2d 20 4c 65 |-":.'.14)"Z - Le| 00001120 66 74 22 3a f1 27 8a 31 34 29 22 58 20 2d 20 52 |ft":.'.14)"X - R| 00001130 69 67 68 74 22 3a f1 27 8a 31 34 29 22 3a 20 2d |ight":.'.14)": -| 00001140 20 55 70 22 3a f1 27 8a 31 34 29 22 2f 20 2d 20 | Up":.'.14)"/ - | 00001150 44 6f 77 6e 22 0d 03 98 db f1 27 22 54 6f 20 63 |Down".....'"To c| 00001160 68 6f 6f 73 65 20 74 68 65 20 62 6f 61 72 64 20 |hoose the board | 00001170 61 6e 64 20 63 6f 75 6e 74 65 72 20 63 6f 6c 6f |and counter colo| 00001180 75 72 73 2c 70 72 65 73 73 20 61 6e 79 20 6b 65 |urs,press any ke| 00001190 79 20 77 68 65 6e 20 79 6f 75 20 61 72 65 20 70 |y when you are p| 000011a0 72 6f 6d 70 74 65 64 20 61 6e 64 22 27 22 74 68 |rompted and"'"th| 000011b0 65 20 73 65 6c 65 63 74 65 64 20 63 6f 6c 6f 75 |e selected colou| 000011c0 72 20 77 69 6c 6c 20 61 6c 74 65 72 2e 20 57 68 |r will alter. Wh| 000011d0 65 6e 20 74 68 65 64 65 73 69 72 65 64 20 63 6f |en thedesired co| 000011e0 6c 6f 75 72 20 69 73 20 64 69 73 70 6c 61 79 65 |lour is displaye| 000011f0 64 20 70 72 65 73 73 20 52 45 54 55 52 4e 22 3a |d press RETURN":| 00001200 f1 22 20 20 20 20 50 72 65 73 73 20 74 68 65 20 |." Press the | 00001210 53 50 41 43 45 20 42 41 52 20 74 6f 20 63 6f 6e |SPACE BAR to con| 00001220 74 69 6e 75 65 22 3b 3a f5 fd a5 3d 33 32 3a e1 |tinue";:...=32:.| 00001230 0d 03 a2 17 dd f2 4f ef 32 33 2c 31 2c 30 3b 30 |......O.23,1,0;0| 00001240 3b 30 3b 30 3b 3a e1 0d 03 ac 22 dd f2 49 24 4d |;0;0;:...."..I$M| 00001250 3d c4 32 35 35 2c bd 30 29 3a 4d 3f 32 35 35 3d |=.255,.0):M?255=| 00001260 30 3a 43 3d 32 32 34 3a e1 0d 03 b6 87 dd f2 4c |0:C=224:.......L| 00001270 28 41 24 2c 79 25 29 42 24 3d 22 22 3a 43 24 3d |(A$,y%)B$="":C$=| 00001280 22 22 3a e3 66 25 3d 31 b8 a9 41 24 3a 4b 25 3d |"":.f%=1..A$:K%=| 00001290 a4 43 28 97 c1 41 24 2c 66 25 2c 31 29 29 3a 42 |.C(..A$,f%,1)):B| 000012a0 24 3d 42 24 2b bd 4b 25 3a 43 24 3d 43 24 2b bd |$=B$+.K%:C$=C$+.| 000012b0 28 4b 25 2b 31 29 3a ed 3a 4b 25 3d 31 39 2d a9 |(K%+1):.:K%=19-.| 000012c0 41 24 2f 32 3a 44 24 3d bd 33 31 2b bd 4b 25 2b |A$/2:D$=.31+.K%+| 000012d0 bd 79 25 2b 42 24 2b bd 33 31 2b bd 4b 25 2b bd |.y%+B$+.31+.K%+.| 000012e0 28 79 25 2b 31 29 2b 43 24 3a f1 44 24 3b 3a e1 |(y%+1)+C$:.D$;:.| 000012f0 0d 03 c0 7a dd a4 43 28 43 25 29 e7 4d 3f 43 25 |...z..C(C%).M?C%| 00001300 8c 3d 4d 3f 43 25 8b e7 43 3e 3d 32 35 36 fa 8b |.=M?C%..C>=256..| 00001310 4d 3f 43 25 3d 43 3a 3f 42 3d 43 25 3a 41 25 3d |M?C%=C:?B=C%:A%=| 00001320 31 30 3a 58 25 3d 42 3a 59 25 3d 42 81 32 35 36 |10:X%=B:Y%=B.256| 00001330 3a d6 6f 3a e3 4a 25 3d 30 b8 31 3a ef 32 33 2c |:.o:.J%=0.1:.23,| 00001340 43 2b 4a 25 3a e3 49 25 3d 32 b8 39 3a ef 42 3f |C+J%:.I%=2.9:.B?| 00001350 28 4a 25 2a 34 2b 49 25 81 32 29 3a ed 2c 3a 43 |(J%*4+I%.2):.,:C| 00001360 3d 43 2b 32 3a 3d 4d 3f 43 25 0d 03 ca 23 dd f2 |=C+2:=M?C%...#..| 00001370 45 28 41 24 2c 79 25 29 f1 8a 28 33 38 2d a9 41 |E(A$,y%)..(38-.A| 00001380 24 29 2f 32 2c 79 25 29 41 24 3b 3a e1 0d 03 d4 |$)/2,y%)A$;:....| 00001390 1a e7 9f 3c 3e 31 37 f6 3a f1 22 20 61 74 20 6c |...<>17.:." at l| 000013a0 69 6e 65 20 22 3b 9e 0d 03 de ff f5 3a eb 34 3a |ine ";......:.4:| 000013b0 db 3a f2 45 28 22 57 68 69 63 68 20 64 6f 20 79 |.:.E("Which do y| 000013c0 6f 75 20 77 61 6e 74 20 74 6f 20 64 6f 20 3f 22 |ou want to do ?"| 000013d0 2c 31 30 29 3a f1 8a 31 30 2c bc 2b 33 29 22 22 |,10):..10,.+3)""| 000013e0 3b 3a f2 6e 28 22 52 22 29 3a f1 22 65 70 65 61 |;:.n("R"):."epea| 000013f0 74 20 74 68 69 73 20 70 72 6f 67 72 61 6d 22 3a |t this program":| 00001400 f1 8a 31 30 2c bc 2b 31 29 22 47 6f 20 74 6f 20 |..10,.+1)"Go to | 00001410 22 3b 3a f2 6e 28 22 4e 22 29 3a f1 22 65 78 74 |";:.n("N"):."ext| 00001420 20 70 72 6f 67 72 61 6d 22 3a f1 8a 31 30 2c bc | program":..10,.| 00001430 2b 31 29 22 52 65 74 75 72 6e 20 74 6f 20 6d 61 |+1)"Return to ma| 00001440 69 6e 20 22 3b 3a f2 6e 28 22 4d 22 29 3a f1 22 |in ";:.n("M"):."| 00001450 65 6e 75 22 3a f1 8a 31 30 2c bc 2b 31 29 22 22 |enu":..10,.+1)""| 00001460 3b 3a f2 6e 28 22 45 22 29 3a f1 22 78 69 74 20 |;:.n("E"):."xit | 00001470 66 72 6f 6d 20 64 69 73 63 22 3a f1 8a 30 2c bc |from disc":..0,.| 00001480 2b 33 29 22 43 68 6f 6f 73 65 20 66 72 6f 6d 20 |+3)"Choose from | 00001490 22 3b 3a f2 6e 28 22 52 22 29 3a f1 22 65 70 65 |";:.n("R"):."epe| 000014a0 61 74 2c 20 22 3b 0d 03 e8 74 f2 6e 28 22 4e 22 |at, ";...t.n("N"| 000014b0 29 3a f1 22 65 78 74 2c 20 22 3b 3a f2 6e 28 22 |):."ext, ";:.n("| 000014c0 4d 22 29 3a f1 22 65 6e 75 20 6f 72 20 22 3b 3a |M"):."enu or ";:| 000014d0 f2 6e 28 22 45 22 29 3a f1 22 78 69 74 20 22 3b |.n("E"):."xit ";| 000014e0 3a 41 24 3d be 3a fd 28 41 24 3d 22 52 22 29 84 |:A$=.:.(A$="R").| 000014f0 28 41 24 3d 22 4e 22 29 84 28 41 24 3d 22 4d 22 |(A$="N").(A$="M"| 00001500 29 84 28 41 24 3d 22 45 22 29 3a db 3a e7 41 24 |).(A$="E"):.:.A$| 00001510 3d 22 52 22 8c e5 8d 54 5e 40 0d 03 f2 23 e7 41 |="R"...T^@...#.A| 00001520 24 3d 22 4e 22 8c 50 25 3d 38 8b e7 41 24 3d 22 |$="N".P%=8..A$="| 00001530 4d 22 8c 50 25 3d 31 8b 50 25 3d 31 37 0d 03 fc |M".P%=1.P%=17...| 00001540 08 2a 46 58 34 0d 04 06 0c 2a 46 58 32 30 31 2c |.*FX4....*FX201,| 00001550 31 0d 04 10 0b 2a 46 58 31 35 2c 31 0d 04 1a 10 |1....*FX15,1....| 00001560 ef 32 31 3a 2a 46 58 32 32 30 2c 30 0d 04 24 0d |.21:*FX220,0..$.| 00001570 d7 22 42 4f 4f 54 22 3a e0 0d 04 2e 22 dd f2 6e |."BOOT":...."..n| 00001580 28 41 24 29 3a fb 30 3a fb 31 33 35 3a f1 41 24 |(A$):.0:.135:.A$| 00001590 3b 3a fb 37 3a fb 31 32 38 3a e1 0d ff |;:.7:.128:...| 0000159d