Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_21.ADF » G/SQU

G/SQU

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 » Electron_User_Group » EUG_21.ADF
Filename: G/SQU
Read OK:
File size: 16C9 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

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

File contents
   10REM Squares
   20REM By James Treadwell
   30REM HeadFirst PD 1992 
   40MODE5
   50PROCinit
   60PRINTTAB(7,1);"Squares"
   70PRINT'
   80FORI=1TO9
   90PRINT ;" "I;
  100NEXT
  110PRINT" 0"
  120B$=CHR$224+CHR$32
  130A$=STRING$(10,B$)
  140VDU11
  150FORI=1TO10
  160COLOUR3:VDUI+64;:COLOUR2:PRINTA$
  170NEXT
  180PROCstart
  190SET=0:ALL=0
  200ACR=0:DOW=0:ADD=0
  210MIS=0
  220COLOUR1
  230PROCsc
  240COLOUR3
  250IF TURN=1 THEN PRINTTAB(0,27);P1$;" to go               "
  260IF TURN=2 THEN PRINTTAB(0,27);P2$;" to go               "
  270VDU23;8202,1;0;0;0;
  280IF TURN=2 AND P2$="Comp" THEN PRINTTAB(0,29);"Thinking..":PROCcomp:GOTO350
  290PRINTTAB(0,29);"Enter Line: ":INPUTTAB(12,29)Z$
  300PRINTTAB(0,29);STRING$(20," ")
  310VDU23;8202;0;0;0;
  320PROCmovei
  330IF MIS=1 THEN VDU7:GOTO400
  340IF SET=0 THEN SET=1:x1=POI:y1=LIN:GOTO400
  350ADD=POI:MIS=LIN
  360POI=x1:LIN=y1:c=3:AT(POI,LIN)=0
  370IF LIN MOD 2=0 THEN PROCdo2 ELSE PROCac2
  380c=1
  390x=x1:y=y1:x1=ADD:y1=MIS
  400IF P1SC+P2SC=81 THEN GOTO 410 ELSE GOTO200
  410COLOUR1:PROCsc
  420PRINTTAB(0,27);STRING$(20," ")
  430PRINTTAB(0,29);STRING$(20," ")
  440COLOUR3
  450IF P1SC>P2SC THEN PRINTTAB(0,27);"Well Done ";P1$ ELSE PRINTTAB(0,27);"Well Done ";P2$
  460PRINTTAB(0,29);"Another Game (Y/N)?"
  470G$=GET$
  480IF G$="Y" THEN CLEAR:RUN
  490IF G$="N" THEN END
  500VDU7:GOTO470
  510END
  520DEFPROCsc
  530IF P1SC<10 AND P2SC<10 THEN PRINTTAB(0,25);P1$;TAB(8);P1SC;TAB(10);P2$;TAB(19);P2SC
  540IFP1SC<10 AND P2SC>10 THEN PRINTTAB(0,25);P1$;TAB(8);P1SC;TAB(10);P2$;TAB(18);P2SC
  550IFP1SC>10 AND P2SC<10 THEN PRINTTAB(0,25);P1$;TAB(7);P1SC;TAB(10);P2$;TAB(19);P2SC
  560IFP1SC>10 AND P2SC>10 THEN PRINTTAB(0,25);P1$;TAB(7);P1SC;TAB(10);P2$;TAB(18);P2SC
  570ENDPROC
  580DEFPROCmovei
  590MIS=0
  600IF LEN(Z$)<>4 THEN MIS=1:ENDPROC
  610C$=LEFT$(Z$,1)
  620CN$=MID$(Z$,2,1)
  630D$=MID$(Z$,3,1)
  640DN$=RIGHT$(Z$,1)
  650CN=VAL(CN$)
  660DN=VAL(DN$)
  670CL=ASC(C$)
  680DL=ASC(D$)
  690IF DL>74 THEN MIS=1:ENDPROC
  700IFCN=0 THEN CN=10
  710IFDN=0 THEN DN=10
  720IF CN>DN THEN A=CN:B=DN:DN=A:CN=B
  730IF CL>DL THEN A=CL:B=DL:DL=A:CL=B
  740IF CN=DN AND CL=DL THEN MIS=1:ENDPROC
  750IFDL-CL>1 OR DL-CL<0 OR DN-CN>1 OR DN-CN<0 THEN MIS=1:ENDPROC
  760IF C$=D$ THEN PROCacross
  770IF CN=DN THEN PROCdown
  780IF CL<>DL AND CN<>DN THEN MIS=1:ENDPROC
  790PROCsqu
  800IFADD=1 THEN ENDPROC
  810IF MIS=0 THEN TURN=3-TURN
  820ENDPROC
  830DEFPROCacross
  840LIN=((CL-64)*2)+3
  850POI=CN+DN-1
  860PROCac2
  870ENDPROC
  880DEFPROCac2
  890COLOURc
  900IF AT(POI,LIN)=1 THEN MIS=1:ENDPROC ELSE AT(POI,LIN)=1
  910PRINTTAB(POI,LIN);CHR$225
  920ACR=1
  930ENDPROC
  940DEFPROCdown
  950LIN=((CL-64)*2)+4
  960POI=(CN*2)-1
  970PROCdo2
  980ENDPROC
  990DEFPROCdo2
 1000COLOURc
 1010IF AT(POI,LIN)=1 THEN MIS=1:ENDPROC ELSE AT(POI,LIN)=1
 1020PRINTTAB(POI,LIN);CHR$226
 1030DOW=1
 1040ENDPROC
 1050DEFPROCsqu
 1060COLOUR1
 1070IF ACR=1 THEN PROCsqua
 1080IF DOW=1 THEN PROCsqud
 1090ENDPROC
 1100DEFPROCsqua
 1110IF LIN=5 THEN GOTO1170
 1120IF AT(POI-1,LIN-1)=0 THEN GOTO1170
 1130IF AT(POI+1,LIN-1)=0 THEN GOTO 1170
 1140IF AT(POI,LIN-2)=0 THEN GOTO 1170
 1150IF SQU(POI,LIN-1)=0 THEN SQU(POI,LIN-1)=1 ELSE GOTO 1170
 1160IF TURN=1 THEN PRINTTAB(POI,LIN-1);P1S$:P1SC=P1SC+1:ADD=1 ELSE PRINTTAB(POI,LIN-1);P2S$:P2SC=P2SC+1:ADD=1
 1170IF LIN=23 THEN ENDPROC
 1180IF AT(POI-1,LIN+1)=0 THEN ENDPROC
 1190IF AT(POI+1,LIN+1)=0 THEN ENDPROC
 1200IF AT(POI,LIN+2)=0 THEN ENDPROC
 1210IF SQU(POI,LIN+1)=0 THEN SQU(POI,LIN+1)=1 ELSE GOTO1230
 1220IF TURN=1 THEN PRINTTAB(POI,LIN+1);P1S$:P1SC=P1SC+1:ADD=1 ELSE PRINTTAB(POI,LIN+1);P2S$:P2SC=P2SC+1:ADD=1
 1230ENDPROC
 1240DEFPROCsqud
 1250IF POI=19 THEN GOTO1310
 1260IF AT(POI+1,LIN-1)=0 THEN GOTO 1310
 1270IF AT(POI+1,LIN+1)=0 THEN GOTO 1310
 1280IF AT(POI+2,LIN)=0 THEN GOTO 1310
 1290IF SQU(POI+1,LIN)=0 THEN SQU(POI+1,LIN)=1 ELSE GOTO1310
 1300IF TURN=1 THEN PRINTTAB(POI+1,LIN);P1S$:P1SC=P1SC+1:ADD=1 ELSE PRINTTAB(POI+1,LIN);P2S$:P2SC=P2SC+1:ADD=1
 1310IF POI=1 THEN ENDPROC
 1320IF AT(POI-1,LIN-1)=0 THEN ENDPROC
 1330IF AT(POI-1,LIN+1)=0 THEN ENDPROC
 1340IF AT(POI-2,LIN)=0 THEN ENDPROC
 1350IF SQU(POI-1,LIN)=0 THEN SQU(POI-1,LIN)=1 ELSE ENDPROC
 1360IF TURN=1 THEN PRINTTAB(POI-1,LIN);P1S$:P1SC=P1SC+1:ADD=1 ELSE PRINTTAB(POI-1,LIN);P2S$:P2SC=P2SC+1:ADD=1
 1370ENDPROC
 1380DEFPROCstart
 1390PRINTTAB(0,27);"1 or 2 players?";
 1400G$=GET$
 1410IF G$<>"1" AND G$<>"2" THEN VDU7:GOTO1400
 1420COLOUR2
 1430IFG$="1" THEN PRINTTAB(0,27);"Enter Name: ";:PRINTTAB(12,27);STRING$(9," "):COLOUR3:INPUTTAB(12,27)P1$:P1S$=LEFT$(P1$,1):P2$="Comp":P2S$="X":COLOUR2:GOTO1500
 1440IFG$="2" THEN PRINTTAB(0,27);"Enter Player 1 Name":COLOUR3:INPUT'""P1$:PRINTTAB(0,29);STRING$(20," "):COLOUR2
 1450IFLEN(P1$)>6 THEN VDU7:GOTO1440
 1460PRINTTAB(0,27);"Enter Player 2 Name":COLOUR3:INPUT'""P2$:PRINTTAB(0,29);STRING$(20," ") 
 1470IFLEN(P2$)>6 THEN VDU7:GOTO1460
 1480P1S$=LEFT$(P1$,1):IF LEFT$(P2$,1)=P1S$ THEN P2S$="X" ELSE P2S$=LEFT$(P2$,1)
 1490IFG$="2" THEN GOTO 1510
 1500IF LEN(P1$)>6 THEN VDU7:GOTO1430
 1510COLOUR2
 1520PRINTTAB(0,29);STRING$(20," ")
 1530PRINTTAB(0,27);"Who goes first (1/2)"
 1540TURN=GET
 1550TURN=TURN-48
 1560IFTURN<1 OR TURN>2 THEN VDU7:GOTO1540
 1570P1SC=0:P2SC=0
 1580ENDPROC
 1590DEFPROCinit
 1600ONERRORMODE6:END
 1610VDU23,224,255,255,255,255,255,255,255,255
 1620VDU23,225,0,0,0,255,255,0,0,0
 1630VDU23,226,24,24,24,24,24,24,24,24
 1640VDU19,2,6;0;
 1650DIMAT(25,25),SQU(25,25)
 1660c=1:x=2:y=5:x1=2:y1=5
 1670ENDPROC
 1680DEFPROCcomp
 1690VDU23;8202;0;0;0;
 1700scan=0
 1710IF scan=1 THEN x=x1:y=y1
 1720POI=0:LIN=0
 1730IF y MOD 2=0 THEN GOTO1770
 1740IF y=23 THEN GOTO1760 ELSE PROCcheck
 1750IF POI>0 AND LIN>0 THEN GOTO1940
 1760IF y=5 THEN GOTO1820 ELSE y=y-2:PROCcheck:GOTO1810
 1770IF x=1 THEN x=x+1:y=y-1:GOTO1800 ELSE x=x-1:y=y-1:PROCcheck
 1780IF POI>0 AND LIN>0 THEN GOTO1940
 1790x=x+2
 1800PROCcheck
 1810IF POI>0 AND LIN>0 THEN GOTO1940
 1820IF scan=0 THEN scan=1:GOTO1710
 1830IFALL=1 THENGOTO1910
 1840a=RND(19)+3
 1850y=a:REPEAT:y=y+1
 1860IF y MOD 2=0 THEN PROCcdow ELSE PROCcacr
 1870IFy=23 THEN y=4
 1880UNTILy=a OR POI>0
 1890IF POI>0 AND LIN>0 THEN GOTO1940
 1900ALL=1
 1910FORy=5TO23
 1920IF y MOD 2=0 THEN PROCcdow3 ELSE PROCcacr3
 1930NEXT
 1940IF LIN MOD 2=0 THEN PROCdo2 ELSE PROCac2
 1950PROCsqu
 1960x=POI:y=LIN
 1970IF ADD=1 THEN ENDPROC
 1980TURN=3-TURN
 1990ENDPROC
 2000DEFPROCcheck
 2010IF AT(x,y)=1 AND AT(x,y+2)=1 AND AT(x-1,y+1)=1 AND AT(x+1,y+1)=0 THEN POI=x+1:LIN=y+1:ENDPROC
 2020IF AT(x,y)=1 AND AT(x,y+2)=1 AND AT(x-1,y+1)=0 AND AT(x+1,y+1)=1 THEN POI=x-1:LIN=y+1:ENDPROC
 2030IF AT(x,y)=1 AND AT(x,y+2)=0 AND AT(x-1,y+1)=1 AND AT(x+1,y+1)=1 THEN POI=x:LIN=y+2:ENDPROC
 2040IF AT(x,y)=0 AND AT(x,y+2)=1 AND AT(x-1,y+1)=1 AND AT(x+1,y+1)=1 THEN POI=x:LIN=y:ENDPROC
 2050ENDPROC
 2060DEFPROCcdow2
 2070IF x=1 THEN GOTO2090 ELSE IF x=19 THEN GOTO2100
 2080IF AT(x,y)=0 AND AT(x+1,y+1)+AT(x+1,y-1)+AT(x+2,y)<2 AND AT(x-2,y)+AT(x-1,y+1)+AT(x-1,y-1)<2 THEN POI=x:LIN=y:ENDPROC ELSE ENDPROC
 2090IF AT(x,y)=0 AND AT(x+1,y+1)+AT(x+1,y-1)+AT(x+2,y)<2 THEN POI=x:LIN=y:ENDPROC ELSE ENDPROC
 2100IF AT(x,y)=0 AND AT(x-2,y)+AT(x-1,y+1)+AT(x-1,y-1)<2 THEN POI=x:LIN=y:ENDPROC
 2110ENDPROC
 2120DEFPROCcdow
 2130FORx=1 TO 19 STEP 2
 2140IF AT(x,y)=0 THEN PROCcdow2
 2150IF POI>0 AND LIN>0 AND RND(10)=10 THEN x=19:NEXT:ENDPROC
 2160NEXT
 2170ENDPROC
 2180DEFPROCcacr2
 2190IF y=5 THEN GOTO2210 ELSE IF y=23 THEN GOTO2220
 2200IF AT(x,y)=0 AND AT(x-1,y+1)+AT(x+1,y+1)+AT(x,y+2)<2 AND AT(x-1,y-1)+AT(x+1,y-1)+AT(x,y-2)<2 THEN POI=x:LIN=y:ENDPROC ELSE ENDPROC
 2210IF AT(x,y)=0 AND AT(x-1,y+1)+AT(x+1,y+1)+AT(x,y+2)<2 THEN POI=x:LIN=y:ENDPROC ELSE ENDPROC
 2220IF AT(x,y)=0 AND AT(x-1,y-1)+AT(x+1,y-1)+AT(x,y-2)<2 THEN POI=x:LIN=y:ENDPROC
 2230ENDPROC
 2240DEFPROCcacr
 2250FOR x=2 TO 18 STEP 2
 2260IF AT(x,y)=0 THEN PROCcacr2
 2270IF POI>0 AND LIN>0 AND RND(10)=10 THEN x=18:NEXT:ENDPROC
 2280NEXT
 2290ENDPROC
 2300DEFPROCcdow3
 2310FOR x=1 TO 19 STEP 2
 2320IF AT(x,y)=0 THEN POI=x:LIN=y:x=19:y=23:NEXT:ENDPROC
 2330NEXT
 2340ENDPROC
 2350DEFPROCcacr3
 2360FOR x=2 TO 18 STEP 2
 2370IF AT(x,y)=0 THEN POI=x:LIN=y:x=18:y=23:NEXT:ENDPROC
 2380NEXT
 2390ENDPROC


