Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_EUG_54.adf » G/CASTLE

G/CASTLE

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_EUG_54.adf
Filename: G/CASTLE
Read OK:
File size: 17A1 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10REM **************************
   20REM Beleaguered Castle
   30REM By R.A.Dimond
   40REM (c) October 1992
   50REM Version 2, June 1995
   60REM Revised August 2000
   70REM **************************
   80ONERROR IF ERR=17 RUN ELSE MODE6:REPORT:PRINT" at line ";ERL:END
   90*FX21,0
  100IF PAGE>&E00 COLOUR0:GOTO2580
  110MODE1:VDU23;8202;0;0;0;
  120VDU19,0,4;0;19,2,0;0;
  130PROCvars
  140PROCrandom
  150PROCinit
  160PROCdeal
  170REPEAT:VDU26,4:U%=FALSE
  180PRINTTAB(9,28);sc%;"  "
  190PROCenter
  200IFU% GOTO270
  210PROCcheck
  220IFmv%=FALSE THEN VDU7:m$=LEFT$(m$,LENm$-2):PRINTTAB(10,30)"You can't move there!";:TIME=0:REPEATUNTILTIME>300:PRINTTAB(4,30)SPC35:OSCLI"FX15":GOTO190
  230move%=move%+1:PROCfrom:PROCto
  240IFA%(1)=13 ANDA%(2)=13 ANDA%(3)=13 ANDA%(4)=13 THENwin%=TRUE
  250UNTILINKEY-74 ORwin%=TRUE
  260IFwin%=TRUE THEN TIME=0:REPEATUNTILTIME=500:MODE6:PROCwin
  270UNTIL0 ORK$="N"
  280END
  290:
  300DEFPROCtitle
  310PRINTTAB(10,1)"BELEAGUERED CASTLE"
  320PRINTTAB(10,2)STRING$(18,"~")
  330ENDPROC
  340:
  350DEFPROCvars
  360DIM N%(48),c%(48),s%(48),C%(8,16),S%(8,16),A%(4),D%(8)
  370m$="":sc%=0:win%=FALSE
  380ENDPROC
  390:
  400DEFPROCrandom
  410*FX15
  420PROCtitle
  430PRINTTAB(0,6)"Enter Deal No. "''"or press RETURN"'"for a random deal"
  440INPUTTAB(15,6)M%
  450IFM%=0 M%=ABS(RND(-TIME))
  460G=RND(-M%)
  470FORI%=1TO48:N%(I%)=I%:NEXT:FORI%=48 TO2STEP-1:D%=RND(I%):T%=N%(D%):N%(D%)=N%(I%):N%(I%)=T%:NEXTI%
  480RESTORE:FORi%=1TO48:READc%(i%),s%(i%):NEXT
  490CLS
  500ENDPROC
  510DATA8,1,3,2,11,4,12,1,4,2,9,1,6,2,2,3,7,3,10,3,5,2,13,2,5,1,2,4,10,2,8,2,6,1,3,1,9,4,11,3,7,2,13,4,4,3,12,2
  520DATA10,1,12,4,4,1,13,1,8,3,2,1,7,1,11,2,3,4,9,2,6,4,13,3,7,4,2,2,11,1,5,3,9,3,6,3,4,4,10,4,3,3,8,4,5,4,12,3
  530:
  540DEFPROCinit
  550PROCtitle
  560PRINTTAB(12,3)"Deal No. ";M%:MM%=M%
  570FORn%=1TO4:A%(n%)=1:NEXT:FORn%=1TO8:D%(n%)=6:NEXT
  580VDU5:X%=560:FORn%=1TO4:Y%=848-160*n%
  590C%=1:S%=n%:PROCcard(C%,S%)
  600NEXT
  610n%=1:FORI%=1TO8:FORJ%=1TO6
  620C%(I%,J%)=c%(N%(n%)):S%(I%,J%)=s%(N%(n%)):n%=n%+1
  630NEXT:NEXT
  640ENDPROC
  650:
  660DEFPROCfive
  670PRINT;CHR$241;CHR$8;CHR$10;CHR$240;CHR$8;CHR$10;
  680ENDPROC
  690:
  700DEFPROCcard(card%,suit%)
  710VDU5
  720IF(suit%=1 ORsuit%=3) col%=1 ELSEIF(suit%=2 ORsuit%=4) col%=2
  730suit%=suit%+223
  740VDU24,X%-4;Y%-4;X%+100;Y%+132;:GCOL0,131:CLG
  750GCOL0,2:MOVEX%-4,Y%-4:DRAWX%-4,Y%+132:DRAWX%+100,Y%+132:DRAWX%+100,Y%-4:DRAWX%-4,Y%-4
  760IFcard%=1 cd%=65
  770IFcard%=11 cd%=ASC"J"
  780IFcard%=12 cd%=ASC"Q"
  790IFcard%=13 cd%=ASC"K"
  800IFcard%>1 ANDcard%<10 cd%=card%+48
  810IFcard%=10 cd%=229
  820PROCp
  830PROCpp
  840VDU4
  850ENDPROC
  860:
  870DEFPROCp
  880MOVEX%,Y%+28:GCOL0,col%:PRINT;CHR$suit%:MOVEX%,Y%+128:PRINT;CHR$cd%
  890MOVEX%+64,Y%+28:PRINT;CHR$cd%:MOVEX%+64,Y%+128:PRINT;CHR$suit%
  900ENDPROC
  910:
  920DEFPROCpp
  930IFcard%=1 MOVEX%+32,Y%+80:PRINT;CHR$suit%:ENDPROC
  940IFcard%=2 MOVEX%+32,Y%+120:PRINT;CHR$239;:MOVEX%+32,Y%+56:PRINT;CHR$239:ENDPROC
  950IFcard%=3 MOVEX%+32,Y%+120:PRINT;CHR$239;:MOVEX%+32,Y%+88:PRINT;CHR$239;:MOVEX%+32,Y%+56:PRINT;CHR$239:ENDPROC
  960IFcard%=4 MOVEX%+32,Y%+104:PRINT;CHR$240;:MOVEX%+32,Y%+40:PRINT;CHR$240:ENDPROC
  970IFcard%=5 MOVEX%+32,Y%+104:PRINT;CHR$240;:MOVEX%+32,Y%+88:PRINT;CHR$239;:MOVEX%+32,Y%+40:PRINT;CHR$240:ENDPROC
  980IFcard%=6 MOVEX%+32,Y%+104:PRINT;CHR$240;:MOVEX%+32,Y%+72:PRINT;CHR$240;:MOVEX%+32,Y%+40:PRINT;CHR$240:ENDPROC
  990IFcard%=7 MOVEX%+32,Y%+104:PROCfive:MOVEX%+32,Y%+40:PRINT;CHR$240:ENDPROC
 1000IFcard%=8 MOVEX%+32,Y%+104:PRINT;CHR$241;:MOVEX%+32,Y%+72:PROCfive:ENDPROC
 1010IFcard%=9 MOVEX%+32,Y%+112:PRINT;CHR$240;:MOVEX%+32,Y%+88:PROCfive:MOVEX%+32,Y%+32:PRINT;CHR$240:ENDPROC
 1020IFcard%=10 MOVEX%+32,Y%+112:PROCfive:MOVEX%+32,Y%+66:PROCfive:ENDPROC
 1030IFcard%=11 C$=CHR$242 ELSEIFcard%=12 C$=CHR$243 ELSEIFcard%=13 C$=CHR$244
 1040IFcard%=11 D$=CHR$248+CHR$249+CHR$252 ELSEIFcard%=12 D$=CHR$248+CHR$250+CHR$252 ELSEIFcard%=13 D$=CHR$248+CHR$251+CHR$252
 1050MOVEX%+32,Y%+128:PRINTC$
 1060MOVEX%,Y%+96:PRINTCHR$245+CHR$246+CHR$247
 1070GCOL0,0:MOVEX%,Y%+64:PRINTD$:GCOL0,col%
 1080MOVEX%+32,Y%+32:PRINTCHR$253:ENDPROC
 1090:
 1100DEFPROCdeal
 1110Y%=688:FORI%=1TO8
 1120IFI%>4 THENK%=848 ELSEK%=80
 1130FORJ%=1TO6:X%=K%+40*(J%-1)
 1140C%=C%(I%,J%):S%=S%(I%,J%)
 1150PROCcard(C%,S%)
 1160NEXT
 1170IFI%=4 THENY%=688 ELSEY%=Y%-160
 1180NEXT
 1190VDU4:FORn%=1TO4:PRINTTAB(16,n%*5+3);n%:NEXT
 1200FORn%=1TO8:IFn%>4 THENx%=25:y%=n%-4 ELSEx%=1:y%=n%
 1210PRINTTAB(x%,5*y%+3)CHR$(64+n%);:NEXT
 1220ENDPROC
 1230:
 1240DEFPROCenter
 1250PRINTTAB(2,28);"Score: ";sc%
 1260PRINTTAB(6,30);"Move from? ";
 1270flag%=FALSE:PROCkey
 1280IFK$="U" ENDPROC
 1290IFK$="R" PROCsavdat:RUN
 1300IFK$="S" PROCwin:RUN
 1310chk=TRUE
 1320from%=a%
 1330PRINTK$
 1340PRINTTAB(26,30);"Move to? ";
 1350flag%=TRUE:PROCkey
 1360to%=a%
 1370PRINTK$
 1380FORz%=1TO100:NEXT:PRINTTAB(4,30);SPC35
 1390ENDPROC
 1400:
 1410DEFPROCkey
 1420IFflag% A$="ABCDEFGH1234" ELSE A$="ABCDEFGHURS"
 1430REPEAT:a%=INSTR(A$,GET$):UNTILa%
 1440K$=MID$(A$,a%,1)
 1450IFK$="U" chk=FALSE:PROCundo:ENDPROC
 1460m$=m$+K$
 1470ENDPROC
 1480:
 1490DEFPROCcheck:mv%=TRUE
 1500IFD%(from%)=0 mv%=FALSE:ENDPROC
 1510IFto%<9:PROCcheck2:ENDPROC
 1520IFS%(from%,D%(from%))<>(to%-8) mv%=FALSE:ENDPROC
 1530IFC%(from%,D%(from%))<>A%(to%-8)+1 mv%=FALSE:ENDPROC
 1540ENDPROC
 1550:
 1560DEFPROCcheck2
 1570IFD%(to%)=16 mv%=FALSE:ENDPROC
 1580IFD%(to%)=0 mv%=TRUE:ENDPROC
 1590IFC%(from%,D%(from%))+1<>C%(to%,D%(to%)) mv%=FALSE:ENDPROC
 1600ENDPROC
 1610:
 1620DEFPROCfrom
 1630IFfrom%>8 GOTO1760
 1640C1%=C%(from%,D%(from%)):S1%=S%(from%,D%(from%))
 1650C%(from%,D%(from%))=0:S%(from%,D%(from%))=0
 1660D%(from%)=D%(from%)-1:Z%=1
 1670IFD%(from%)>6 THENZ%=D%(from%)-6
 1680IFfrom%>4 K%=848:Y%=848-160*(from%-4) ELSEK%=80:Y%=848-160*(from%)
 1690GCOL0,128:VDU24,K%-8;Y%-8;K%+400;Y%+150;:CLG
 1700IF D%(from%)=0 GOTO1750
 1710I%=from%:FORJ%=Z%TO D%(from%):X%=K%+40*(J%-Z%)
 1720C%=C%(I%,J%):S%=S%(I%,J%)
 1730PROCcard(C%,S%)
 1740NEXT
 1750ENDPROC
 1760from%=from%-8
 1770sc%=sc%-1
 1780C1%=A%(from%):S1%=from%
 1790A%(from%)=A%(from%)-1
 1800X%=560:Y%=848-160*from%
 1810C%=A%(from%):S%=from%
 1820PROCcard(C%,S%)
 1830ENDPROC
 1840:
 1850DEFPROCto
 1860IFto%>8 GOTO1970
 1870D%(to%)=D%(to%)+1:Z%=1
 1880IF D%(to%)>7 Z%=D%(to%)-6
 1890C%(to%,D%(to%))=C1%:S%(to%,D%(to%))=S1%
 1900IFto%>4 K%=848:Y%=848-160*(to%-4) ELSEK%=80:Y%=848-160*(to%)
 1910GCOL0,128:VDU24,K%-8;Y%-8;K%+400;Y%+150;:CLG
 1920I%=to%:FORJ%=Z% TO D%(to%):X%=K%+40*(J%-Z%)
 1930C%=C%(I%,J%):S%=S%(I%,J%)
 1940PROCcard(C%,S%)
 1950NEXT
 1960ENDPROC
 1970to%=to%-8
 1980A%(to%)=A%(to%)+1
 1990X%=560:Y%=848-160*to%
 2000C%=A%(to%):S%=to%
 2010PROCcard(C%,S%)
 2020sc%=sc%+1
 2030ENDPROC
 2040:
 2050DEFPROCundo:U%=TRUE:mv%=FALSE
 2060IFm$="" ENDPROC
 2070s$=RIGHT$(m$,2):m$=LEFT$(m$,LENm$-2)
 2080a$="ABCDEFGH1234"
 2090from%=INSTR(a$,RIGHT$(s$,1))
 2100to%=INSTR(a$,LEFT$(s$,1))
 2110PROCfrom
 2120PROCto
 2130ENDPROC
 2140:
 2150DEFPROCwin:VDU23,1,0;0;0;0;
 2160COLOUR128:CLS
 2170PROCtitle
 2180REM IFwin% PRINTTAB(12,4);"CONGRATULATIONS!!"
 2190PRINTTAB(4,6)"Game No.  Score    Your Statistics"
 2200PRINTTAB(4,7)"~~~~~~~~  ~~~~~    ~~~~~~~~~~~~~~~"
 2210VDU28,2,24,19,8:COLOUR130:CLS
 2220PROCprintdat
 2230VDU26:COLOUR128:PRINTTAB(21,8)"Games played ";N%
 2240PRINTTAB(21,10)"Wins ";win%;TAB(30,10);"Losses ";N%-win%
 2250IFN%<>0 PRINTTAB(21,12)"Average score ";INT(totsc%/N%)
 2260PRINTTAB(6,28);"Another game? (Y/N)"
 2270REPEAT:a%=INSTR("YyNn",GET$):UNTILa%
 2280IFa%>2 VDU22,6:END ELSE RUN
 2290ENDPROC
 2300:
 2310DEFPROCprintdat
 2320totsc%=0
 2330A=OPENUP"G.BCDAT"
 2340INPUT#A,N%
 2350FORN=1TON%
 2360INPUT#A,MM%,sc%,win%
 2370PRINT'MM%;"   ";sc%
 2380totsc%=totsc%+sc%
 2390NEXT
 2400CLOSE#A
 2410ENDPROC
 2420:
 2430DEFPROCsavdat:VDU23,1,0;0;0;0;
 2440PRINTTAB(1,30)"      Saving data. Please wait...   ";
 2450A=OPENUP"G.BCDAT"
 2460INPUT#A,N%
 2470PTR#A=0
 2480PRINT#A,N%
 2490PTR#A=(N%*15)+5
 2500PRINT#A,MM%,sc%,win%
 2510PTR#A=0
 2520N%=N%+1
 2530PRINT#A,N%
 2540CLOSE#A
 2550PRINTTAB(1,30)"                                    ";
 2560ENDPROC
 2570:
 2580*K.0 *T.|MFORI%=0TO TOP-PAGE STEP4:I%!&E00=I%!PAGE:NEXT|MPAGE=&E00|MOLD|MRUN|M
 2590*FX138,0,128

 � **************************