� Squares
� By James Treadwell
� HeadFirst PD 1992 
(�5
2	�init
<�7,1);"Squares"
F�'
P
�I=1�9
Z� ;" "I;
d�
n	�" 0"
xB$=�224+�32
�A$=�10,B$)
��11
��I=1�10
��3:�I+64;:�2:�A$
��
�
�start
�SET=0:ALL=0
�ACR=0:DOW=0:ADD=0
�	MIS=0
��1
��sc
��3
�2� TURN=1 � �0,27);P1$;" to go               "
2� TURN=2 � �0,27);P2$;" to go               "
�23;8202,1;0;0;0;
<� TURN=2 � P2$="Comp" � �0,29);"Thinking..":�comp:�D^A
"%�0,29);"Enter Line: ":�12,29)Z$
,�0,29);�20," ")
6�23;8202;0;0;0;
@
�movei
J� MIS=1 � �7:�tPA
T'� SET=0 � SET=1:x1=POI:y1=LIN:�tPA
^ADD=POI:MIS=LIN
h#POI=x1:LIN=y1:c=3:AT(POI,LIN)=0
r� LIN � 2=0 � �do2 � �ac2
|c=1
�x=x1:y=y1:x1=ADD:y1=MIS
�#� P1SC+P2SC=81 � � �tZA � �dH@
�
�1:�sc
��0,27);�20," ")
��0,29);�20," ")
��3
�E� P1SC>P2SC � �0,27);"Well Done ";P1$ � �0,27);"Well Done ";P2$
�!�0,29);"Another Game (Y/N)?"
�G$=�
�� G$="Y" � �:�
�� G$="N" � �
��7:�dVA
��
��sc
A� P1SC<10 � P2SC<10 � �0,25);P1$;�8);P1SC;�10);P2$;�19);P2SC
@�P1SC<10 � P2SC>10 � �0,25);P1$;�8);P1SC;�10);P2$;�18);P2SC
&@�P1SC>10 � P2SC<10 � �0,25);P1$;�7);P1SC;�10);P2$;�19);P2SC
0@�P1SC>10 � P2SC>10 � �0,25);P1$;�7);P1SC;�10);P2$;�18);P2SC
:�
D��movei
N	MIS=0
X� �(Z$)<>4 � MIS=1:�
b
C$=�Z$,1)
lCN$=�Z$,2,1)
vD$=�Z$,3,1)
�DN$=�Z$,1)
�
CN=�(CN$)
�
DN=�(DN$)
�CL=�(C$)
�DL=�(D$)
�� DL>74 � MIS=1:�
��CN=0 � CN=10
��DN=0 � DN=10
�!� CN>DN � A=CN:B=DN:DN=A:CN=B
�!� CL>DL � A=CL:B=DL:DL=A:CL=B
�� CN=DN � CL=DL � MIS=1:�
�4�DL-CL>1 � DL-CL<0 � DN-CN>1 � DN-CN<0 � MIS=1:�
�� C$=D$ � �across
� CN=DN � �down
� CL<>DL � CN<>DN � MIS=1:�
�squ
 �ADD=1 � �
*� MIS=0 � TURN=3-TURN
4�
>��across
HLIN=((CL-64)*2)+3
RPOI=CN+DN-1
\�ac2
f�
p	��ac2
z�c
�-� AT(POI,LIN)=1 � MIS=1:� � AT(POI,LIN)=1
��POI,LIN);�225
�	ACR=1
��
�
��down
�LIN=((CL-64)*2)+4
�POI=(CN*2)-1
��do2
��
�	��do2
��c
�-� AT(POI,LIN)=1 � MIS=1:� � AT(POI,LIN)=1
��POI,LIN);�226
	DOW=1
�
	��squ
$�1
.� ACR=1 � �squa
8� DOW=1 � �squd
B�
L
��squa
V� LIN=5 � �tRD
`� AT(POI-1,LIN-1)=0 � �tRD
j � AT(POI+1,LIN-1)=0 � � �tRD
t� AT(POI,LIN-2)=0 � � �tRD
~2� SQU(POI,LIN-1)=0 � SQU(POI,LIN-1)=1 � � �tRD
�X� TURN=1 � �POI,LIN-1);P1S$:P1SC=P1SC+1:ADD=1 � �POI,LIN-1);P2S$:P2SC=P2SC+1:ADD=1
�� LIN=23 � �
�� AT(POI-1,LIN+1)=0 � �
�� AT(POI+1,LIN+1)=0 � �
�� AT(POI,LIN+2)=0 � �
�1� SQU(POI,LIN+1)=0 � SQU(POI,LIN+1)=1 � �dND
�X� TURN=1 � �POI,LIN+1);P1S$:P1SC=P1SC+1:ADD=1 � �POI,LIN+1);P2S$:P2SC=P2SC+1:ADD=1
��
�
��squd
�� POI=19 � �T^E
� � AT(POI+1,LIN-1)=0 � � �T^E
� � AT(POI+1,LIN+1)=0 � � �T^E
� AT(POI+2,LIN)=0 � � �T^E

1� SQU(POI+1,LIN)=0 � SQU(POI+1,LIN)=1 � �T^E
X� TURN=1 � �POI+1,LIN);P1S$:P1SC=P1SC+1:ADD=1 � �POI+1,LIN);P2S$:P2SC=P2SC+1:ADD=1
� POI=1 � �
(� AT(POI-1,LIN-1)=0 � �
2� AT(POI-1,LIN+1)=0 � �
<� AT(POI-2,LIN)=0 � �
F-� SQU(POI-1,LIN)=0 � SQU(POI-1,LIN)=1 � �
PX� TURN=1 � �POI-1,LIN);P1S$:P1SC=P1SC+1:ADD=1 � �POI-1,LIN);P2S$:P2SC=P2SC+1:ADD=1
Z�
d��start
n�0,27);"1 or 2 players?";
xG$=�
�"� G$<>"1" � G$<>"2" � �7:�DxE
��2
�o�G$="1" � �0,27);"Enter Name: ";:�12,27);�9," "):�3:�12,27)P1$:P1S$=�P1$,1):P2$="Comp":P2S$="X":�2:�d\E
�J�G$="2" � �0,27);"Enter Player 1 Name":�3:�'""P1$:�0,29);�20," "):�2
��(P1$)>6 � �7:�t`E
�>�0,27);"Enter Player 2 Name":�3:�'""P2$:�0,29);�20," ") 
��(P2$)>6 � �7:�ttE
�9P1S$=�P1$,1):� �P2$,1)=P1S$ � P2S$="X" � P2S$=�P2$,1)
��G$="2" � � �dfE
�� �(P1$)>6 � �7:�tVE
��2
��0,29);�20," ")
�"�0,27);"Who goes first (1/2)"