� Beleaguered Castle
� By R.A.Dimond
(� (c) October 1992
2� Version 2, June 1995
<� Revised August 2000
F � **************************
P'� � �=17 � � �6:�:�" at line ";�:�
Z*FX21,0
d� �>&E00 �0:�TTJ
n�1:�23;8202;0;0;0;
x�19,0,4;0;19,2,0;0;
�	�vars
��random
�	�init
�	�deal
��:�26,4:U%=�
��9,28);sc%;"  "
�
�enter
�
�U% �TNA
�
�check
�c�mv%=� � �7:m$=�m$,�m$-2):�10,30)"You can't move there!";:�=0:���>300:�4,30)�35:�"FX15":�t~@
�move%=move%+1:�from:�to
�3�A%(1)=13 �A%(2)=13 �A%(3)=13 �A%(4)=13 �win%=�
���-74 �win%=�
!�win%=� � �=0:���=500:�6:�win
�0 �K$="N"
�
":
,��title
6�10,1)"BELEAGUERED CASTLE"
@�10,2)�18,"~")
J�
T:
^
��vars
h8� N%(48),c%(48),s%(48),C%(8,16),S%(8,16),A%(4),D%(8)
rm$="":sc%=0:win%=�
|�
�:
���random
�	*FX15
�
�title
�B�0,6)"Enter Deal No. "''"or press RETURN"'"for a random deal"
�
�15,6)M%
��M%=0 M%=�(�(-�))
�G=�(-M%)
�T�I%=1�48:N%(I%)=I%:�:�I%=48 �2�-1:D%=�(I%):T%=N%(D%):N%(D%)=N%(I%):N%(I%)=T%:�I%
��:�i%=1�48:�c%(i%),s%(i%):�
��
��
�l�8,1,3,2,11,4,12,1,4,2,9,1,6,2,2,3,7,3,10,3,5,2,13,2,5,1,2,4,10,2,8,2,6,1,3,1,9,4,11,3,7,2,13,4,4,3,12,2
l�10,1,12,4,4,1,13,1,8,3,2,1,7,1,11,2,3,4,9,2,6,4,13,3,7,4,2,2,11,1,5,3,9,3,6,3,4,4,10,4,3,3,8,4,5,4,12,3
:

��init
&
�title
0 �12,3)"Deal No. ";M%:MM%=M%
:)�n%=1�4:A%(n%)=1:�:�n%=1�8:D%(n%)=6:�
D#�5:X%=560:�n%=1�4:Y%=848-160*n%
NC%=1:S%=n%:�card(C%,S%)
X�
bn%=1:�I%=1�8:�J%=1�6
l5C%(I%,J%)=c%(N%(n%)):S%(I%,J%)=s%(N%(n%)):n%=n%+1
v�:�
��
�:
�
��five
��;�241;�8;�10;�240;�8;�10;
��
�:
���card(card%,suit%)
��5
�:�(suit%=1 �suit%=3) col%=1 ��(suit%=2 �suit%=4) col%=2
�suit%=suit%+223
�)�24,X%-4;Y%-4;X%+100;Y%+132;:�0,131:�
�G�0,2:�X%-4,Y%-4:�X%-4,Y%+132:�X%+100,Y%+132:�X%+100,Y%-4:�X%-4,Y%-4
��card%=1 cd%=65
�card%=11 cd%=�"J"
�card%=12 cd%=�"Q"
�card%=13 cd%=�"K"
 #�card%>1 �card%<10 cd%=card%+48
*�card%=10 cd%=229
4�p
>�pp
H�4
R�
\:
f��p
p0�X%,Y%+28:�0,col%:�;�suit%:�X%,Y%+128:�;�cd%
z.�X%+64,Y%+28:�;�cd%:�X%+64,Y%+128:�;�suit%
��
�:
���pp
�$�card%=1 �X%+32,Y%+80:�;�suit%:�
�8�card%=2 �X%+32,Y%+120:�;�239;:�X%+32,Y%+56:�;�239:�
�M�card%=3 �X%+32,Y%+120:�;�239;:�X%+32,Y%+88:�;�239;:�X%+32,Y%+56:�;�239:�
�8�card%=4 �X%+32,Y%+104:�;�240;:�X%+32,Y%+40:�;�240:�
�M�card%=5 �X%+32,Y%+104:�;�240;:�X%+32,Y%+88:�;�239;:�X%+32,Y%+40:�;�240:�
�M�card%=6 �X%+32,Y%+104:�;�240;:�X%+32,Y%+72:�;�240;:�X%+32,Y%+40:�;�240:�
�6�card%=7 �X%+32,Y%+104:�five:�X%+32,Y%+40:�;�240:�
�7�card%=8 �X%+32,Y%+104:�;�241;:�X%+32,Y%+72:�five:�
�K�card%=9 �X%+32,Y%+112:�;�240;:�X%+32,Y%+88:�five:�X%+32,Y%+32:�;�240:�
�6�card%=10 �X%+32,Y%+112:�five:�X%+32,Y%+66:�five:�
;�card%=11 C$=�242 ��card%=12 C$=�243 ��card%=13 C$=�244
Y�card%=11 D$=�248+�249+�252 ��card%=12 D$=�248+�250+�252 ��card%=13 D$=�248+�251+�252
�X%+32,Y%+128:�C$
$�X%,Y%+96:�245+�246+�247
.�0,0:�X%,Y%+64:�D$:�0,col%
8�X%+32,Y%+32:�253:�
B:
L
��deal
VY%=688:�I%=1�8
`�I%>4 �K%=848 �K%=80
j�J%=1�6:X%=K%+40*(J%-1)
tC%=C%(I%,J%):S%=S%(I%,J%)
~�card(C%,S%)
��
��I%=4 �Y%=688 �Y%=Y%-160
��
� �4:�n%=1�4:�16,n%*5+3);n%:�
�,�n%=1�8:�n%>4 �x%=25:y%=n%-4 �x%=1:y%=n%
��x%,5*y%+3)�(64+n%);:�
��
�:
���enter
��2,28);"Score: ";sc%
��6,30);"Move from? ";
�flag%=�:�key

�K$="U" �

�K$="R" �savdat:�
�K$="S" �win:�
	chk=�
(from%=a%
2�K$
<�26,30);"Move to? ";
Fflag%=�:�key
P
to%=a%
Z�K$
d�z%=1�100:�:�4,30);�35
n�
x:
�	��key
�/�flag% A$="ABCDEFGH1234" � A$="ABCDEFGHURS"
��:a%=�A$,�):�a%
�K$=�A$,a%,1)
��K$="U" chk=�:�undo:�
�m$=m$+K$
��
�:
���check:mv%=�
��D%(from%)=0 mv%=�:�
��to%<9:�check2:�
�)�S%(from%,D%(from%))<>(to%-8) mv%=�:�
�-�C%(from%,D%(from%))<>A%(to%-8)+1 mv%=�:�
�
:
��check2
"�D%(to%)=16 mv%=�:�
,�D%(to%)=0 mv%=�:�
63�C%(from%,D%(from%))+1<>C%(to%,D%(to%)) mv%=�:�
@�
J:
T
��from
^�from%>8 �d`F
h3C1%=C%(from%,D%(from%)):S1%=S%(from%,D%(from%))
r/C%(from%,D%(from%))=0:S%(from%,D%(from%))=0
|D%(from%)=D%(from%)-1:Z%=1
� �D%(from%)>6 �Z%=D%(from%)-6
�B�from%>4 K%=848:Y%=848-160*(from%-4) �K%=80:Y%=848-160*(from%)
�)�0,128:�24,K%-8;Y%-8;K%+400;Y%+150;:�
�� D%(from%)=0 �dVF
�/I%=from%:�J%=Z%� D%(from%):X%=K%+40*(J%-Z%)
�C%=C%(I%,J%):S%=S%(I%,J%)
��card(C%,S%)
��
��
�from%=from%-8
�
sc%=sc%-1
�C1%=A%(from%):S1%=from%
�A%(from%)=A%(from%)-1
X%=560:Y%=848-160*from%
C%=A%(from%):S%=from%
�card(C%,S%)
&�
0:
:��to
D�to%>8 �trG
ND%(to%)=D%(to%)+1:Z%=1
X� D%(to%)>7 Z%=D%(to%)-6
b+C%(to%,D%(to%))=C1%:S%(to%,D%(to%))=S1%
l<�to%>4 K%=848:Y%=848-160*(to%-4) �K%=80:Y%=848-160*(to%)
v)�0,128:�24,K%-8;Y%-8;K%+400;Y%+150;:�
�,I%=to%:�J%=Z% � D%(to%):X%=K%+40*(J%-Z%)
�C%=C%(I%,J%):S%=S%(I%,J%)
��card(C%,S%)
��
��
�
to%=to%-8
�A%(to%)=A%(to%)+1
�X%=560:Y%=848-160*to%
�C%=A%(to%):S%=to%
��card(C%,S%)
�
sc%=sc%+1
��
�:
��undo:U%=�:mv%=�
�m$="" �
s$=�m$,2):m$=�m$,�m$-2)
 a$="ABCDEFGH1234"
*from%=�a$,�s$,1))
4to%=�a$,�s$,1))
>	�from
H�to
R�
\:
f��win:�23,1,0;0;0;0;
p
�128:�
z
�title
�/� IFwin% PRINTTAB(12,4);"CONGRATULATIONS!!"
�.�4,6)"Game No.  Score    Your Statistics"
�.�4,7)"~~~~~~~~  ~~~~~    ~~~~~~~~~~~~~~~"
��28,2,24,19,8:�130:�
�
�printdat
�&�26:�128:�21,8)"Games played ";N%
�2�21,10)"Wins ";win%;�30,10);"Losses ";N%-win%
�0�N%<>0 �21,12)"Average score ";�(totsc%/N%)
�!�6,28);"Another game? (Y/N)"
��:a%=�"YyNn",�):�a%
��a%>2 �22,6:� � �
��
�:
	��printdat
	totsc%=0
	A=�"G.BCDAT"
	$