TURN=�
TURN=TURN-48
�TURN<1 � TURN>2 � �7:�TDF
"P1SC=0:P2SC=0
,�
6
��init
@
��6:�
J+�23,224,255,255,255,255,255,255,255,255
T�23,225,0,0,0,255,255,0,0,0
^#�23,226,24,24,24,24,24,24,24,24
h�19,2,6;0;
r�AT(25,25),SQU(25,25)
|c=1:x=2:y=5:x1=2:y1=5
��
�
��comp
��23;8202;0;0;0;
�
scan=0
�� scan=1 � x=x1:y=y1
�POI=0:LIN=0
�� y � 2=0 � �djF
�� y=23 � �d`F � �check
�� POI>0 � LIN>0 � �tTG
�&� y=5 � �T\G � y=y-2:�check:�TRG
�2� x=1 � x=x+1:y=y-1:�THG � x=x-1:y=y-1:�check
�� POI>0 � LIN>0 � �tTG
�	x=x+2

�check
� POI>0 � LIN>0 � �tTG
� scan=0 � scan=1:�tnF
&�ALL=1 ��DvG
0
a=�(19)+3
:y=a:�:y=y+1
D� y � 2=0 � �cdow � �cacr
N�y=23 � y=4
X�y=a � POI>0
b� POI>0 � LIN>0 � �tTG
l	ALL=1
v�y=5�23
�� y � 2=0 � �cdow3 � �cacr3
��
�� LIN � 2=0 � �do2 � �ac2
��squ
�x=POI:y=LIN
�� ADD=1 � �
�TURN=3-TURN
��
���check
�Q� AT(x,y)=1 � AT(x,y+2)=1 � AT(x-1,y+1)=1 � AT(x+1,y+1)=0 � POI=x+1:LIN=y+1:�
�Q� AT(x,y)=1 � AT(x,y+2)=1 � AT(x-1,y+1)=0 � AT(x+1,y+1)=1 � POI=x-1:LIN=y+1:�
�O� AT(x,y)=1 � AT(x,y+2)=0 � AT(x-1,y+1)=1 � AT(x+1,y+1)=1 � POI=x:LIN=y+2:�
�M� AT(x,y)=0 � AT(x,y+2)=1 � AT(x-1,y+1)=1 � AT(x+1,y+1)=1 � POI=x:LIN=y:�
�
��cdow2
"� x=1 � �TjH � � x=19 � �TtH
 o� AT(x,y)=0 � AT(x+1,y+1)+AT(x+1,y-1)+AT(x+2,y)<2 � AT(x-2,y)+AT(x-1,y+1)+AT(x-1,y-1)<2 � POI=x:LIN=y:� � �
*I� AT(x,y)=0 � AT(x+1,y+1)+AT(x+1,y-1)+AT(x+2,y)<2 � POI=x:LIN=y:� � �
4E� AT(x,y)=0 � AT(x-2,y)+AT(x-1,y+1)+AT(x-1,y-1)<2 � POI=x:LIN=y:�
>�
H
��cdow
R�x=1 � 19 � 2
\� AT(x,y)=0 � �cdow2
f)� POI>0 � LIN>0 � �(10)=10 � x=19:�:�
p�
z�
���cacr2
�"� y=5 � �tbH � � y=23 � �tlH
�o� AT(x,y)=0 � AT(x-1,y+1)+AT(x+1,y+1)+AT(x,y+2)<2 � AT(x-1,y-1)+AT(x+1,y-1)+AT(x,y-2)<2 � POI=x:LIN=y:� � �
�I� AT(x,y)=0 � AT(x-1,y+1)+AT(x+1,y+1)+AT(x,y+2)<2 � POI=x:LIN=y:� � �
�E� AT(x,y)=0 � AT(x-1,y-1)+AT(x+1,y-1)+AT(x,y-2)<2 � POI=x:LIN=y:�
��
�
��cacr
�� x=2 � 18 � 2
�� AT(x,y)=0 � �cacr2
�)� POI>0 � LIN>0 � �(10)=10 � x=18:�:�
��
��
���cdow3
	� x=1 � 19 � 2
	+� AT(x,y)=0 � POI=x:LIN=y:x=19:y=23:�:�
	�
	$�
	.��cacr3
	8� x=2 � 18 � 2
	B+� AT(x,y)=0 � POI=x:LIN=y:x=18:y=23:�:�
	L�
	V�
�
00000000  0d 00 0a 0d f4 20 53 71  75 61 72 65 73 0d 00 14  |..... Squares...|
00000010  18 f4 20 42 79 20 4a 61  6d 65 73 20 54 72 65 61  |.. By James Trea|
00000020  64 77 65 6c 6c 0d 00 1e  18 f4 20 48 65 61 64 46  |dwell..... HeadF|
00000030  69 72 73 74 20 50 44 20  31 39 39 32 20 0d 00 28  |irst PD 1992 ..(|
00000040  06 eb 35 0d 00 32 09 f2  69 6e 69 74 0d 00 3c 14  |..5..2..init..<.|
00000050  f1 8a 37 2c 31 29 3b 22  53 71 75 61 72 65 73 22  |..7,1);"Squares"|
00000060  0d 00 46 06 f1 27 0d 00  50 0a e3 49 3d 31 b8 39  |..F..'..P..I=1.9|
00000070  0d 00 5a 0c f1 20 3b 22  20 22 49 3b 0d 00 64 05  |..Z.. ;" "I;..d.|
00000080  ed 0d 00 6e 09 f1 22 20  30 22 0d 00 78 0f 42 24  |...n.." 0"..x.B$|
00000090  3d bd 32 32 34 2b bd 33  32 0d 00 82 0e 41 24 3d  |=.224+.32....A$=|
000000a0  c4 31 30 2c 42 24 29 0d  00 8c 07 ef 31 31 0d 00  |.10,B$).....11..|
000000b0  96 0b e3 49 3d 31 b8 31  30 0d 00 a0 14 fb 33 3a  |...I=1.10.....3:|
000000c0  ef 49 2b 36 34 3b 3a fb  32 3a f1 41 24 0d 00 aa  |.I+64;:.2:.A$...|
000000d0  05 ed 0d 00 b4 0a f2 73  74 61 72 74 0d 00 be 0f  |.......start....|
000000e0  53 45 54 3d 30 3a 41 4c  4c 3d 30 0d 00 c8 15 41  |SET=0:ALL=0....A|
000000f0  43 52 3d 30 3a 44 4f 57  3d 30 3a 41 44 44 3d 30  |CR=0:DOW=0:ADD=0|
00000100  0d 00 d2 09 4d 49 53 3d  30 0d 00 dc 06 fb 31 0d  |....MIS=0.....1.|
00000110  00 e6 07 f2 73 63 0d 00  f0 06 fb 33 0d 00 fa 32  |....sc.....3...2|
00000120  e7 20 54 55 52 4e 3d 31  20 8c 20 f1 8a 30 2c 32  |. TURN=1 . ..0,2|
00000130  37 29 3b 50 31 24 3b 22  20 74 6f 20 67 6f 20 20  |7);P1$;" to go  |
00000140  20 20 20 20 20 20 20 20  20 20 20 20 20 22 0d 01  |             "..|
00000150  04 32 e7 20 54 55 52 4e  3d 32 20 8c 20 f1 8a 30  |.2. TURN=2 . ..0|
00000160  2c 32 37 29 3b 50 32 24  3b 22 20 74 6f 20 67 6f  |,27);P2$;" to go|
00000170  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 22  |               "|
00000180  0d 01 0e 15 ef 32 33 3b  38 32 30 32 2c 31 3b 30  |.....23;8202,1;0|
00000190  3b 30 3b 30 3b 0d 01 18  3c e7 20 54 55 52 4e 3d  |;0;0;...<. TURN=|
000001a0  32 20 80 20 50 32 24 3d  22 43 6f 6d 70 22 20 8c  |2 . P2$="Comp" .|
000001b0  20 f1 8a 30 2c 32 39 29  3b 22 54 68 69 6e 6b 69  | ..0,29);"Thinki|
000001c0  6e 67 2e 2e 22 3a f2 63  6f 6d 70 3a e5 8d 44 5e  |ng..":.comp:..D^|
000001d0  41 0d 01 22 25 f1 8a 30  2c 32 39 29 3b 22 45 6e  |A.."%..0,29);"En|
000001e0  74 65 72 20 4c 69 6e 65  3a 20 22 3a e8 8a 31 32  |ter Line: ":..12|
000001f0  2c 32 39 29 5a 24 0d 01  2c 14 f1 8a 30 2c 32 39  |,29)Z$..,...0,29|
00000200  29 3b c4 32 30 2c 22 20  22 29 0d 01 36 13 ef 32  |);.20," ")..6..2|
00000210  33 3b 38 32 30 32 3b 30  3b 30 3b 30 3b 0d 01 40  |3;8202;0;0;0;..@|
00000220  0a f2 6d 6f 76 65 69 0d  01 4a 16 e7 20 4d 49 53  |..movei..J.. MIS|
00000230  3d 31 20 8c 20 ef 37 3a  e5 8d 74 50 41 0d 01 54  |=1 . .7:..tPA..T|
00000240  27 e7 20 53 45 54 3d 30  20 8c 20 53 45 54 3d 31  |'. SET=0 . SET=1|
00000250  3a 78 31 3d 50 4f 49 3a  79 31 3d 4c 49 4e 3a e5  |:x1=POI:y1=LIN:.|
00000260  8d 74 50 41 0d 01 5e 13  41 44 44 3d 50 4f 49 3a  |.tPA..^.ADD=POI:|
00000270  4d 49 53 3d 4c 49 4e 0d  01 68 23 50 4f 49 3d 78  |MIS=LIN..h#POI=x|
00000280  31 3a 4c 49 4e 3d 79 31  3a 63 3d 33 3a 41 54 28  |1:LIN=y1:c=3:AT(|
00000290  50 4f 49 2c 4c 49 4e 29  3d 30 0d 01 72 1d e7 20  |POI,LIN)=0..r.. |
000002a0  4c 49 4e 20 83 20 32 3d  30 20 8c 20 f2 64 6f 32  |LIN . 2=0 . .do2|
000002b0  20 8b 20 f2 61 63 32 0d  01 7c 07 63 3d 31 0d 01  | . .ac2..|.c=1..|
000002c0  86 1b 78 3d 78 31 3a 79  3d 79 31 3a 78 31 3d 41  |..x=x1:y=y1:x1=A|
000002d0  44 44 3a 79 31 3d 4d 49  53 0d 01 90 23 e7 20 50  |DD:y1=MIS...#. P|
000002e0  31 53 43 2b 50 32 53 43  3d 38 31 20 8c 20 e5 20  |1SC+P2SC=81 . . |
000002f0  8d 74 5a 41 20 8b 20 e5  8d 64 48 40 0d 01 9a 0a  |.tZA . ..dH@....|
00000300  fb 31 3a f2 73 63 0d 01  a4 14 f1 8a 30 2c 32 37  |.1:.sc......0,27|
00000310  29 3b c4 32 30 2c 22 20  22 29 0d 01 ae 14 f1 8a  |);.20," ")......|
00000320  30 2c 32 39 29 3b c4 32  30 2c 22 20 22 29 0d 01  |0,29);.20," ")..|
00000330  b8 06 fb 33 0d 01 c2 45  e7 20 50 31 53 43 3e 50  |...3...E. P1SC>P|
00000340  32 53 43 20 8c 20 f1 8a  30 2c 32 37 29 3b 22 57  |2SC . ..0,27);"W|
00000350  65 6c 6c 20 44 6f 6e 65  20 22 3b 50 31 24 20 8b  |ell Done ";P1$ .|
00000360  20 f1 8a 30 2c 32 37 29  3b 22 57 65 6c 6c 20 44  | ..0,27);"Well D|
00000370  6f 6e 65 20 22 3b 50 32  24 0d 01 cc 21 f1 8a 30  |one ";P2$...!..0|
00000380  2c 32 39 29 3b 22 41 6e  6f 74 68 65 72 20 47 61  |,29);"Another Ga|
00000390  6d 65 20 28 59 2f 4e 29  3f 22 0d 01 d6 08 47 24  |me (Y/N)?"....G$|
000003a0  3d be 0d 01 e0 12 e7 20  47 24 3d 22 59 22 20 8c  |=...... G$="Y" .|
000003b0  20 d8 3a f9 0d 01 ea 10  e7 20 47 24 3d 22 4e 22  | .:...... G$="N"|
000003c0  20 8c 20 e0 0d 01 f4 0c  ef 37 3a e5 8d 64 56 41  | . ......7:..dVA|
000003d0  0d 01 fe 05 e0 0d 02 08  08 dd f2 73 63 0d 02 12  |...........sc...|
000003e0  41 e7 20 50 31 53 43 3c  31 30 20 80 20 50 32 53  |A. P1SC<10 . P2S|
000003f0  43 3c 31 30 20 8c 20 f1  8a 30 2c 32 35 29 3b 50  |C<10 . ..0,25);P|
00000400  31 24 3b 8a 38 29 3b 50  31 53 43 3b 8a 31 30 29  |1$;.8);P1SC;.10)|
00000410  3b 50 32 24 3b 8a 31 39  29 3b 50 32 53 43 0d 02  |;P2$;.19);P2SC..|
00000420  1c 40 e7 50 31 53 43 3c  31 30 20 80 20 50 32 53  |.@.P1SC<10 . P2S|
00000430  43 3e 31 30 20 8c 20 f1  8a 30 2c 32 35 29 3b 50  |C>10 . ..0,25);P|
00000440  31 24 3b 8a 38 29 3b 50  31 53 43 3b 8a 31 30 29  |1$;.8);P1SC;.10)|
00000450  3b 50 32 24 3b 8a 31 38  29 3b 50 32 53 43 0d 02  |;P2$;.18);P2SC..|
00000460  26 40 e7 50 31 53 43 3e  31 30 20 80 20 50 32 53  |&@.P1SC>10 . P2S|
00000470  43 3c 31 30 20 8c 20 f1  8a 30 2c 32 35 29 3b 50  |C<10 . ..0,25);P|
00000480  31 24 3b 8a 37 29 3b 50  31 53 43 3b 8a 31 30 29  |1$;.7);P1SC;.10)|
00000490  3b 50 32 24 3b 8a 31 39  29 3b 50 32 53 43 0d 02  |;P2$;.19);P2SC..|
000004a0  30 40 e7 50 31 53 43 3e  31 30 20 80 20 50 32 53  |0@.P1SC>10 . P2S|
000004b0  43 3e 31 30 20 8c 20 f1  8a 30 2c 32 35 29 3b 50  |C>10 . ..0,25);P|
000004c0  31 24 3b 8a 37 29 3b 50  31 53 43 3b 8a 31 30 29  |1$;.7);P1SC;.10)|
000004d0  3b 50 32 24 3b 8a 31 38  29 3b 50 32 53 43 0d 02  |;P2$;.18);P2SC..|
000004e0  3a 05 e1 0d 02 44 0b dd  f2 6d 6f 76 65 69 0d 02  |:....D...movei..|
000004f0  4e 09 4d 49 53 3d 30 0d  02 58 18 e7 20 a9 28 5a  |N.MIS=0..X.. .(Z|
00000500  24 29 3c 3e 34 20 8c 20  4d 49 53 3d 31 3a e1 0d  |$)<>4 . MIS=1:..|
00000510  02 62 0d 43 24 3d c0 5a  24 2c 31 29 0d 02 6c 10  |.b.C$=.Z$,1)..l.|
00000520  43 4e 24 3d c1 5a 24 2c  32 2c 31 29 0d 02 76 0f  |CN$=.Z$,2,1)..v.|
00000530  44 24 3d c1 5a 24 2c 33  2c 31 29 0d 02 80 0e 44  |D$=.Z$,3,1)....D|
00000540  4e 24 3d c2 5a 24 2c 31  29 0d 02 8a 0d 43 4e 3d  |N$=.Z$,1)....CN=|
00000550  bb 28 43 4e 24 29 0d 02  94 0d 44 4e 3d bb 28 44  |.(CN$)....DN=.(D|
00000560  4e 24 29 0d 02 9e 0c 43  4c 3d 97 28 43 24 29 0d  |N$)....CL=.(C$).|
00000570  02 a8 0c 44 4c 3d 97 28  44 24 29 0d 02 b2 15 e7  |...DL=.(D$).....|
00000580  20 44 4c 3e 37 34 20 8c  20 4d 49 53 3d 31 3a e1  | DL>74 . MIS=1:.|
00000590  0d 02 bc 11 e7 43 4e 3d  30 20 8c 20 43 4e 3d 31  |.....CN=0 . CN=1|
000005a0  30 0d 02 c6 11 e7 44 4e  3d 30 20 8c 20 44 4e 3d  |0.....DN=0 . DN=|
000005b0  31 30 0d 02 d0 21 e7 20  43 4e 3e 44 4e 20 8c 20  |10...!. CN>DN . |
000005c0  41 3d 43 4e 3a 42 3d 44  4e 3a 44 4e 3d 41 3a 43  |A=CN:B=DN:DN=A:C|
000005d0  4e 3d 42 0d 02 da 21 e7  20 43 4c 3e 44 4c 20 8c  |N=B...!. CL>DL .|
000005e0  20 41 3d 43 4c 3a 42 3d  44 4c 3a 44 4c 3d 41 3a  | A=CL:B=DL:DL=A:|
000005f0  43 4c 3d 42 0d 02 e4 1d  e7 20 43 4e 3d 44 4e 20  |CL=B..... CN=DN |
00000600  80 20 43 4c 3d 44 4c 20  8c 20 4d 49 53 3d 31 3a  |. CL=DL . MIS=1:|
00000610  e1 0d 02 ee 34 e7 44 4c  2d 43 4c 3e 31 20 84 20  |....4.DL-CL>1 . |
00000620  44 4c 2d 43 4c 3c 30 20  84 20 44 4e 2d 43 4e 3e  |DL-CL<0 . DN-CN>|
00000630  31 20 84 20 44 4e 2d 43  4e 3c 30 20 8c 20 4d 49  |1 . DN-CN<0 . MI|
00000640  53 3d 31 3a e1 0d 02 f8  15 e7 20 43 24 3d 44 24  |S=1:...... C$=D$|
00000650  20 8c 20 f2 61 63 72 6f  73 73 0d 03 02 13 e7 20  | . .across..... |
00000660  43 4e 3d 44 4e 20 8c 20  f2 64 6f 77 6e 0d 03 0c  |CN=DN . .down...|
00000670  1f e7 20 43 4c 3c 3e 44  4c 20 80 20 43 4e 3c 3e  |.. CL<>DL . CN<>|
00000680  44 4e 20 8c 20 4d 49 53  3d 31 3a e1 0d 03 16 08  |DN . MIS=1:.....|
00000690  f2 73 71 75 0d 03 20 0e  e7 41 44 44 3d 31 20 8c  |.squ.. ..ADD=1 .|
000006a0  20 e1 0d 03 2a 19 e7 20  4d 49 53 3d 30 20 8c 20  | ...*.. MIS=0 . |
000006b0  54 55 52 4e 3d 33 2d 54  55 52 4e 0d 03 34 05 e1  |TURN=3-TURN..4..|
000006c0  0d 03 3e 0c dd f2 61 63  72 6f 73 73 0d 03 48 15  |..>...across..H.|
000006d0  4c 49 4e 3d 28 28 43 4c  2d 36 34 29 2a 32 29 2b  |LIN=((CL-64)*2)+|
000006e0  33 0d 03 52 0f 50 4f 49  3d 43 4e 2b 44 4e 2d 31  |3..R.POI=CN+DN-1|
000006f0  0d 03 5c 08 f2 61 63 32  0d 03 66 05 e1 0d 03 70  |..\..ac2..f....p|
00000700  09 dd f2 61 63 32 0d 03  7a 06 fb 63 0d 03 84 2d  |...ac2..z..c...-|
00000710  e7 20 41 54 28 50 4f 49  2c 4c 49 4e 29 3d 31 20  |. AT(POI,LIN)=1 |
00000720  8c 20 4d 49 53 3d 31 3a  e1 20 8b 20 41 54 28 50  |. MIS=1:. . AT(P|
00000730  4f 49 2c 4c 49 4e 29 3d  31 0d 03 8e 13 f1 8a 50  |OI,LIN)=1......P|
00000740  4f 49 2c 4c 49 4e 29 3b  bd 32 32 35 0d 03 98 09  |OI,LIN);.225....|
00000750  41 43 52 3d 31 0d 03 a2  05 e1 0d 03 ac 0a dd f2  |ACR=1...........|
00000760  64 6f 77 6e 0d 03 b6 15  4c 49 4e 3d 28 28 43 4c  |down....LIN=((CL|
00000770  2d 36 34 29 2a 32 29 2b  34 0d 03 c0 10 50 4f 49  |-64)*2)+4....POI|
00000780  3d 28 43 4e 2a 32 29 2d  31 0d 03 ca 08 f2 64 6f  |=(CN*2)-1.....do|
00000790  32 0d 03 d4 05 e1 0d 03  de 09 dd f2 64 6f 32 0d  |2...........do2.|
000007a0  03 e8 06 fb 63 0d 03 f2  2d e7 20 41 54 28 50 4f  |....c...-. AT(PO|
000007b0  49 2c 4c 49 4e 29 3d 31  20 8c 20 4d 49 53 3d 31  |I,LIN)=1 . MIS=1|
000007c0  3a e1 20 8b 20 41 54 28  50 4f 49 2c 4c 49 4e 29  |:. . AT(POI,LIN)|
000007d0  3d 31 0d 03 fc 13 f1 8a  50 4f 49 2c 4c 49 4e 29  |=1......POI,LIN)|
000007e0  3b bd 32 32 36 0d 04 06  09 44 4f 57 3d 31 0d 04  |;.226....DOW=1..|
000007f0  10 05 e1 0d 04 1a 09 dd  f2 73 71 75 0d 04 24 06  |.........squ..$.|
00000800  fb 31 0d 04 2e 13 e7 20  41 43 52 3d 31 20 8c 20  |.1..... ACR=1 . |
00000810  f2 73 71 75 61 0d 04 38  13 e7 20 44 4f 57 3d 31  |.squa..8.. DOW=1|
00000820  20 8c 20 f2 73 71 75 64  0d 04 42 05 e1 0d 04 4c  | . .squd..B....L|
00000830  0a dd f2 73 71 75 61 0d  04 56 13 e7 20 4c 49 4e  |...squa..V.. LIN|
00000840  3d 35 20 8c 20 e5 8d 74  52 44 0d 04 60 1f e7 20  |=5 . ..tRD..`.. |
00000850  41 54 28 50 4f 49 2d 31  2c 4c 49 4e 2d 31 29 3d  |AT(POI-1,LIN-1)=|
00000860  30 20 8c 20 e5 8d 74 52  44 0d 04 6a 20 e7 20 41  |0 . ..tRD..j . A|
00000870  54 28 50 4f 49 2b 31 2c  4c 49 4e 2d 31 29 3d 30  |T(POI+1,LIN-1)=0|
00000880  20 8c 20 e5 20 8d 74 52  44 0d 04 74 1e e7 20 41  | . . .tRD..t.. A|
00000890  54 28 50 4f 49 2c 4c 49  4e 2d 32 29 3d 30 20 8c  |T(POI,LIN-2)=0 .|
000008a0  20 e5 20 8d 74 52 44 0d  04 7e 32 e7 20 53 51 55  | . .tRD..~2. SQU|
000008b0  28 50 4f 49 2c 4c 49 4e  2d 31 29 3d 30 20 8c 20  |(POI,LIN-1)=0 . |
000008c0  53 51 55 28 50 4f 49 2c  4c 49 4e 2d 31 29 3d 31  |SQU(POI,LIN-1)=1|
000008d0  20 8b 20 e5 20 8d 74 52  44 0d 04 88 58 e7 20 54  | . . .tRD...X. T|
000008e0  55 52 4e 3d 31 20 8c 20  f1 8a 50 4f 49 2c 4c 49  |URN=1 . ..POI,LI|
000008f0  4e 2d 31 29 3b 50 31 53  24 3a 50 31 53 43 3d 50  |N-1);P1S$:P1SC=P|
00000900  31 53 43 2b 31 3a 41 44  44 3d 31 20 8b 20 f1 8a  |1SC+1:ADD=1 . ..|
00000910  50 4f 49 2c 4c 49 4e 2d  31 29 3b 50 32 53 24 3a  |POI,LIN-1);P2S$:|
00000920  50 32 53 43 3d 50 32 53  43 2b 31 3a 41 44 44 3d  |P2SC=P2SC+1:ADD=|
00000930  31 0d 04 92 10 e7 20 4c  49 4e 3d 32 33 20 8c 20  |1..... LIN=23 . |
00000940  e1 0d 04 9c 1b e7 20 41  54 28 50 4f 49 2d 31 2c  |...... AT(POI-1,|
00000950  4c 49 4e 2b 31 29 3d 30  20 8c 20 e1 0d 04 a6 1b  |LIN+1)=0 . .....|
00000960  e7 20 41 54 28 50 4f 49  2b 31 2c 4c 49 4e 2b 31  |. AT(POI+1,LIN+1|
00000970  29 3d 30 20 8c 20 e1 0d  04 b0 19 e7 20 41 54 28  |)=0 . ...... AT(|
00000980  50 4f 49 2c 4c 49 4e 2b  32 29 3d 30 20 8c 20 e1  |POI,LIN+2)=0 . .|
00000990  0d 04 ba 31 e7 20 53 51  55 28 50 4f 49 2c 4c 49  |...1. SQU(POI,LI|
000009a0  4e 2b 31 29 3d 30 20 8c  20 53 51 55 28 50 4f 49  |N+1)=0 . SQU(POI|
000009b0  2c 4c 49 4e 2b 31 29 3d  31 20 8b 20 e5 8d 64 4e  |,LIN+1)=1 . ..dN|
000009c0  44 0d 04 c4 58 e7 20 54  55 52 4e 3d 31 20 8c 20  |D...X. TURN=1 . |
000009d0  f1 8a 50 4f 49 2c 4c 49  4e 2b 31 29 3b 50 31 53  |..POI,LIN+1);P1S|
000009e0  24 3a 50 31 53 43 3d 50  31 53 43 2b 31 3a 41 44  |$:P1SC=P1SC+1:AD|
000009f0  44 3d 31 20 8b 20 f1 8a  50 4f 49 2c 4c 49 4e 2b  |D=1 . ..POI,LIN+|
00000a00  31 29 3b 50 32 53 24 3a  50 32 53 43 3d 50 32 53  |1);P2S$:P2SC=P2S|
00000a10  43 2b 31 3a 41 44 44 3d  31 0d 04 ce 05 e1 0d 04  |C+1:ADD=1.......|
00000a20  d8 0a dd f2 73 71 75 64  0d 04 e2 14 e7 20 50 4f  |....squd..... PO|
00000a30  49 3d 31 39 20 8c 20 e5  8d 54 5e 45 0d 04 ec 20  |I=19 . ..T^E... |
00000a40  e7 20 41 54 28 50 4f 49  2b 31 2c 4c 49 4e 2d 31  |. AT(POI+1,LIN-1|
00000a50  29 3d 30 20 8c 20 e5 20  8d 54 5e 45 0d 04 f6 20  |)=0 . . .T^E... |
00000a60  e7 20 41 54 28 50 4f 49  2b 31 2c 4c 49 4e 2b 31  |. AT(POI+1,LIN+1|
00000a70  29 3d 30 20 8c 20 e5 20  8d 54 5e 45 0d 05 00 1e  |)=0 . . .T^E....|
00000a80  e7 20 41 54 28 50 4f 49  2b 32 2c 4c 49 4e 29 3d  |. AT(POI+2,LIN)=|
00000a90  30 20 8c 20 e5 20 8d 54  5e 45 0d 05 0a 31 e7 20  |0 . . .T^E...1. |
00000aa0  53 51 55 28 50 4f 49 2b  31 2c 4c 49 4e 29 3d 30  |SQU(POI+1,LIN)=0|
00000ab0  20 8c 20 53 51 55 28 50  4f 49 2b 31 2c 4c 49 4e  | . SQU(POI+1,LIN|
00000ac0  29 3d 31 20 8b 20 e5 8d  54 5e 45 0d 05 14 58 e7  |)=1 . ..T^E...X.|
00000ad0  20 54 55 52 4e 3d 31 20  8c 20 f1 8a 50 4f 49 2b  | TURN=1 . ..POI+|
00000ae0  31 2c 4c 49 4e 29 3b 50  31 53 24 3a 50 31 53 43  |1,LIN);P1S$:P1SC|
00000af0  3d 50 31 53 43 2b 31 3a  41 44 44 3d 31 20 8b 20  |=P1SC+1:ADD=1 . |
00000b00  f1 8a 50 4f 49 2b 31 2c  4c 49 4e 29 3b 50 32 53  |..POI+1,LIN);P2S|
00000b10  24 3a 50 32 53 43 3d 50  32 53 43 2b 31 3a 41 44  |$:P2SC=P2SC+1:AD|
00000b20  44 3d 31 0d 05 1e 0f e7  20 50 4f 49 3d 31 20 8c  |D=1..... POI=1 .|
00000b30  20 e1 0d 05 28 1b e7 20  41 54 28 50 4f 49 2d 31  | ...(.. AT(POI-1|
00000b40  2c 4c 49 4e 2d 31 29 3d  30 20 8c 20 e1 0d 05 32  |,LIN-1)=0 . ...2|
00000b50  1b e7 20 41 54 28 50 4f  49 2d 31 2c 4c 49 4e 2b  |.. AT(POI-1,LIN+|
00000b60  31 29 3d 30 20 8c 20 e1  0d 05 3c 19 e7 20 41 54  |1)=0 . ...<.. AT|
00000b70  28 50 4f 49 2d 32 2c 4c  49 4e 29 3d 30 20 8c 20  |(POI-2,LIN)=0 . |
00000b80  e1 0d 05 46 2d e7 20 53  51 55 28 50 4f 49 2d 31  |...F-. SQU(POI-1|
00000b90  2c 4c 49 4e 29 3d 30 20  8c 20 53 51 55 28 50 4f  |,LIN)=0 . SQU(PO|
00000ba0  49 2d 31 2c 4c 49 4e 29  3d 31 20 8b 20 e1 0d 05  |I-1,LIN)=1 . ...|
00000bb0  50 58 e7 20 54 55 52 4e  3d 31 20 8c 20 f1 8a 50  |PX. TURN=1 . ..P|
00000bc0  4f 49 2d 31 2c 4c 49 4e  29 3b 50 31 53 24 3a 50  |OI-1,LIN);P1S$:P|
00000bd0  31 53 43 3d 50 31 53 43  2b 31 3a 41 44 44 3d 31  |1SC=P1SC+1:ADD=1|
00000be0  20 8b 20 f1 8a 50 4f 49  2d 31 2c 4c 49 4e 29 3b  | . ..POI-1,LIN);|
00000bf0  50 32 53 24 3a 50 32 53  43 3d 50 32 53 43 2b 31  |P2S$:P2SC=P2SC+1|
00000c00  3a 41 44 44 3d 31 0d 05  5a 05 e1 0d 05 64 0b dd  |:ADD=1..Z....d..|
00000c10  f2 73 74 61 72 74 0d 05  6e 1e f1 8a 30 2c 32 37  |.start..n...0,27|
00000c20  29 3b 22 31 20 6f 72 20  32 20 70 6c 61 79 65 72  |);"1 or 2 player|
00000c30  73 3f 22 3b 0d 05 78 08  47 24 3d be 0d 05 82 22  |s?";..x.G$=...."|
00000c40  e7 20 47 24 3c 3e 22 31  22 20 80 20 47 24 3c 3e  |. G$<>"1" . G$<>|
00000c50  22 32 22 20 8c 20 ef 37  3a e5 8d 44 78 45 0d 05  |"2" . .7:..DxE..|
00000c60  8c 06 fb 32 0d 05 96 6f  e7 47 24 3d 22 31 22 20  |...2...o.G$="1" |
00000c70  8c 20 f1 8a 30 2c 32 37  29 3b 22 45 6e 74 65 72  |. ..0,27);"Enter|
00000c80  20 4e 61 6d 65 3a 20 22  3b 3a f1 8a 31 32 2c 32  | Name: ";:..12,2|
00000c90  37 29 3b c4 39 2c 22 20  22 29 3a fb 33 3a e8 8a  |7);.9," "):.3:..|
00000ca0  31 32 2c 32 37 29 50 31  24 3a 50 31 53 24 3d c0  |12,27)P1$:P1S$=.|
00000cb0  50 31 24 2c 31 29 3a 50  32 24 3d 22 43 6f 6d 70  |P1$,1):P2$="Comp|
00000cc0  22 3a 50 32 53 24 3d 22  58 22 3a fb 32 3a e5 8d  |":P2S$="X":.2:..|
00000cd0  64 5c 45 0d 05 a0 4a e7  47 24 3d 22 32 22 20 8c  |d\E...J.G$="2" .|
00000ce0  20 f1 8a 30 2c 32 37 29  3b 22 45 6e 74 65 72 20  | ..0,27);"Enter |
00000cf0  50 6c 61 79 65 72 20 31  20 4e 61 6d 65 22 3a fb  |Player 1 Name":.|
00000d00  33 3a e8 27 22 22 50 31  24 3a f1 8a 30 2c 32 39  |3:.'""P1$:..0,29|
00000d10  29 3b c4 32 30 2c 22 20  22 29 3a fb 32 0d 05 aa  |);.20," "):.2...|
00000d20  18 e7 a9 28 50 31 24 29  3e 36 20 8c 20 ef 37 3a  |...(P1$)>6 . .7:|
00000d30  e5 8d 74 60 45 0d 05 b4  3e f1 8a 30 2c 32 37 29  |..t`E...>..0,27)|
00000d40  3b 22 45 6e 74 65 72 20  50 6c 61 79 65 72 20 32  |;"Enter Player 2|
00000d50  20 4e 61 6d 65 22 3a fb  33 3a e8 27 22 22 50 32  | Name":.3:.'""P2|
00000d60  24 3a f1 8a 30 2c 32 39  29 3b c4 32 30 2c 22 20  |$:..0,29);.20," |
00000d70  22 29 20 0d 05 be 18 e7  a9 28 50 32 24 29 3e 36  |") ......(P2$)>6|
00000d80  20 8c 20 ef 37 3a e5 8d  74 74 45 0d 05 c8 39 50  | . .7:..ttE...9P|
00000d90  31 53 24 3d c0 50 31 24  2c 31 29 3a e7 20 c0 50  |1S$=.P1$,1):. .P|
00000da0  32 24 2c 31 29 3d 50 31  53 24 20 8c 20 50 32 53  |2$,1)=P1S$ . P2S|
00000db0  24 3d 22 58 22 20 8b 20  50 32 53 24 3d c0 50 32  |$="X" . P2S$=.P2|
00000dc0  24 2c 31 29 0d 05 d2 14  e7 47 24 3d 22 32 22 20  |$,1).....G$="2" |
00000dd0  8c 20 e5 20 8d 64 66 45  0d 05 dc 19 e7 20 a9 28  |. . .dfE..... .(|
00000de0  50 31 24 29 3e 36 20 8c  20 ef 37 3a e5 8d 74 56  |P1$)>6 . .7:..tV|
00000df0  45 0d 05 e6 06 fb 32 0d  05 f0 14 f1 8a 30 2c 32  |E.....2......0,2|
00000e00  39 29 3b c4 32 30 2c 22  20 22 29 0d 05 fa 22 f1  |9);.20," ")...".|
00000e10  8a 30 2c 32 37 29 3b 22  57 68 6f 20 67 6f 65 73  |.0,27);"Who goes|
00000e20  20 66 69 72 73 74 20 28  31 2f 32 29 22 0d 06 04  | first (1/2)"...|
00000e30  0a 54 55 52 4e 3d a5 0d  06 0e 10 54 55 52 4e 3d  |.TURN=.....TURN=|
00000e40  54 55 52 4e 2d 34 38 0d  06 18 1f e7 54 55 52 4e  |TURN-48.....TURN|
00000e50  3c 31 20 84 20 54 55 52  4e 3e 32 20 8c 20 ef 37  |<1 . TURN>2 . .7|
00000e60  3a e5 8d 54 44 46 0d 06  22 11 50 31 53 43 3d 30  |:..TDF..".P1SC=0|
00000e70  3a 50 32 53 43 3d 30 0d  06 2c 05 e1 0d 06 36 0a  |:P2SC=0..,....6.|
00000e80  dd f2 69 6e 69 74 0d 06  40 0a ee 85 eb 36 3a e0  |..init..@....6:.|
00000e90  0d 06 4a 2b ef 32 33 2c  32 32 34 2c 32 35 35 2c  |..J+.23,224,255,|
00000ea0  32 35 35 2c 32 35 35 2c  32 35 35 2c 32 35 35 2c  |255,255,255,255,|
00000eb0  32 35 35 2c 32 35 35 2c  32 35 35 0d 06 54 1f ef  |255,255,255..T..|
00000ec0  32 33 2c 32 32 35 2c 30  2c 30 2c 30 2c 32 35 35  |23,225,0,0,0,255|
00000ed0  2c 32 35 35 2c 30 2c 30  2c 30 0d 06 5e 23 ef 32  |,255,0,0,0..^#.2|
00000ee0  33 2c 32 32 36 2c 32 34  2c 32 34 2c 32 34 2c 32  |3,226,24,24,24,2|
00000ef0  34 2c 32 34 2c 32 34 2c  32 34 2c 32 34 0d 06 68  |4,24,24,24,24..h|
00000f00  0e ef 31 39 2c 32 2c 36  3b 30 3b 0d 06 72 19 de  |..19,2,6;0;..r..|
00000f10  41 54 28 32 35 2c 32 35  29 2c 53 51 55 28 32 35  |AT(25,25),SQU(25|
00000f20  2c 32 35 29 0d 06 7c 19  63 3d 31 3a 78 3d 32 3a  |,25)..|.c=1:x=2:|
00000f30  79 3d 35 3a 78 31 3d 32  3a 79 31 3d 35 0d 06 86  |y=5:x1=2:y1=5...|
00000f40  05 e1 0d 06 90 0a dd f2  63 6f 6d 70 0d 06 9a 13  |........comp....|
00000f50  ef 32 33 3b 38 32 30 32  3b 30 3b 30 3b 30 3b 0d  |.23;8202;0;0;0;.|
00000f60  06 a4 0a 73 63 61 6e 3d  30 0d 06 ae 18 e7 20 73  |...scan=0..... s|
00000f70  63 61 6e 3d 31 20 8c 20  78 3d 78 31 3a 79 3d 79  |can=1 . x=x1:y=y|
00000f80  31 0d 06 b8 0f 50 4f 49  3d 30 3a 4c 49 4e 3d 30  |1....POI=0:LIN=0|
00000f90  0d 06 c2 15 e7 20 79 20  83 20 32 3d 30 20 8c 20  |..... y . 2=0 . |
00000fa0  e5 8d 64 6a 46 0d 06 cc  1b e7 20 79 3d 32 33 20  |..djF..... y=23 |
00000fb0  8c 20 e5 8d 64 60 46 20  8b 20 f2 63 68 65 63 6b  |. ..d`F . .check|
00000fc0  0d 06 d6 1b e7 20 50 4f  49 3e 30 20 80 20 4c 49  |..... POI>0 . LI|
00000fd0  4e 3e 30 20 8c 20 e5 8d  74 54 47 0d 06 e0 26 e7  |N>0 . ..tTG...&.|
00000fe0  20 79 3d 35 20 8c 20 e5  8d 54 5c 47 20 8b 20 79  | y=5 . ..T\G . y|
00000ff0  3d 79 2d 32 3a f2 63 68  65 63 6b 3a e5 8d 54 52  |=y-2:.check:..TR|
00001000  47 0d 06 ea 32 e7 20 78  3d 31 20 8c 20 78 3d 78  |G...2. x=1 . x=x|
00001010  2b 31 3a 79 3d 79 2d 31  3a e5 8d 54 48 47 20 8b  |+1:y=y-1:..THG .|
00001020  20 78 3d 78 2d 31 3a 79  3d 79 2d 31 3a f2 63 68  | x=x-1:y=y-1:.ch|
00001030  65 63 6b 0d 06 f4 1b e7  20 50 4f 49 3e 30 20 80  |eck..... POI>0 .|
00001040  20 4c 49 4e 3e 30 20 8c  20 e5 8d 74 54 47 0d 06  | LIN>0 . ..tTG..|
00001050  fe 09 78 3d 78 2b 32 0d  07 08 0a f2 63 68 65 63  |..x=x+2.....chec|
00001060  6b 0d 07 12 1b e7 20 50  4f 49 3e 30 20 80 20 4c  |k..... POI>0 . L|
00001070  49 4e 3e 30 20 8c 20 e5  8d 74 54 47 0d 07 1c 1b  |IN>0 . ..tTG....|
00001080  e7 20 73 63 61 6e 3d 30  20 8c 20 73 63 61 6e 3d  |. scan=0 . scan=|
00001090  31 3a e5 8d 74 6e 46 0d  07 26 11 e7 41 4c 4c 3d  |1:..tnF..&..ALL=|
000010a0  31 20 8c e5 8d 44 76 47  0d 07 30 0d 61 3d b3 28  |1 ...DvG..0.a=.(|
000010b0  31 39 29 2b 33 0d 07 3a  0f 79 3d 61 3a f5 3a 79  |19)+3..:.y=a:.:y|
000010c0  3d 79 2b 31 0d 07 44 1d  e7 20 79 20 83 20 32 3d  |=y+1..D.. y . 2=|
000010d0  30 20 8c 20 f2 63 64 6f  77 20 8b 20 f2 63 61 63  |0 . .cdow . .cac|
000010e0  72 0d 07 4e 0f e7 79 3d  32 33 20 8c 20 79 3d 34  |r..N..y=23 . y=4|
000010f0  0d 07 58 10 fd 79 3d 61  20 84 20 50 4f 49 3e 30  |..X..y=a . POI>0|
00001100  0d 07 62 1b e7 20 50 4f  49 3e 30 20 80 20 4c 49  |..b.. POI>0 . LI|
00001110  4e 3e 30 20 8c 20 e5 8d  74 54 47 0d 07 6c 09 41  |N>0 . ..tTG..l.A|
00001120  4c 4c 3d 31 0d 07 76 0b  e3 79 3d 35 b8 32 33 0d  |LL=1..v..y=5.23.|
00001130  07 80 1f e7 20 79 20 83  20 32 3d 30 20 8c 20 f2  |.... y . 2=0 . .|
00001140  63 64 6f 77 33 20 8b 20  f2 63 61 63 72 33 0d 07  |cdow3 . .cacr3..|
00001150  8a 05 ed 0d 07 94 1d e7  20 4c 49 4e 20 83 20 32  |........ LIN . 2|
00001160  3d 30 20 8c 20 f2 64 6f  32 20 8b 20 f2 61 63 32  |=0 . .do2 . .ac2|
00001170  0d 07 9e 08 f2 73 71 75  0d 07 a8 0f 78 3d 50 4f  |.....squ....x=PO|
00001180  49 3a 79 3d 4c 49 4e 0d  07 b2 0f e7 20 41 44 44  |I:y=LIN..... ADD|
00001190  3d 31 20 8c 20 e1 0d 07  bc 0f 54 55 52 4e 3d 33  |=1 . .....TURN=3|
000011a0  2d 54 55 52 4e 0d 07 c6  05 e1 0d 07 d0 0b dd f2  |-TURN...........|
000011b0  63 68 65 63 6b 0d 07 da  51 e7 20 41 54 28 78 2c  |check...Q. AT(x,|
000011c0  79 29 3d 31 20 80 20 41  54 28 78 2c 79 2b 32 29  |y)=1 . AT(x,y+2)|
000011d0  3d 31 20 80 20 41 54 28  78 2d 31 2c 79 2b 31 29  |=1 . AT(x-1,y+1)|
000011e0  3d 31 20 80 20 41 54 28  78 2b 31 2c 79 2b 31 29  |=1 . AT(x+1,y+1)|
000011f0  3d 30 20 8c 20 50 4f 49  3d 78 2b 31 3a 4c 49 4e  |=0 . POI=x+1:LIN|
00001200  3d 79 2b 31 3a e1 0d 07  e4 51 e7 20 41 54 28 78  |=y+1:....Q. AT(x|
00001210  2c 79 29 3d 31 20 80 20  41 54 28 78 2c 79 2b 32  |,y)=1 . AT(x,y+2|
00001220  29 3d 31 20 80 20 41 54  28 78 2d 31 2c 79 2b 31  |)=1 . AT(x-1,y+1|
00001230  29 3d 30 20 80 20 41 54  28 78 2b 31 2c 79 2b 31  |)=0 . AT(x+1,y+1|
00001240  29 3d 31 20 8c 20 50 4f  49 3d 78 2d 31 3a 4c 49  |)=1 . POI=x-1:LI|
00001250  4e 3d 79 2b 31 3a e1 0d  07 ee 4f e7 20 41 54 28  |N=y+1:....O. AT(|
00001260  78 2c 79 29 3d 31 20 80  20 41 54 28 78 2c 79 2b  |x,y)=1 . AT(x,y+|
00001270  32 29 3d 30 20 80 20 41  54 28 78 2d 31 2c 79 2b  |2)=0 . AT(x-1,y+|
00001280  31 29 3d 31 20 80 20 41  54 28 78 2b 31 2c 79 2b  |1)=1 . AT(x+1,y+|
00001290  31 29 3d 31 20 8c 20 50  4f 49 3d 78 3a 4c 49 4e  |1)=1 . POI=x:LIN|
000012a0  3d 79 2b 32 3a e1 0d 07  f8 4d e7 20 41 54 28 78  |=y+2:....M. AT(x|
000012b0  2c 79 29 3d 30 20 80 20  41 54 28 78 2c 79 2b 32  |,y)=0 . AT(x,y+2|
000012c0  29 3d 31 20 80 20 41 54  28 78 2d 31 2c 79 2b 31  |)=1 . AT(x-1,y+1|
000012d0  29 3d 31 20 80 20 41 54  28 78 2b 31 2c 79 2b 31  |)=1 . AT(x+1,y+1|
000012e0  29 3d 31 20 8c 20 50 4f  49 3d 78 3a 4c 49 4e 3d  |)=1 . POI=x:LIN=|
000012f0  79 3a e1 0d 08 02 05 e1  0d 08 0c 0b dd f2 63 64  |y:............cd|
00001300  6f 77 32 0d 08 16 22 e7  20 78 3d 31 20 8c 20 e5  |ow2...". x=1 . .|
00001310  8d 54 6a 48 20 8b 20 e7  20 78 3d 31 39 20 8c 20  |.TjH . . x=19 . |
00001320  e5 8d 54 74 48 0d 08 20  6f e7 20 41 54 28 78 2c  |..TtH.. o. AT(x,|
00001330  79 29 3d 30 20 80 20 41  54 28 78 2b 31 2c 79 2b  |y)=0 . AT(x+1,y+|
00001340  31 29 2b 41 54 28 78 2b  31 2c 79 2d 31 29 2b 41  |1)+AT(x+1,y-1)+A|
00001350  54 28 78 2b 32 2c 79 29  3c 32 20 80 20 41 54 28  |T(x+2,y)<2 . AT(|
00001360  78 2d 32 2c 79 29 2b 41  54 28 78 2d 31 2c 79 2b  |x-2,y)+AT(x-1,y+|
00001370  31 29 2b 41 54 28 78 2d  31 2c 79 2d 31 29 3c 32  |1)+AT(x-1,y-1)<2|
00001380  20 8c 20 50 4f 49 3d 78  3a 4c 49 4e 3d 79 3a e1  | . POI=x:LIN=y:.|
00001390  20 8b 20 e1 0d 08 2a 49  e7 20 41 54 28 78 2c 79  | . ...*I. AT(x,y|
000013a0  29 3d 30 20 80 20 41 54  28 78 2b 31 2c 79 2b 31  |)=0 . AT(x+1,y+1|
000013b0  29 2b 41 54 28 78 2b 31  2c 79 2d 31 29 2b 41 54  |)+AT(x+1,y-1)+AT|
000013c0  28 78 2b 32 2c 79 29 3c  32 20 8c 20 50 4f 49 3d  |(x+2,y)<2 . POI=|
000013d0  78 3a 4c 49 4e 3d 79 3a  e1 20 8b 20 e1 0d 08 34  |x:LIN=y:. . ...4|
000013e0  45 e7 20 41 54 28 78 2c  79 29 3d 30 20 80 20 41  |E. AT(x,y)=0 . A|
000013f0  54 28 78 2d 32 2c 79 29  2b 41 54 28 78 2d 31 2c  |T(x-2,y)+AT(x-1,|
00001400  79 2b 31 29 2b 41 54 28  78 2d 31 2c 79 2d 31 29  |y+1)+AT(x-1,y-1)|
00001410  3c 32 20 8c 20 50 4f 49  3d 78 3a 4c 49 4e 3d 79  |<2 . POI=x:LIN=y|
00001420  3a e1 0d 08 3e 05 e1 0d  08 48 0a dd f2 63 64 6f  |:...>....H...cdo|
00001430  77 0d 08 52 11 e3 78 3d  31 20 b8 20 31 39 20 88  |w..R..x=1 . 19 .|
00001440  20 32 0d 08 5c 18 e7 20  41 54 28 78 2c 79 29 3d  | 2..\.. AT(x,y)=|
00001450  30 20 8c 20 f2 63 64 6f  77 32 0d 08 66 29 e7 20  |0 . .cdow2..f). |
00001460  50 4f 49 3e 30 20 80 20  4c 49 4e 3e 30 20 80 20  |POI>0 . LIN>0 . |
00001470  b3 28 31 30 29 3d 31 30  20 8c 20 78 3d 31 39 3a  |.(10)=10 . x=19:|
00001480  ed 3a e1 0d 08 70 05 ed  0d 08 7a 05 e1 0d 08 84  |.:...p....z.....|
00001490  0b dd f2 63 61 63 72 32  0d 08 8e 22 e7 20 79 3d  |...cacr2...". y=|
000014a0  35 20 8c 20 e5 8d 74 62  48 20 8b 20 e7 20 79 3d  |5 . ..tbH . . y=|
000014b0  32 33 20 8c 20 e5 8d 74  6c 48 0d 08 98 6f e7 20  |23 . ..tlH...o. |
000014c0  41 54 28 78 2c 79 29 3d  30 20 80 20 41 54 28 78  |AT(x,y)=0 . AT(x|
000014d0  2d 31 2c 79 2b 31 29 2b  41 54 28 78 2b 31 2c 79  |-1,y+1)+AT(x+1,y|
000014e0  2b 31 29 2b 41 54 28 78  2c 79 2b 32 29 3c 32 20  |+1)+AT(x,y+2)<2 |
000014f0  80 20 41 54 28 78 2d 31  2c 79 2d 31 29 2b 41 54  |. AT(x-1,y-1)+AT|
00001500  28 78 2b 31 2c 79 2d 31  29 2b 41 54 28 78 2c 79  |(x+1,y-1)+AT(x,y|
00001510  2d 32 29 3c 32 20 8c 20  50 4f 49 3d 78 3a 4c 49  |-2)<2 . POI=x:LI|
00001520  4e 3d 79 3a e1 20 8b 20  e1 0d 08 a2 49 e7 20 41  |N=y:. . ....I. A|
00001530  54 28 78 2c 79 29 3d 30  20 80 20 41 54 28 78 2d  |T(x,y)=0 . AT(x-|
00001540  31 2c 79 2b 31 29 2b 41  54 28 78 2b 31 2c 79 2b  |1,y+1)+AT(x+1,y+|
00001550  31 29 2b 41 54 28 78 2c  79 2b 32 29 3c 32 20 8c  |1)+AT(x,y+2)<2 .|
00001560  20 50 4f 49 3d 78 3a 4c  49 4e 3d 79 3a e1 20 8b  | POI=x:LIN=y:. .|
00001570  20 e1 0d 08 ac 45 e7 20  41 54 28 78 2c 79 29 3d  | ....E. AT(x,y)=|
00001580  30 20 80 20 41 54 28 78  2d 31 2c 79 2d 31 29 2b  |0 . AT(x-1,y-1)+|
00001590  41 54 28 78 2b 31 2c 79  2d 31 29 2b 41 54 28 78  |AT(x+1,y-1)+AT(x|
000015a0  2c 79 2d 32 29 3c 32 20  8c 20 50 4f 49 3d 78 3a  |,y-2)<2 . POI=x:|
000015b0  4c 49 4e 3d 79 3a e1 0d  08 b6 05 e1 0d 08 c0 0a  |LIN=y:..........|
000015c0  dd f2 63 61 63 72 0d 08  ca 12 e3 20 78 3d 32 20  |..cacr..... x=2 |
000015d0  b8 20 31 38 20 88 20 32  0d 08 d4 18 e7 20 41 54  |. 18 . 2..... AT|
000015e0  28 78 2c 79 29 3d 30 20  8c 20 f2 63 61 63 72 32  |(x,y)=0 . .cacr2|
000015f0  0d 08 de 29 e7 20 50 4f  49 3e 30 20 80 20 4c 49  |...). POI>0 . LI|
00001600  4e 3e 30 20 80 20 b3 28  31 30 29 3d 31 30 20 8c  |N>0 . .(10)=10 .|
00001610  20 78 3d 31 38 3a ed 3a  e1 0d 08 e8 05 ed 0d 08  | x=18:.:........|
00001620  f2 05 e1 0d 08 fc 0b dd  f2 63 64 6f 77 33 0d 09  |.........cdow3..|
00001630  06 12 e3 20 78 3d 31 20  b8 20 31 39 20 88 20 32  |... x=1 . 19 . 2|
00001640  0d 09 10 2b e7 20 41 54  28 78 2c 79 29 3d 30 20  |...+. AT(x,y)=0 |
00001650  8c 20 50 4f 49 3d 78 3a  4c 49 4e 3d 79 3a 78 3d  |. POI=x:LIN=y:x=|
00001660  31 39 3a 79 3d 32 33 3a  ed 3a e1 0d 09 1a 05 ed  |19:y=23:.:......|
00001670  0d 09 24 05 e1 0d 09 2e  0b dd f2 63 61 63 72 33  |..$........cacr3|
00001680  0d 09 38 12 e3 20 78 3d  32 20 b8 20 31 38 20 88  |..8.. x=2 . 18 .|
00001690  20 32 0d 09 42 2b e7 20  41 54 28 78 2c 79 29 3d  | 2..B+. AT(x,y)=|
000016a0  30 20 8c 20 50 4f 49 3d  78 3a 4c 49 4e 3d 79 3a  |0 . POI=x:LIN=y:|
000016b0  78 3d 31 38 3a 79 3d 32  33 3a ed 3a e1 0d 09 4c  |x=18:y=23:.:...L|
000016c0  05 ed 0d 09 56 05 e1 0d  ff                       |....V....|
000016c9
G/SQU.m0
G/SQU.m1
G/SQU.m2
G/SQU.m4
G/SQU.m5