�#A,N%
	.�N=1�N%
	8�#A,MM%,sc%,win%
	B�'MM%;"   ";sc%
	Ltotsc%=totsc%+sc%
	V�
	`�#A
	j�
	t:
	~��savdat:�23,1,0;0;0;0;
	�2�1,30)"      Saving data. Please wait...   ";
	�A=�"G.BCDAT"
	�
�#A,N%
	�	�#A=0
	�
�#A,N%
	��#A=(N%*15)+5
	��#A,MM%,sc%,win%
	�	�#A=0
	�N%=N%+1
	�
�#A,N%
	��#A
	�2�1,30)"                                    ";
�

:
R*K.0 *T.|MFORI%=0TO TOP-PAGE STEP4:I%!&E00=I%!PAGE:NEXT|MPAGE=&E00|MOLD|MRUN|M
*FX138,0,128
�
00000000  0d 00 0a 20 f4 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |... . **********|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000020  0d 00 14 18 f4 20 42 65  6c 65 61 67 75 65 72 65  |..... Beleaguere|
00000030  64 20 43 61 73 74 6c 65  0d 00 1e 13 f4 20 42 79  |d Castle..... By|
00000040  20 52 2e 41 2e 44 69 6d  6f 6e 64 0d 00 28 16 f4  | R.A.Dimond..(..|
00000050  20 28 63 29 20 4f 63 74  6f 62 65 72 20 31 39 39  | (c) October 199|
00000060  32 0d 00 32 1a f4 20 56  65 72 73 69 6f 6e 20 32  |2..2.. Version 2|
00000070  2c 20 4a 75 6e 65 20 31  39 39 35 0d 00 3c 19 f4  |, June 1995..<..|
00000080  20 52 65 76 69 73 65 64  20 41 75 67 75 73 74 20  | Revised August |
00000090  32 30 30 30 0d 00 46 20  f4 20 2a 2a 2a 2a 2a 2a  |2000..F . ******|
000000a0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
000000b0  2a 2a 2a 2a 0d 00 50 27  ee 85 20 e7 20 9f 3d 31  |****..P'.. . .=1|
000000c0  37 20 f9 20 8b 20 eb 36  3a f6 3a f1 22 20 61 74  |7 . . .6:.:." at|
000000d0  20 6c 69 6e 65 20 22 3b  9e 3a e0 0d 00 5a 0b 2a  | line ";.:...Z.*|
000000e0  46 58 32 31 2c 30 0d 00  64 15 e7 20 90 3e 26 45  |FX21,0..d.. .>&E|
000000f0  30 30 20 fb 30 3a e5 8d  54 54 4a 0d 00 6e 16 eb  |00 .0:..TTJ..n..|
00000100  31 3a ef 32 33 3b 38 32  30 32 3b 30 3b 30 3b 30  |1:.23;8202;0;0;0|
00000110  3b 0d 00 78 17 ef 31 39  2c 30 2c 34 3b 30 3b 31  |;..x..19,0,4;0;1|
00000120  39 2c 32 2c 30 3b 30 3b  0d 00 82 09 f2 76 61 72  |9,2,0;0;.....var|
00000130  73 0d 00 8c 0b f2 72 61  6e 64 6f 6d 0d 00 96 09  |s.....random....|
00000140  f2 69 6e 69 74 0d 00 a0  09 f2 64 65 61 6c 0d 00  |.init.....deal..|
00000150  aa 10 f5 3a ef 32 36 2c  34 3a 55 25 3d a3 0d 00  |...:.26,4:U%=...|
00000160  b4 14 f1 8a 39 2c 32 38  29 3b 73 63 25 3b 22 20  |....9,28);sc%;" |
00000170  20 22 0d 00 be 0a f2 65  6e 74 65 72 0d 00 c8 0d  | ".....enter....|
00000180  e7 55 25 20 e5 8d 54 4e  41 0d 00 d2 0a f2 63 68  |.U% ..TNA.....ch|
00000190  65 63 6b 0d 00 dc 63 e7  6d 76 25 3d a3 20 8c 20  |eck...c.mv%=. . |
000001a0  ef 37 3a 6d 24 3d c0 6d  24 2c a9 6d 24 2d 32 29  |.7:m$=.m$,.m$-2)|
000001b0  3a f1 8a 31 30 2c 33 30  29 22 59 6f 75 20 63 61  |:..10,30)"You ca|
000001c0  6e 27 74 20 6d 6f 76 65  20 74 68 65 72 65 21 22  |n't move there!"|
000001d0  3b 3a d1 3d 30 3a f5 fd  91 3e 33 30 30 3a f1 8a  |;:.=0:...>300:..|
000001e0  34 2c 33 30 29 89 33 35  3a ff 22 46 58 31 35 22  |4,30).35:."FX15"|
000001f0  3a e5 8d 74 7e 40 0d 00  e6 1b 6d 6f 76 65 25 3d  |:..t~@....move%=|
00000200  6d 6f 76 65 25 2b 31 3a  f2 66 72 6f 6d 3a f2 74  |move%+1:.from:.t|
00000210  6f 0d 00 f0 33 e7 41 25  28 31 29 3d 31 33 20 80  |o...3.A%(1)=13 .|
00000220  41 25 28 32 29 3d 31 33  20 80 41 25 28 33 29 3d  |A%(2)=13 .A%(3)=|
00000230  31 33 20 80 41 25 28 34  29 3d 31 33 20 8c 77 69  |13 .A%(4)=13 .wi|
00000240  6e 25 3d b9 0d 00 fa 11  fd a6 2d 37 34 20 84 77  |n%=.......-74 .w|
00000250  69 6e 25 3d b9 0d 01 04  21 e7 77 69 6e 25 3d b9  |in%=....!.win%=.|
00000260  20 8c 20 d1 3d 30 3a f5  fd 91 3d 35 30 30 3a eb  | . .=0:...=500:.|
00000270  36 3a f2 77 69 6e 0d 01  0e 0e fd 30 20 84 4b 24  |6:.win.....0 .K$|
00000280  3d 22 4e 22 0d 01 18 05  e0 0d 01 22 05 3a 0d 01  |="N".......".:..|
00000290  2c 0b dd f2 74 69 74 6c  65 0d 01 36 1f f1 8a 31  |,...title..6...1|
000002a0  30 2c 31 29 22 42 45 4c  45 41 47 55 45 52 45 44  |0,1)"BELEAGUERED|
000002b0  20 43 41 53 54 4c 45 22  0d 01 40 13 f1 8a 31 30  | CASTLE"..@...10|
000002c0  2c 32 29 c4 31 38 2c 22  7e 22 29 0d 01 4a 05 e1  |,2).18,"~")..J..|
000002d0  0d 01 54 05 3a 0d 01 5e  0a dd f2 76 61 72 73 0d  |..T.:..^...vars.|
000002e0  01 68 38 de 20 4e 25 28  34 38 29 2c 63 25 28 34  |.h8. N%(48),c%(4|
000002f0  38 29 2c 73 25 28 34 38  29 2c 43 25 28 38 2c 31  |8),s%(48),C%(8,1|
00000300  36 29 2c 53 25 28 38 2c  31 36 29 2c 41 25 28 34  |6),S%(8,16),A%(4|
00000310  29 2c 44 25 28 38 29 0d  01 72 16 6d 24 3d 22 22  |),D%(8)..r.m$=""|
00000320  3a 73 63 25 3d 30 3a 77  69 6e 25 3d a3 0d 01 7c  |:sc%=0:win%=...||
00000330  05 e1 0d 01 86 05 3a 0d  01 90 0c dd f2 72 61 6e  |......:......ran|
00000340  64 6f 6d 0d 01 9a 09 2a  46 58 31 35 0d 01 a4 0a  |dom....*FX15....|
00000350  f2 74 69 74 6c 65 0d 01  ae 42 f1 8a 30 2c 36 29  |.title...B..0,6)|
00000360  22 45 6e 74 65 72 20 44  65 61 6c 20 4e 6f 2e 20  |"Enter Deal No. |
00000370  22 27 27 22 6f 72 20 70  72 65 73 73 20 52 45 54  |"''"or press RET|
00000380  55 52 4e 22 27 22 66 6f  72 20 61 20 72 61 6e 64  |URN"'"for a rand|
00000390  6f 6d 20 64 65 61 6c 22  0d 01 b8 0d e8 8a 31 35  |om deal"......15|
000003a0  2c 36 29 4d 25 0d 01 c2  15 e7 4d 25 3d 30 20 4d  |,6)M%.....M%=0 M|
000003b0  25 3d 94 28 b3 28 2d 91  29 29 0d 01 cc 0c 47 3d  |%=.(.(-.))....G=|
000003c0  b3 28 2d 4d 25 29 0d 01  d6 54 e3 49 25 3d 31 b8  |.(-M%)...T.I%=1.|
000003d0  34 38 3a 4e 25 28 49 25  29 3d 49 25 3a ed 3a e3  |48:N%(I%)=I%:.:.|
000003e0  49 25 3d 34 38 20 b8 32  88 2d 31 3a 44 25 3d b3  |I%=48 .2.-1:D%=.|
000003f0  28 49 25 29 3a 54 25 3d  4e 25 28 44 25 29 3a 4e  |(I%):T%=N%(D%):N|
00000400  25 28 44 25 29 3d 4e 25  28 49 25 29 3a 4e 25 28  |%(D%)=N%(I%):N%(|
00000410  49 25 29 3d 54 25 3a ed  49 25 0d 01 e0 1f f7 3a  |I%)=T%:.I%.....:|
00000420  e3 69 25 3d 31 b8 34 38  3a f3 63 25 28 69 25 29  |.i%=1.48:.c%(i%)|
00000430  2c 73 25 28 69 25 29 3a  ed 0d 01 ea 05 db 0d 01  |,s%(i%):........|
00000440  f4 05 e1 0d 01 fe 6c dc  38 2c 31 2c 33 2c 32 2c  |......l.8,1,3,2,|
00000450  31 31 2c 34 2c 31 32 2c  31 2c 34 2c 32 2c 39 2c  |11,4,12,1,4,2,9,|
00000460  31 2c 36 2c 32 2c 32 2c  33 2c 37 2c 33 2c 31 30  |1,6,2,2,3,7,3,10|
00000470  2c 33 2c 35 2c 32 2c 31  33 2c 32 2c 35 2c 31 2c  |,3,5,2,13,2,5,1,|
00000480  32 2c 34 2c 31 30 2c 32  2c 38 2c 32 2c 36 2c 31  |2,4,10,2,8,2,6,1|
00000490  2c 33 2c 31 2c 39 2c 34  2c 31 31 2c 33 2c 37 2c  |,3,1,9,4,11,3,7,|
000004a0  32 2c 31 33 2c 34 2c 34  2c 33 2c 31 32 2c 32 0d  |2,13,4,4,3,12,2.|
000004b0  02 08 6c dc 31 30 2c 31  2c 31 32 2c 34 2c 34 2c  |..l.10,1,12,4,4,|
000004c0  31 2c 31 33 2c 31 2c 38  2c 33 2c 32 2c 31 2c 37  |1,13,1,8,3,2,1,7|
000004d0  2c 31 2c 31 31 2c 32 2c  33 2c 34 2c 39 2c 32 2c  |,1,11,2,3,4,9,2,|
000004e0  36 2c 34 2c 31 33 2c 33  2c 37 2c 34 2c 32 2c 32  |6,4,13,3,7,4,2,2|
000004f0  2c 31 31 2c 31 2c 35 2c  33 2c 39 2c 33 2c 36 2c  |,11,1,5,3,9,3,6,|
00000500  33 2c 34 2c 34 2c 31 30  2c 34 2c 33 2c 33 2c 38  |3,4,4,10,4,3,3,8|
00000510  2c 34 2c 35 2c 34 2c 31  32 2c 33 0d 02 12 05 3a  |,4,5,4,12,3....:|
00000520  0d 02 1c 0a dd f2 69 6e  69 74 0d 02 26 0a f2 74  |......init..&..t|
00000530  69 74 6c 65 0d 02 30 20  f1 8a 31 32 2c 33 29 22  |itle..0 ..12,3)"|
00000540  44 65 61 6c 20 4e 6f 2e  20 22 3b 4d 25 3a 4d 4d  |Deal No. ";M%:MM|
00000550  25 3d 4d 25 0d 02 3a 29  e3 6e 25 3d 31 b8 34 3a  |%=M%..:).n%=1.4:|
00000560  41 25 28 6e 25 29 3d 31  3a ed 3a e3 6e 25 3d 31  |A%(n%)=1:.:.n%=1|
00000570  b8 38 3a 44 25 28 6e 25  29 3d 36 3a ed 0d 02 44  |.8:D%(n%)=6:...D|
00000580  23 ef 35 3a 58 25 3d 35  36 30 3a e3 6e 25 3d 31  |#.5:X%=560:.n%=1|
00000590  b8 34 3a 59 25 3d 38 34  38 2d 31 36 30 2a 6e 25  |.4:Y%=848-160*n%|
000005a0  0d 02 4e 1b 43 25 3d 31  3a 53 25 3d 6e 25 3a f2  |..N.C%=1:S%=n%:.|
000005b0  63 61 72 64 28 43 25 2c  53 25 29 0d 02 58 05 ed  |card(C%,S%)..X..|
000005c0  0d 02 62 18 6e 25 3d 31  3a e3 49 25 3d 31 b8 38  |..b.n%=1:.I%=1.8|
000005d0  3a e3 4a 25 3d 31 b8 36  0d 02 6c 35 43 25 28 49  |:.J%=1.6..l5C%(I|
000005e0  25 2c 4a 25 29 3d 63 25  28 4e 25 28 6e 25 29 29  |%,J%)=c%(N%(n%))|
000005f0  3a 53 25 28 49 25 2c 4a  25 29 3d 73 25 28 4e 25  |:S%(I%,J%)=s%(N%|
00000600  28 6e 25 29 29 3a 6e 25  3d 6e 25 2b 31 0d 02 76  |(n%)):n%=n%+1..v|
00000610  07 ed 3a ed 0d 02 80 05  e1 0d 02 8a 05 3a 0d 02  |..:..........:..|
00000620  94 0a dd f2 66 69 76 65  0d 02 9e 1e f1 3b bd 32  |....five.....;.2|
00000630  34 31 3b bd 38 3b bd 31  30 3b bd 32 34 30 3b bd  |41;.8;.10;.240;.|
00000640  38 3b bd 31 30 3b 0d 02  a8 05 e1 0d 02 b2 05 3a  |8;.10;.........:|
00000650  0d 02 bc 17 dd f2 63 61  72 64 28 63 61 72 64 25  |......card(card%|
00000660  2c 73 75 69 74 25 29 0d  02 c6 06 ef 35 0d 02 d0  |,suit%).....5...|
00000670  3a e7 28 73 75 69 74 25  3d 31 20 84 73 75 69 74  |:.(suit%=1 .suit|
00000680  25 3d 33 29 20 63 6f 6c  25 3d 31 20 8b e7 28 73  |%=3) col%=1 ..(s|
00000690  75 69 74 25 3d 32 20 84  73 75 69 74 25 3d 34 29  |uit%=2 .suit%=4)|
000006a0  20 63 6f 6c 25 3d 32 0d  02 da 13 73 75 69 74 25  | col%=2....suit%|
000006b0  3d 73 75 69 74 25 2b 32  32 33 0d 02 e4 29 ef 32  |=suit%+223...).2|
000006c0  34 2c 58 25 2d 34 3b 59  25 2d 34 3b 58 25 2b 31  |4,X%-4;Y%-4;X%+1|
000006d0  30 30 3b 59 25 2b 31 33  32 3b 3a e6 30 2c 31 33  |00;Y%+132;:.0,13|
000006e0  31 3a da 0d 02 ee 47 e6  30 2c 32 3a ec 58 25 2d  |1:....G.0,2:.X%-|
000006f0  34 2c 59 25 2d 34 3a df  58 25 2d 34 2c 59 25 2b  |4,Y%-4:.X%-4,Y%+|
00000700  31 33 32 3a df 58 25 2b  31 30 30 2c 59 25 2b 31  |132:.X%+100,Y%+1|
00000710  33 32 3a df 58 25 2b 31  30 30 2c 59 25 2d 34 3a  |32:.X%+100,Y%-4:|
00000720  df 58 25 2d 34 2c 59 25  2d 34 0d 02 f8 13 e7 63  |.X%-4,Y%-4.....c|
00000730  61 72 64 25 3d 31 20 63  64 25 3d 36 35 0d 03 02  |ard%=1 cd%=65...|
00000740  16 e7 63 61 72 64 25 3d  31 31 20 63 64 25 3d 97  |..card%=11 cd%=.|
00000750  22 4a 22 0d 03 0c 16 e7  63 61 72 64 25 3d 31 32  |"J".....card%=12|
00000760  20 63 64 25 3d 97 22 51  22 0d 03 16 16 e7 63 61  | cd%=."Q".....ca|
00000770  72 64 25 3d 31 33 20 63  64 25 3d 97 22 4b 22 0d  |rd%=13 cd%=."K".|
00000780  03 20 23 e7 63 61 72 64  25 3e 31 20 80 63 61 72  |. #.card%>1 .car|
00000790  64 25 3c 31 30 20 63 64  25 3d 63 61 72 64 25 2b  |d%<10 cd%=card%+|
000007a0  34 38 0d 03 2a 15 e7 63  61 72 64 25 3d 31 30 20  |48..*..card%=10 |
000007b0  63 64 25 3d 32 32 39 0d  03 34 06 f2 70 0d 03 3e  |cd%=229..4..p..>|
000007c0  07 f2 70 70 0d 03 48 06  ef 34 0d 03 52 05 e1 0d  |..pp..H..4..R...|
000007d0  03 5c 05 3a 0d 03 66 07  dd f2 70 0d 03 70 30 ec  |.\.:..f...p..p0.|
000007e0  58 25 2c 59 25 2b 32 38  3a e6 30 2c 63 6f 6c 25  |X%,Y%+28:.0,col%|
000007f0  3a f1 3b bd 73 75 69 74  25 3a ec 58 25 2c 59 25  |:.;.suit%:.X%,Y%|
00000800  2b 31 32 38 3a f1 3b bd  63 64 25 0d 03 7a 2e ec  |+128:.;.cd%..z..|
00000810  58 25 2b 36 34 2c 59 25  2b 32 38 3a f1 3b bd 63  |X%+64,Y%+28:.;.c|
00000820  64 25 3a ec 58 25 2b 36  34 2c 59 25 2b 31 32 38  |d%:.X%+64,Y%+128|
00000830  3a f1 3b bd 73 75 69 74  25 0d 03 84 05 e1 0d 03  |:.;.suit%.......|
00000840  8e 05 3a 0d 03 98 08 dd  f2 70 70 0d 03 a2 24 e7  |..:......pp...$.|
00000850  63 61 72 64 25 3d 31 20  ec 58 25 2b 33 32 2c 59  |card%=1 .X%+32,Y|
00000860  25 2b 38 30 3a f1 3b bd  73 75 69 74 25 3a e1 0d  |%+80:.;.suit%:..|
00000870  03 ac 38 e7 63 61 72 64  25 3d 32 20 ec 58 25 2b  |..8.card%=2 .X%+|
00000880  33 32 2c 59 25 2b 31 32  30 3a f1 3b bd 32 33 39  |32,Y%+120:.;.239|
00000890  3b 3a ec 58 25 2b 33 32  2c 59 25 2b 35 36 3a f1  |;:.X%+32,Y%+56:.|
000008a0  3b bd 32 33 39 3a e1 0d  03 b6 4d e7 63 61 72 64  |;.239:....M.card|
000008b0  25 3d 33 20 ec 58 25 2b  33 32 2c 59 25 2b 31 32  |%=3 .X%+32,Y%+12|
000008c0  30 3a f1 3b bd 32 33 39  3b 3a ec 58 25 2b 33 32  |0:.;.239;:.X%+32|
000008d0  2c 59 25 2b 38 38 3a f1  3b bd 32 33 39 3b 3a ec  |,Y%+88:.;.239;:.|
000008e0  58 25 2b 33 32 2c 59 25  2b 35 36 3a f1 3b bd 32  |X%+32,Y%+56:.;.2|
000008f0  33 39 3a e1 0d 03 c0 38  e7 63 61 72 64 25 3d 34  |39:....8.card%=4|
00000900  20 ec 58 25 2b 33 32 2c  59 25 2b 31 30 34 3a f1  | .X%+32,Y%+104:.|
00000910  3b bd 32 34 30 3b 3a ec  58 25 2b 33 32 2c 59 25  |;.240;:.X%+32,Y%|
00000920  2b 34 30 3a f1 3b bd 32  34 30 3a e1 0d 03 ca 4d  |+40:.;.240:....M|
00000930  e7 63 61 72 64 25 3d 35  20 ec 58 25 2b 33 32 2c  |.card%=5 .X%+32,|
00000940  59 25 2b 31 30 34 3a f1  3b bd 32 34 30 3b 3a ec  |Y%+104:.;.240;:.|
00000950  58 25 2b 33 32 2c 59 25  2b 38 38 3a f1 3b bd 32  |X%+32,Y%+88:.;.2|
00000960  33 39 3b 3a ec 58 25 2b  33 32 2c 59 25 2b 34 30  |39;:.X%+32,Y%+40|
00000970  3a f1 3b bd 32 34 30 3a  e1 0d 03 d4 4d e7 63 61  |:.;.240:....M.ca|
00000980  72 64 25 3d 36 20 ec 58  25 2b 33 32 2c 59 25 2b  |rd%=6 .X%+32,Y%+|
00000990  31 30 34 3a f1 3b bd 32  34 30 3b 3a ec 58 25 2b  |104:.;.240;:.X%+|
000009a0  33 32 2c 59 25 2b 37 32  3a f1 3b bd 32 34 30 3b  |32,Y%+72:.;.240;|
000009b0  3a ec 58 25 2b 33 32 2c  59 25 2b 34 30 3a f1 3b  |:.X%+32,Y%+40:.;|
000009c0  bd 32 34 30 3a e1 0d 03  de 36 e7 63 61 72 64 25  |.240:....6.card%|
000009d0  3d 37 20 ec 58 25 2b 33  32 2c 59 25 2b 31 30 34  |=7 .X%+32,Y%+104|
000009e0  3a f2 66 69 76 65 3a ec  58 25 2b 33 32 2c 59 25  |:.five:.X%+32,Y%|
000009f0  2b 34 30 3a f1 3b bd 32  34 30 3a e1 0d 03 e8 37  |+40:.;.240:....7|
00000a00  e7 63 61 72 64 25 3d 38  20 ec 58 25 2b 33 32 2c  |.card%=8 .X%+32,|
00000a10  59 25 2b 31 30 34 3a f1  3b bd 32 34 31 3b 3a ec  |Y%+104:.;.241;:.|
00000a20  58 25 2b 33 32 2c 59 25  2b 37 32 3a f2 66 69 76  |X%+32,Y%+72:.fiv|
00000a30  65 3a e1 0d 03 f2 4b e7  63 61 72 64 25 3d 39 20  |e:....K.card%=9 |
00000a40  ec 58 25 2b 33 32 2c 59  25 2b 31 31 32 3a f1 3b  |.X%+32,Y%+112:.;|
00000a50  bd 32 34 30 3b 3a ec 58  25 2b 33 32 2c 59 25 2b  |.240;:.X%+32,Y%+|
00000a60  38 38 3a f2 66 69 76 65  3a ec 58 25 2b 33 32 2c  |88:.five:.X%+32,|
00000a70  59 25 2b 33 32 3a f1 3b  bd 32 34 30 3a e1 0d 03  |Y%+32:.;.240:...|
00000a80  fc 36 e7 63 61 72 64 25  3d 31 30 20 ec 58 25 2b  |.6.card%=10 .X%+|
00000a90  33 32 2c 59 25 2b 31 31  32 3a f2 66 69 76 65 3a  |32,Y%+112:.five:|
00000aa0  ec 58 25 2b 33 32 2c 59  25 2b 36 36 3a f2 66 69  |.X%+32,Y%+66:.fi|
00000ab0  76 65 3a e1 0d 04 06 3b  e7 63 61 72 64 25 3d 31  |ve:....;.card%=1|
00000ac0  31 20 43 24 3d bd 32 34  32 20 8b e7 63 61 72 64  |1 C$=.242 ..card|
00000ad0  25 3d 31 32 20 43 24 3d  bd 32 34 33 20 8b e7 63  |%=12 C$=.243 ..c|
00000ae0  61 72 64 25 3d 31 33 20  43 24 3d bd 32 34 34 0d  |ard%=13 C$=.244.|
00000af0  04 10 59 e7 63 61 72 64  25 3d 31 31 20 44 24 3d  |..Y.card%=11 D$=|
00000b00  bd 32 34 38 2b bd 32 34  39 2b bd 32 35 32 20 8b  |.248+.249+.252 .|
00000b10  e7 63 61 72 64 25 3d 31  32 20 44 24 3d bd 32 34  |.card%=12 D$=.24|
00000b20  38 2b bd 32 35 30 2b bd  32 35 32 20 8b e7 63 61  |8+.250+.252 ..ca|
00000b30  72 64 25 3d 31 33 20 44  24 3d bd 32 34 38 2b bd  |rd%=13 D$=.248+.|
00000b40  32 35 31 2b bd 32 35 32  0d 04 1a 15 ec 58 25 2b  |251+.252.....X%+|
00000b50  33 32 2c 59 25 2b 31 32  38 3a f1 43 24 0d 04 24  |32,Y%+128:.C$..$|
00000b60  1d ec 58 25 2c 59 25 2b  39 36 3a f1 bd 32 34 35  |..X%,Y%+96:..245|
00000b70  2b bd 32 34 36 2b bd 32  34 37 0d 04 2e 1e e6 30  |+.246+.247.....0|
00000b80  2c 30 3a ec 58 25 2c 59  25 2b 36 34 3a f1 44 24  |,0:.X%,Y%+64:.D$|
00000b90  3a e6 30 2c 63 6f 6c 25  0d 04 38 18 ec 58 25 2b  |:.0,col%..8..X%+|
00000ba0  33 32 2c 59 25 2b 33 32  3a f1 bd 32 35 33 3a e1  |32,Y%+32:..253:.|
00000bb0  0d 04 42 05 3a 0d 04 4c  0a dd f2 64 65 61 6c 0d  |..B.:..L...deal.|
00000bc0  04 56 12 59 25 3d 36 38  38 3a e3 49 25 3d 31 b8  |.V.Y%=688:.I%=1.|
00000bd0  38 0d 04 60 18 e7 49 25  3e 34 20 8c 4b 25 3d 38  |8..`..I%>4 .K%=8|
00000be0  34 38 20 8b 4b 25 3d 38  30 0d 04 6a 1b e3 4a 25  |48 .K%=80..j..J%|
00000bf0  3d 31 b8 36 3a 58 25 3d  4b 25 2b 34 30 2a 28 4a  |=1.6:X%=K%+40*(J|
00000c00  25 2d 31 29 0d 04 74 1d  43 25 3d 43 25 28 49 25  |%-1)..t.C%=C%(I%|
00000c10  2c 4a 25 29 3a 53 25 3d  53 25 28 49 25 2c 4a 25  |,J%):S%=S%(I%,J%|
00000c20  29 0d 04 7e 10 f2 63 61  72 64 28 43 25 2c 53 25  |)..~..card(C%,S%|
00000c30  29 0d 04 88 05 ed 0d 04  92 1c e7 49 25 3d 34 20  |)..........I%=4 |
00000c40  8c 59 25 3d 36 38 38 20  8b 59 25 3d 59 25 2d 31  |.Y%=688 .Y%=Y%-1|
00000c50  36 30 0d 04 9c 05 ed 0d  04 a6 20 ef 34 3a e3 6e  |60........ .4:.n|
00000c60  25 3d 31 b8 34 3a f1 8a  31 36 2c 6e 25 2a 35 2b  |%=1.4:..16,n%*5+|
00000c70  33 29 3b 6e 25 3a ed 0d  04 b0 2c e3 6e 25 3d 31  |3);n%:....,.n%=1|
00000c80  b8 38 3a e7 6e 25 3e 34  20 8c 78 25 3d 32 35 3a  |.8:.n%>4 .x%=25:|
00000c90  79 25 3d 6e 25 2d 34 20  8b 78 25 3d 31 3a 79 25  |y%=n%-4 .x%=1:y%|
00000ca0  3d 6e 25 0d 04 ba 1b f1  8a 78 25 2c 35 2a 79 25  |=n%......x%,5*y%|
00000cb0  2b 33 29 bd 28 36 34 2b  6e 25 29 3b 3a ed 0d 04  |+3).(64+n%);:...|
00000cc0  c4 05 e1 0d 04 ce 05 3a  0d 04 d8 0b dd f2 65 6e  |.......:......en|
00000cd0  74 65 72 0d 04 e2 19 f1  8a 32 2c 32 38 29 3b 22  |ter......2,28);"|
00000ce0  53 63 6f 72 65 3a 20 22  3b 73 63 25 0d 04 ec 1a  |Score: ";sc%....|
00000cf0  f1 8a 36 2c 33 30 29 3b  22 4d 6f 76 65 20 66 72  |..6,30);"Move fr|
00000d00  6f 6d 3f 20 22 3b 0d 04  f6 10 66 6c 61 67 25 3d  |om? ";....flag%=|
00000d10  a3 3a f2 6b 65 79 0d 05  00 0d e7 4b 24 3d 22 55  |.:.key.....K$="U|
00000d20  22 20 e1 0d 05 0a 15 e7  4b 24 3d 22 52 22 20 f2  |" ......K$="R" .|
00000d30  73 61 76 64 61 74 3a f9  0d 05 14 12 e7 4b 24 3d  |savdat:......K$=|
00000d40  22 53 22 20 f2 77 69 6e  3a f9 0d 05 1e 09 63 68  |"S" .win:.....ch|
00000d50  6b 3d b9 0d 05 28 0c 66  72 6f 6d 25 3d 61 25 0d  |k=...(.from%=a%.|
00000d60  05 32 07 f1 4b 24 0d 05  3c 19 f1 8a 32 36 2c 33  |.2..K$..<...26,3|
00000d70  30 29 3b 22 4d 6f 76 65  20 74 6f 3f 20 22 3b 0d  |0);"Move to? ";.|
00000d80  05 46 10 66 6c 61 67 25  3d b9 3a f2 6b 65 79 0d  |.F.flag%=.:.key.|
00000d90  05 50 0a 74 6f 25 3d 61  25 0d 05 5a 07 f1 4b 24  |.P.to%=a%..Z..K$|
00000da0  0d 05 64 1b e3 7a 25 3d  31 b8 31 30 30 3a ed 3a  |..d..z%=1.100:.:|
00000db0  f1 8a 34 2c 33 30 29 3b  89 33 35 0d 05 6e 05 e1  |..4,30);.35..n..|
00000dc0  0d 05 78 05 3a 0d 05 82  09 dd f2 6b 65 79 0d 05  |..x.:......key..|
00000dd0  8c 2f e7 66 6c 61 67 25  20 41 24 3d 22 41 42 43  |./.flag% A$="ABC|
00000de0  44 45 46 47 48 31 32 33  34 22 20 8b 20 41 24 3d  |DEFGH1234" . A$=|
00000df0  22 41 42 43 44 45 46 47  48 55 52 53 22 0d 05 96  |"ABCDEFGHURS"...|
00000e00  13 f5 3a 61 25 3d a7 41  24 2c be 29 3a fd 61 25  |..:a%=.A$,.):.a%|
00000e10  0d 05 a0 10 4b 24 3d c1  41 24 2c 61 25 2c 31 29  |....K$=.A$,a%,1)|
00000e20  0d 05 aa 19 e7 4b 24 3d  22 55 22 20 63 68 6b 3d  |.....K$="U" chk=|
00000e30  a3 3a f2 75 6e 64 6f 3a  e1 0d 05 b4 0c 6d 24 3d  |.:.undo:.....m$=|
00000e40  6d 24 2b 4b 24 0d 05 be  05 e1 0d 05 c8 05 3a 0d  |m$+K$.........:.|
00000e50  05 d2 11 dd f2 63 68 65  63 6b 3a 6d 76 25 3d b9  |.....check:mv%=.|
00000e60  0d 05 dc 18 e7 44 25 28  66 72 6f 6d 25 29 3d 30  |.....D%(from%)=0|
00000e70  20 6d 76 25 3d a3 3a e1  0d 05 e6 14 e7 74 6f 25  | mv%=.:......to%|
00000e80  3c 39 3a f2 63 68 65 63  6b 32 3a e1 0d 05 f0 29  |<9:.check2:....)|
00000e90  e7 53 25 28 66 72 6f 6d  25 2c 44 25 28 66 72 6f  |.S%(from%,D%(fro|
00000ea0  6d 25 29 29 3c 3e 28 74  6f 25 2d 38 29 20 6d 76  |m%))<>(to%-8) mv|
00000eb0  25 3d a3 3a e1 0d 05 fa  2d e7 43 25 28 66 72 6f  |%=.:....-.C%(fro|
00000ec0  6d 25 2c 44 25 28 66 72  6f 6d 25 29 29 3c 3e 41  |m%,D%(from%))<>A|
00000ed0  25 28 74 6f 25 2d 38 29  2b 31 20 6d 76 25 3d a3  |%(to%-8)+1 mv%=.|
00000ee0  3a e1 0d 06 04 05 e1 0d  06 0e 05 3a 0d 06 18 0c  |:..........:....|
00000ef0  dd f2 63 68 65 63 6b 32  0d 06 22 17 e7 44 25 28  |..check2.."..D%(|
00000f00  74 6f 25 29 3d 31 36 20  6d 76 25 3d a3 3a e1 0d  |to%)=16 mv%=.:..|
00000f10  06 2c 16 e7 44 25 28 74  6f 25 29 3d 30 20 6d 76  |.,..D%(to%)=0 mv|
00000f20  25 3d b9 3a e1 0d 06 36  33 e7 43 25 28 66 72 6f  |%=.:...63.C%(fro|
00000f30  6d 25 2c 44 25 28 66 72  6f 6d 25 29 29 2b 31 3c  |m%,D%(from%))+1<|
00000f40  3e 43 25 28 74 6f 25 2c  44 25 28 74 6f 25 29 29  |>C%(to%,D%(to%))|
00000f50  20 6d 76 25 3d a3 3a e1  0d 06 40 05 e1 0d 06 4a  | mv%=.:...@....J|
00000f60  05 3a 0d 06 54 0a dd f2  66 72 6f 6d 0d 06 5e 12  |.:..T...from..^.|
00000f70  e7 66 72 6f 6d 25 3e 38  20 e5 8d 64 60 46 0d 06  |.from%>8 ..d`F..|
00000f80  68 33 43 31 25 3d 43 25  28 66 72 6f 6d 25 2c 44  |h3C1%=C%(from%,D|
00000f90  25 28 66 72 6f 6d 25 29  29 3a 53 31 25 3d 53 25  |%(from%)):S1%=S%|
00000fa0  28 66 72 6f 6d 25 2c 44  25 28 66 72 6f 6d 25 29  |(from%,D%(from%)|
00000fb0  29 0d 06 72 2f 43 25 28  66 72 6f 6d 25 2c 44 25  |)..r/C%(from%,D%|
00000fc0  28 66 72 6f 6d 25 29 29  3d 30 3a 53 25 28 66 72  |(from%))=0:S%(fr|
00000fd0  6f 6d 25 2c 44 25 28 66  72 6f 6d 25 29 29 3d 30  |om%,D%(from%))=0|
00000fe0  0d 06 7c 1e 44 25 28 66  72 6f 6d 25 29 3d 44 25  |..|.D%(from%)=D%|
00000ff0  28 66 72 6f 6d 25 29 2d  31 3a 5a 25 3d 31 0d 06  |(from%)-1:Z%=1..|
00001000  86 20 e7 44 25 28 66 72  6f 6d 25 29 3e 36 20 8c  |. .D%(from%)>6 .|
00001010  5a 25 3d 44 25 28 66 72  6f 6d 25 29 2d 36 0d 06  |Z%=D%(from%)-6..|
00001020  90 42 e7 66 72 6f 6d 25  3e 34 20 4b 25 3d 38 34  |.B.from%>4 K%=84|
00001030  38 3a 59 25 3d 38 34 38  2d 31 36 30 2a 28 66 72  |8:Y%=848-160*(fr|
00001040  6f 6d 25 2d 34 29 20 8b  4b 25 3d 38 30 3a 59 25  |om%-4) .K%=80:Y%|
00001050  3d 38 34 38 2d 31 36 30  2a 28 66 72 6f 6d 25 29  |=848-160*(from%)|
00001060  0d 06 9a 29 e6 30 2c 31  32 38 3a ef 32 34 2c 4b  |...).0,128:.24,K|
00001070  25 2d 38 3b 59 25 2d 38  3b 4b 25 2b 34 30 30 3b  |%-8;Y%-8;K%+400;|
00001080  59 25 2b 31 35 30 3b 3a  da 0d 06 a4 17 e7 20 44  |Y%+150;:...... D|
00001090  25 28 66 72 6f 6d 25 29  3d 30 20 e5 8d 64 56 46  |%(from%)=0 ..dVF|
000010a0  0d 06 ae 2f 49 25 3d 66  72 6f 6d 25 3a e3 4a 25  |.../I%=from%:.J%|
000010b0  3d 5a 25 b8 20 44 25 28  66 72 6f 6d 25 29 3a 58  |=Z%. D%(from%):X|
000010c0  25 3d 4b 25 2b 34 30 2a  28 4a 25 2d 5a 25 29 0d  |%=K%+40*(J%-Z%).|
000010d0  06 b8 1d 43 25 3d 43 25  28 49 25 2c 4a 25 29 3a  |...C%=C%(I%,J%):|
000010e0  53 25 3d 53 25 28 49 25  2c 4a 25 29 0d 06 c2 10  |S%=S%(I%,J%)....|
000010f0  f2 63 61 72 64 28 43 25  2c 53 25 29 0d 06 cc 05  |.card(C%,S%)....|
00001100  ed 0d 06 d6 05 e1 0d 06  e0 11 66 72 6f 6d 25 3d  |..........from%=|
00001110  66 72 6f 6d 25 2d 38 0d  06 ea 0d 73 63 25 3d 73  |from%-8....sc%=s|
00001120  63 25 2d 31 0d 06 f4 1b  43 31 25 3d 41 25 28 66  |c%-1....C1%=A%(f|
00001130  72 6f 6d 25 29 3a 53 31  25 3d 66 72 6f 6d 25 0d  |rom%):S1%=from%.|
00001140  06 fe 19 41 25 28 66 72  6f 6d 25 29 3d 41 25 28  |...A%(from%)=A%(|
00001150  66 72 6f 6d 25 29 2d 31  0d 07 08 1b 58 25 3d 35  |from%)-1....X%=5|
00001160  36 30 3a 59 25 3d 38 34  38 2d 31 36 30 2a 66 72  |60:Y%=848-160*fr|
00001170  6f 6d 25 0d 07 12 19 43  25 3d 41 25 28 66 72 6f  |om%....C%=A%(fro|
00001180  6d 25 29 3a 53 25 3d 66  72 6f 6d 25 0d 07 1c 10  |m%):S%=from%....|
00001190  f2 63 61 72 64 28 43 25  2c 53 25 29 0d 07 26 05  |.card(C%,S%)..&.|
000011a0  e1 0d 07 30 05 3a 0d 07  3a 08 dd f2 74 6f 0d 07  |...0.:..:...to..|
000011b0  44 10 e7 74 6f 25 3e 38  20 e5 8d 74 72 47 0d 07  |D..to%>8 ..trG..|
000011c0  4e 1a 44 25 28 74 6f 25  29 3d 44 25 28 74 6f 25  |N.D%(to%)=D%(to%|
000011d0  29 2b 31 3a 5a 25 3d 31  0d 07 58 1c e7 20 44 25  |)+1:Z%=1..X.. D%|
000011e0  28 74 6f 25 29 3e 37 20  5a 25 3d 44 25 28 74 6f  |(to%)>7 Z%=D%(to|
000011f0  25 29 2d 36 0d 07 62 2b  43 25 28 74 6f 25 2c 44  |%)-6..b+C%(to%,D|
00001200  25 28 74 6f 25 29 29 3d  43 31 25 3a 53 25 28 74  |%(to%))=C1%:S%(t|
00001210  6f 25 2c 44 25 28 74 6f  25 29 29 3d 53 31 25 0d  |o%,D%(to%))=S1%.|
00001220  07 6c 3c e7 74 6f 25 3e  34 20 4b 25 3d 38 34 38  |.l<.to%>4 K%=848|
00001230  3a 59 25 3d 38 34 38 2d  31 36 30 2a 28 74 6f 25  |:Y%=848-160*(to%|
00001240  2d 34 29 20 8b 4b 25 3d  38 30 3a 59 25 3d 38 34  |-4) .K%=80:Y%=84|
00001250  38 2d 31 36 30 2a 28 74  6f 25 29 0d 07 76 29 e6  |8-160*(to%)..v).|
00001260  30 2c 31 32 38 3a ef 32  34 2c 4b 25 2d 38 3b 59  |0,128:.24,K%-8;Y|
00001270  25 2d 38 3b 4b 25 2b 34  30 30 3b 59 25 2b 31 35  |%-8;K%+400;Y%+15|
00001280  30 3b 3a da 0d 07 80 2c  49 25 3d 74 6f 25 3a e3  |0;:....,I%=to%:.|
00001290  4a 25 3d 5a 25 20 b8 20  44 25 28 74 6f 25 29 3a  |J%=Z% . D%(to%):|
000012a0  58 25 3d 4b 25 2b 34 30  2a 28 4a 25 2d 5a 25 29  |X%=K%+40*(J%-Z%)|
000012b0  0d 07 8a 1d 43 25 3d 43  25 28 49 25 2c 4a 25 29  |....C%=C%(I%,J%)|
000012c0  3a 53 25 3d 53 25 28 49  25 2c 4a 25 29 0d 07 94  |:S%=S%(I%,J%)...|
000012d0  10 f2 63 61 72 64 28 43  25 2c 53 25 29 0d 07 9e  |..card(C%,S%)...|
000012e0  05 ed 0d 07 a8 05 e1 0d  07 b2 0d 74 6f 25 3d 74  |...........to%=t|
000012f0  6f 25 2d 38 0d 07 bc 15  41 25 28 74 6f 25 29 3d  |o%-8....A%(to%)=|
00001300  41 25 28 74 6f 25 29 2b  31 0d 07 c6 19 58 25 3d  |A%(to%)+1....X%=|
00001310  35 36 30 3a 59 25 3d 38  34 38 2d 31 36 30 2a 74  |560:Y%=848-160*t|
00001320  6f 25 0d 07 d0 15 43 25  3d 41 25 28 74 6f 25 29  |o%....C%=A%(to%)|
00001330  3a 53 25 3d 74 6f 25 0d  07 da 10 f2 63 61 72 64  |:S%=to%.....card|
00001340  28 43 25 2c 53 25 29 0d  07 e4 0d 73 63 25 3d 73  |(C%,S%)....sc%=s|
00001350  63 25 2b 31 0d 07 ee 05  e1 0d 07 f8 05 3a 0d 08  |c%+1.........:..|
00001360  02 15 dd f2 75 6e 64 6f  3a 55 25 3d b9 3a 6d 76  |....undo:U%=.:mv|
00001370  25 3d a3 0d 08 0c 0c e7  6d 24 3d 22 22 20 e1 0d  |%=......m$="" ..|
00001380  08 16 1b 73 24 3d c2 6d  24 2c 32 29 3a 6d 24 3d  |...s$=.m$,2):m$=|
00001390  c0 6d 24 2c a9 6d 24 2d  32 29 0d 08 20 15 61 24  |.m$,.m$-2).. .a$|
000013a0  3d 22 41 42 43 44 45 46  47 48 31 32 33 34 22 0d  |="ABCDEFGH1234".|
000013b0  08 2a 15 66 72 6f 6d 25  3d a7 61 24 2c c2 73 24  |.*.from%=.a$,.s$|
000013c0  2c 31 29 29 0d 08 34 13  74 6f 25 3d a7 61 24 2c  |,1))..4.to%=.a$,|
000013d0  c0 73 24 2c 31 29 29 0d  08 3e 09 f2 66 72 6f 6d  |.s$,1))..>..from|
000013e0  0d 08 48 07 f2 74 6f 0d  08 52 05 e1 0d 08 5c 05  |..H..to..R....\.|
000013f0  3a 0d 08 66 18 dd f2 77  69 6e 3a ef 32 33 2c 31  |:..f...win:.23,1|
00001400  2c 30 3b 30 3b 30 3b 30  3b 0d 08 70 0a fb 31 32  |,0;0;0;0;..p..12|
00001410  38 3a db 0d 08 7a 0a f2  74 69 74 6c 65 0d 08 84  |8:...z..title...|
00001420  2f f4 20 49 46 77 69 6e  25 20 50 52 49 4e 54 54  |/. IFwin% PRINTT|
00001430  41 42 28 31 32 2c 34 29  3b 22 43 4f 4e 47 52 41  |AB(12,4);"CONGRA|
00001440  54 55 4c 41 54 49 4f 4e  53 21 21 22 0d 08 8e 2e  |TULATIONS!!"....|
00001450  f1 8a 34 2c 36 29 22 47  61 6d 65 20 4e 6f 2e 20  |..4,6)"Game No. |
00001460  20 53 63 6f 72 65 20 20  20 20 59 6f 75 72 20 53  | Score    Your S|
00001470  74 61 74 69 73 74 69 63  73 22 0d 08 98 2e f1 8a  |tatistics"......|
00001480  34 2c 37 29 22 7e 7e 7e  7e 7e 7e 7e 7e 20 20 7e  |4,7)"~~~~~~~~  ~|
00001490  7e 7e 7e 7e 20 20 20 20  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~    ~~~~~~~~|
000014a0  7e 7e 7e 7e 7e 7e 7e 22  0d 08 a2 18 ef 32 38 2c  |~~~~~~~".....28,|
000014b0  32 2c 32 34 2c 31 39 2c  38 3a fb 31 33 30 3a db  |2,24,19,8:.130:.|
000014c0  0d 08 ac 0d f2 70 72 69  6e 74 64 61 74 0d 08 b6  |.....printdat...|
000014d0  26 ef 32 36 3a fb 31 32  38 3a f1 8a 32 31 2c 38  |&.26:.128:..21,8|
000014e0  29 22 47 61 6d 65 73 20  70 6c 61 79 65 64 20 22  |)"Games played "|
000014f0  3b 4e 25 0d 08 c0 32 f1  8a 32 31 2c 31 30 29 22  |;N%...2..21,10)"|
00001500  57 69 6e 73 20 22 3b 77  69 6e 25 3b 8a 33 30 2c  |Wins ";win%;.30,|
00001510  31 30 29 3b 22 4c 6f 73  73 65 73 20 22 3b 4e 25  |10);"Losses ";N%|
00001520  2d 77 69 6e 25 0d 08 ca  30 e7 4e 25 3c 3e 30 20  |-win%...0.N%<>0 |
00001530  f1 8a 32 31 2c 31 32 29  22 41 76 65 72 61 67 65  |..21,12)"Average|
00001540  20 73 63 6f 72 65 20 22  3b a8 28 74 6f 74 73 63  | score ";.(totsc|
00001550  25 2f 4e 25 29 0d 08 d4  21 f1 8a 36 2c 32 38 29  |%/N%)...!..6,28)|
00001560  3b 22 41 6e 6f 74 68 65  72 20 67 61 6d 65 3f 20  |;"Another game? |
00001570  28 59 2f 4e 29 22 0d 08  de 17 f5 3a 61 25 3d a7  |(Y/N)".....:a%=.|
00001580  22 59 79 4e 6e 22 2c be  29 3a fd 61 25 0d 08 e8  |"YyNn",.):.a%...|
00001590  15 e7 61 25 3e 32 20 ef  32 32 2c 36 3a e0 20 8b  |..a%>2 .22,6:. .|
000015a0  20 f9 0d 08 f2 05 e1 0d  08 fc 05 3a 0d 09 06 0e  | ..........:....|
000015b0  dd f2 70 72 69 6e 74 64  61 74 0d 09 10 0c 74 6f  |..printdat....to|
000015c0  74 73 63 25 3d 30 0d 09  1a 10 41 3d ad 22 47 2e  |tsc%=0....A=."G.|
000015d0  42 43 44 41 54 22 0d 09  24 0a e8 23 41 2c 4e 25  |BCDAT"..$..#A,N%|
000015e0  0d 09 2e 0b e3 4e 3d 31  b8 4e 25 0d 09 38 14 e8  |.....N=1.N%..8..|
000015f0  23 41 2c 4d 4d 25 2c 73  63 25 2c 77 69 6e 25 0d  |#A,MM%,sc%,win%.|
00001600  09 42 13 f1 27 4d 4d 25  3b 22 20 20 20 22 3b 73  |.B..'MM%;"   ";s|
00001610  63 25 0d 09 4c 15 74 6f  74 73 63 25 3d 74 6f 74  |c%..L.totsc%=tot|
00001620  73 63 25 2b 73 63 25 0d  09 56 05 ed 0d 09 60 07  |sc%+sc%..V....`.|
00001630  d9 23 41 0d 09 6a 05 e1  0d 09 74 05 3a 0d 09 7e  |.#A..j....t.:..~|
00001640  1b dd f2 73 61 76 64 61  74 3a ef 32 33 2c 31 2c  |...savdat:.23,1,|
00001650  30 3b 30 3b 30 3b 30 3b  0d 09 88 32 f1 8a 31 2c  |0;0;0;0;...2..1,|
00001660  33 30 29 22 20 20 20 20  20 20 53 61 76 69 6e 67  |30)"      Saving|
00001670  20 64 61 74 61 2e 20 50  6c 65 61 73 65 20 77 61  | data. Please wa|
00001680  69 74 2e 2e 2e 20 20 20  22 3b 0d 09 92 10 41 3d  |it...   ";....A=|
00001690  ad 22 47 2e 42 43 44 41  54 22 0d 09 9c 0a e8 23  |."G.BCDAT".....#|
000016a0  41 2c 4e 25 0d 09 a6 09  cf 23 41 3d 30 0d 09 b0  |A,N%.....#A=0...|
000016b0  0a f1 23 41 2c 4e 25 0d  09 ba 11 cf 23 41 3d 28  |..#A,N%.....#A=(|
000016c0  4e 25 2a 31 35 29 2b 35  0d 09 c4 14 f1 23 41 2c  |N%*15)+5.....#A,|
000016d0  4d 4d 25 2c 73 63 25 2c  77 69 6e 25 0d 09 ce 09  |MM%,sc%,win%....|
000016e0  cf 23 41 3d 30 0d 09 d8  0b 4e 25 3d 4e 25 2b 31  |.#A=0....N%=N%+1|
000016f0  0d 09 e2 0a f1 23 41 2c  4e 25 0d 09 ec 07 d9 23  |.....#A,N%.....#|
00001700  41 0d 09 f6 32 f1 8a 31  2c 33 30 29 22 20 20 20  |A...2..1,30)"   |
00001710  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00001730  20 22 3b 0d 0a 00 05 e1  0d 0a 0a 05 3a 0d 0a 14  | ";.........:...|
00001740  52 2a 4b 2e 30 20 2a 54  2e 7c 4d 46 4f 52 49 25  |R*K.0 *T.|MFORI%|
00001750  3d 30 54 4f 20 54 4f 50  2d 50 41 47 45 20 53 54  |=0TO TOP-PAGE ST|
00001760  45 50 34 3a 49 25 21 26  45 30 30 3d 49 25 21 50  |EP4:I%!&E00=I%!P|
00001770  41 47 45 3a 4e 45 58 54  7c 4d 50 41 47 45 3d 26  |AGE:NEXT|MPAGE=&|
00001780  45 30 30 7c 4d 4f 4c 44  7c 4d 52 55 4e 7c 4d 0d  |E00|MOLD|MRUN|M.|
00001790  0a 1e 10 2a 46 58 31 33  38 2c 30 2c 31 32 38 0d  |...*FX138,0,128.|
000017a0  ff                                                |.|
000017a1
G/CASTLE.m0
G/CASTLE.m1
G/CASTLE.m2
G/CASTLE.m4
G/CASTLE.m5