Home » Personal collection » Acorn ADFS disks » Electron » Digital_pictures_2.ADF » GAMES1/OTHELLO

GAMES1/OTHELLO

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 » Digital_pictures_2.ADF
Filename: GAMES1/OTHELLO
Read OK:
File size: 1A2F bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
    5ON ERROR GOTO2070
   20MODE6
   30DIM position%(100)
   40PROCcircles
   50PROCinstructions
   60REPEAT:PROCinit
   70MODE1
   80PROCsetupboard
   90PROCfindplayers
  100REPEAT
  110REPEAT:PROCgo
  120PROCcompute
  130PROClookatgo
  140UNTIL illegal%=2
  150PROCupdatescore
  160turn%=turn%+1:UNTIL turn%=60
  170PROCwin:UNTIL wait$<>" "
  200MODE6:END
  210DEFPROCinit
  220FOR pos%=1TO100:position%(pos%)=0:NEXT
  230turn%=0:value%=1:comp%=0:go%=0:edge%=0:miss%=1
  240ENDPROC
  250DEFPROCsetupboard
  260COLOUR1:VDU28,0,31,10,0,23;8202;0;0;0;
  270VDU4
  280VDU19,2,0,0,0,0,5:GCOL0,2
  290MOVE352,960:MOVE352,128:PLOT85,1184,960:PLOT85,1184,128
  300MOVE416,96:PRINT"A  B  C  D  E  F  G  H"
  310FOR Y%=160 TO 928 STEP96
  320GCOL0,0:MOVE384,Y%:DRAW1152,Y%:MOVE1216,Y%+64:GCOL0,2:
  330IF Y%=928THEN 340 ELSE PRINT;(Y%-160)/96+1 
  340NEXT
  350GCOL0,0:FOR X%=384 TO 1152 STEP96
  360MOVE X%,160:DRAW X%,928:NEXT
  370VDU19,2,2,0,0,0
  390RESTORE 2040
  400FOR position%=1TO4:READ pos%,val%,C%:position%(pos%)=val%:GCOL0,C%:PROCfindrowandcol(pos%):PROCcounter:NEXT
  410ENDPROC
  420DEFPROCfindplayers
  430 VDU4:PRINTTAB(0,10)"Do you wantto play thecomputer ?"'" (Y or N)"
  450REPEAT:wait$=GET$:UNTIL INSTR("YyNn",wait$)>0:SOUND&11,2,40,4:PROCclear(10)
  460IF wait$<>"Y" AND wait$<>"y" THEN ENDPROC
  470PRINTTAB(0,10)"Do you wanta  hard  oreasy game?"'" (H or E)"
  490 REPEAT:wait$=GET$:UNTIL INSTR("HhEe",wait$)>0:SOUND&11,2,40,4:PROCclear(10):IF wait$="H" OR wait$="h" THEN miss%=0
  500go%=1:PRINTTAB(0,10)"Are you going  first? (Y or N)"
  520REPEAT:wait$=GET$:UNTIL INSTR("YyNn",wait$)>0:SOUND&11,2,40,4:PROCclear(10)
  530IF wait$="Y" OR wait$="y" THEN ENDPROC
  540go%=2:ENDPROC
  550DEFPROCcircles
  560VDU23,224,0,0,0,3,7,15,31,31,23,225,0,0,126,255,255,255,255,255,23,226,0,0,0,192,224,240,248,248,23,227,31,63,63,63,63,63,63,31
  570VDU23,228,255,255,255,255,255,255,255,255,23,229,248,252,252,252,252,252,252,248,23,230,31,31,15,7,3,0,0,0,23,231,255,255,255,255,255,126,0,0
  580VDU23,232,248,248,240,224,192,0,0,0
  590C1$=CHR$224+CHR$225+CHR$226:C2$=CHR$227+CHR$228+CHR$229:C3$=CHR$230+CHR$231+CHR$232
  600circle$=C1$+CHR$8+CHR$8+CHR$8+CHR$10+C2$+CHR$8+CHR$8+CHR$8+CHR$10+C3$
  610ENVELOPE1,4,0,0,0,0,0,0,121,-10,-5,-2,120,120:ENVELOPE2,16,4,-8,-4,16,16,32,64,64,-64,-64,128,0
  620ENDPROC
  630DEFPROCclear(tab%):PRINTTAB(0,tab%)SPC(42):ENDPROC
  640DEFPROCgo
  650VDU4:pass%=0:COLOUR2
  660IF go%<2 THEN 690
  670PROCclear(4):go%=1:PRINTTAB(0,4)"Thinking ":IF value%=1THEN value%=2:GCOL0,0:ELSE GCOL0,3:value%=1
  680ENDPROC
  690IF value%=1 THEN PRINTTAB(0,4)"Blacks go:":value%=2:GCOL0,0:ELSEPRINTTAB(0,4)"Whites go:":GCOL0,3:value%=1
  700IF go%>0THEN go%=2
  710REPEAT:REPEAT:PROCclear(5):PRINTTAB(0,5)"Column? "; 
  720col%=GETAND223:UNTIL(col%>64ANDcol%<73)ORcol%=80:PRINTCHR$(col%):col%=col%-64:IFcol%=16THEN 750
  730PRINTTAB(0,6)"Row? ";
  740row%=GET:row%=row%-48:PRINT;row%
  750UNTIL (row%>0ANDrow%<9)OR col%=16
  760VDU5:pos%=col%*10+row%+1
  770ENDPROC
  780DEFPROCcounter
  790SOUND&11,1,94,12
  800VDU5:MOVE291+96*col%,159+96*row%:PRINT;circle$ 
  810TIME=0:REPEAT UNTIL TIME>50
  820 ENDPROC 
  830DEFPROCillegal
  840VDU4:SOUND&10,2,70,25
  850PROCclear(5)
  860PRINTTAB(0,5)"Illegal"'" move"
  870IF value%=1THEN value%=2 ELSE value%=1
  880IF go%=2THENgo%=1
  890TIME=0:REPEAT UNTIL TIME>200
  900ENDPROC
  910DEFPROCweigh
  920weight%=0:IF position%(pos%)>0ENDPROC 
  930RESTORE2050
  940FOR B%=1TO8:READC%:A%=pos%
  950IF edge%<>0THENC%=edge%:B%=8
  960REPEAT:IF A%=pos%THEN 1010
  970IF position%(A%)=0THEN A%=199:GOTO1010
  980IF position%(A%)=value%ANDposition%(A%-C%)<>value%ANDposition%(A%-C%)>0THEN illegal%=1:weight%=weight%+ABS((pos%-A%)/C%)-1:PROCcheckedge:PROCedge:A%=199:GOTO1000 
  990IF position%(A%)=value%AND position%(A%-C%)=0THEN A%=199
 1000IF weight%>bestgo%THEN bestgo%=weight%:compgo%=pos%
 1010A%=A%+C%:UNTILA%>100ORA%<1
 1020IF illegal%=1AND comp%<>2AND col%<>16THEN A%=pos%:PROCchangecolour
 1030NEXT:ENDPROC
 1040DEFPROClookatgo   
 1050black%=0:white%=0:IF col%=16 AND pass%=0THEN 1100
 1060IF pass%=1THEN illegal%=2:turn%=turn%-1:GOTO1100
 1070illegal%=0
 1080IF position%(pos%)>0THENPROCillegal:ENDPROC 
 1090PROCweigh
 1100FOR A%=1TO100:IF position%(A%)=3THEN position%(A%)=value%
 1110IF position%(A%)=2THENblack%=black%+1
 1120IF position%(A%)=1THENwhite%=white%+1
 1130NEXT
 1140IF col%=16ANDillegal%=0THEN illegal%=2:turn%=turn%-1
 1150IF illegal%<>2THEN PROCillegal
 1160IF black%=0 OR white%=0 THEN turn%=59
 1170ENDPROC
 1180DEFPROCfindrowandcol(posit%)
 1190col%=posit%DIV10
 1200row%=(posit%-1)MOD10
 1210ENDPROC
 1220DEFPROCchangecolour
 1230REPEAT:PROCfindrowandcol(A%)
 1240IF position%(A%)<>3THEN PROCcounter
 1250position%(A%)=3:A%=A%+C%:UNTIL position%(A%)=value%:illegal%=2
 1260ENDPROC
 1270DEFPROCupdatescore
 1280VDU4:PRINTTAB(0,15)"Last go-";
 1290IF col%=16THENPRINT"P ":K%=K%+1:ELSEPROCfindrowandcol(pos%):PRINTCHR$(col%+64);row%:K%=0
 1300col%=0:PRINTTAB(0,16)"Black: ";black%;" "
 1310PRINTTAB(0,17)"White: ";white%;" ":IF K%=2THENturn%=59
 1320ENDPROC
 1330DEFPROCinstructions
 1340VDU23;8202;0;0;0;:SOUND&11,2,80,255
 1350PRINTTAB(14,3);"OTHELLO"
 1370PRINT''"  The object of this game  is to have"'"the  most  discs  displayed  when  the"'"board is full."
 1380PRINT"  at each turn  the line of opponants"'"discs  that,  by playing  your disc,"'"ae started  and  finished  with  your"'"discs all change to your colour."
 1390PRINT"  If, on your turn, you don't have a"'"legal position to move then press P to"'"pass."
 1400PRINT"  You  can  play  against  either  the"'"computer  or  another  player."
 1410PRINT'''TAB(6)"Press SPACE to play."
 1430REPEAT:wait$=GET$:UNTIL wait$=" "
 1440ENDPROC
 1450DEFPROCwin
 1460VDU5:GCOL0,3:MOVE600,32:SOUND&11,2,80,255 
 1470IF black%>white%PRINT"Black wins!":GOTO1490
 1480IF white%>black%PRINT"White wins!"ELSEPRINT"Close game!"
 1490VDU4:COLOUR1:PRINTTAB(0,23)"Press SPACE to play again"
 1510wait$=GET$
 1520ENDPROC
 1530DEFPROCedge:IF G%<>0 THEN ENDPROC
 1540RESTORE1990:Q%=0:REPEAT:Q%=Q%+1:READcheck%:UNTIL check%=pos%
 1550RESTORE1990:FORP%=1TOQ%+1:READcheck%
 1560IF P%=Q%-1ANDposition%(check%)>0ANDposition%(check%)<>value%THENweight%=0
 1570 IF P%=Q%+1ANDposition%(check%)>0ANDposition%(check%)<>value%THENweight%=0
 1580NEXT
 1590ENDPROC
 1600DEFPROCcheckedge:IF edge%=0THEN ENDPROC
 1610IFposition%(pos%-edge%)>0ANDposition%(pos%-edge%)<>value%THENweight%=0
 1620IFposition%(A%+edge%)>0ANDposition%(A%+edge%)<>value%THENweight%=0
 1630ENDPROC
 1640DEFPROCcorner:FORQ%=1TO3:READpos%:PROCweigh:RESTORE2030:FOR S%=0TOR%+Q%:READT%:NEXT:NEXT:ENDPROC
 1650DEFPROCcompute
 1660G%=1:bestgo%=0:illegal%=0:IF col%=16THEN1690
 1670IF go%<>1THEN ENDPROC 
 1680comp%=2
 1690RESTORE1950:FORR%=1TO4:READpos%:PROCweigh:RESTORE1950:FORS%=1TOR%:READT%:NEXT:NEXT
 1700IF bestgo%>0THEN 1900
 1710IF col%=16THEN 1780
 1720IF turn%<5 OR miss%=1 THEN 1780
 1730FOR edge%=-1TO1STEP2:RESTORE1960:FORR%=1TO12:READpos%:PROCweigh:RESTORE1960:FOR S%=1TOR%:READT%:NEXT:NEXT:NEXT
 1740FOR edge%=-10TO10STEP20:RESTORE1970:FORR%=1TO12:READpos%:PROCweigh:RESTORE1970:FOR S%=1TOR%:READT%:NEXT:NEXT:NEXT
 1750edge%=0:IF bestgo%>0THEN 1900
 1760G%=0:RESTORE1980:FORR%=1TO16:READpos%:PROCweigh:RESTORE1980:FORS%=1TOR%:READT%:NEXT:NEXT
 1770G%=1:IFbestgo%>0THEN 1900
 1780RESTORE2000:FORR%=1TO12:READpos%:PROCweigh:RESTORE2000:FORS%=1TOR%:READT%:NEXT:NEXT
 1790IF bestgo%>0AND miss%=0THEN1900
 1800RESTORE2010:FORR%=1TO16:READpos%:PROCweigh:RESTORE2010:FORS%=1TOR%:READT%:NEXT:NEXT:IFbestgo%>0THEN 1900
 1810RESTORE2020:FORR%=1TO16:READpos%:PROCweigh:RESTORE2020:FORS%=1TOR%:READT%:NEXT:NEXT:IFbestgo%>0THEN 1900
 1820IF miss%=1THEN 1890
 1830RESTORE2030:FORR%=0TO12:READpos%
 1840IFR%MOD4=0ANDposition%(pos%)=value%THEN PROCcorner
 1850RESTORE2030:FORS%=0TOR%:READT%:NEXT:NEXT:IFbestgo%>0THEN 1900
 1860RESTORE2030:FORR%=0TO12:READpos%
 1870IFR%MOD4=0ANDposition%(pos%)>0THEN PROCcorner
 1880RESTORE2030:FORS%=0TOR%:READT%:NEXT:NEXT:IFbestgo%>0THEN1900
 1890RESTORE2030:FORR%=1TO16:READpos%:PROCweigh:RESTORE2030:FORS%=1TOR%:READT%:NEXT:NEXT
 1900IF col%=16THEN ENDPROC
 1910comp%=1:IFbestgo%>0THENpos%=compgo%:ENDPROC
 1920SOUND&11,1,2,12:VDU4:PRINTTAB(0,5);"Pass - no"'"legal move":TIME=0:REPEAT UNTIL TIME>200
 1930col%=16:pass%=1
 1940ENDPROC
 1950DATA12,19,89,82
 1960DATA14,15,16,17,84,85,86,87,13,18,83,88
 1970DATA32,42,52,62,39,49,59,69,22,72,29,79
 1980DATA14,17,39,69,87,84,62,32,15,16,49,59,85,86,42,52
 1990DATA13,14,15,16,17,18,29,39,49,59,69,79,88,87,86,85,84,83,72,62,52,42,32,22
 2000DATA37,36,35,34,44,54,64,65,66,67,57,47
 2010DATA24,25,26,27,38,48,58,68,77,76,75,74,63,53,43,33
 2020DATA32,42,52,62,84,85,86,87,69,59,49,39,17,16,15,14
 2030DATA19,18,28,29,89,79,78,88,82,83,73,72,12,22,23,13
 2040DATA45,2,0,46,1,3,55,1,3,56,2,0
 2050DATA1,9,10,11,-1,-9,-10,-11
 2060END
 2070MODE6:REPORT:PRINT" at line ";ERL
 2080END

� � �TVH
�6
� position%(100)
(�circles
2�instructions
<�:�init
F�1
P�setupboard
Z�findplayers
d�
n	�:�go
x�compute
�
�lookatgo
�� illegal%=2
��updatescore
�turn%=turn%+1:� turn%=60
��win:� wait$<>" "
��6:�
�
��init
�$� pos%=1�100:position%(pos%)=0:�
�2turn%=0:value%=1:comp%=0:go%=0:edge%=0:miss%=1
��
���setupboard
#�1:�28,0,31,10,0,23;8202;0;0;0;
�4
�19,2,0,0,0,0,5:�0,2
"/�352,960:�352,128:�85,1184,960:�85,1184,128
,%�416,96:�"A  B  C  D  E  F  G  H"
6� Y%=160 � 928 �96
@+�0,0:�384,Y%:�1152,Y%:�1216,Y%+64:�0,2:
J%� Y%=928� �DTA � �;(Y%-160)/96+1 
T�
^�0,0:� X%=384 � 1152 �96
h� X%,160:� X%,928:�
r�19,2,2,0,0,0
�
� �dxG
�]� position%=1�4:� pos%,val%,C%:position%(pos%)=val%:�0,C%:�findrowandcol(pos%):�counter:�
��
���findplayers
�= �4:�0,10)"Do you wantto play thecomputer ?"'" (Y or N)"
�7�:wait$=�:� �"YyNn",wait$)>0:�&11,2,40,4:�clear(10)
�!� wait$<>"Y" � wait$<>"y" � �
�9�0,10)"Do you wanta  hard  oreasy game?"'" (H or E)"
�Z �:wait$=�:� �"HhEe",wait$)>0:�&11,2,40,4:�clear(10):� wait$="H" � wait$="h" � miss%=0
�1go%=1:�0,10)"Are you going  first? (Y or N)"
7�:wait$=�:� �"YyNn",wait$)>0:�&11,2,40,4:�clear(10)
� wait$="Y" � wait$="y" � �
go%=2:�
&
��circles
0��23,224,0,0,0,3,7,15,31,31,23,225,0,0,126,255,255,255,255,255,23,226,0,0,0,192,224,240,248,248,23,227,31,63,63,63,63,63,63,31
:��23,228,255,255,255,255,255,255,255,255,23,229,248,252,252,252,252,252,252,248,23,230,31,31,15,7,3,0,0,0,23,231,255,255,255,255,255,126,0,0
D%�23,232,248,248,240,224,192,0,0,0
N<C1$=�224+�225+�226:C2$=�227+�228+�229:C3$=�230+�231+�232
X1circle$=C1$+�8+�8+�8+�10+C2$+�8+�8+�8+�10+C3$
bU�1,4,0,0,0,0,0,0,121,-10,-5,-2,120,120:�2,16,4,-8,-4,16,16,32,64,64,-64,-64,128,0
l�
v"��clear(tab%):�0,tab%)�(42):�
���go
��4:pass%=0:�2
�� go%<2 � �trB
�O�clear(4):go%=1:�0,4)"Thinking ":� value%=1� value%=2:�0,0:� �0,3:value%=1
��
�S� value%=1 � �0,4)"Blacks go:":value%=2:�0,0:��0,4)"Whites go:":�0,3:value%=1
�� go%>0� go%=2
�$�:�:�clear(5):�0,5)"Column? "; 
�Ncol%=��223:�(col%>64�col%<73)�col%=80:�(col%):col%=col%-64:�col%=16� �dnB
��0,6)"Row? ";
�row%=�:row%=row%-48:�;row%
�� (row%>0�row%<9)� col%=16
��5:pos%=col%*10+row%+1
�

��counter
�&11,1,94,12
 *�5:�291+96*col%,159+96*row%:�;circle$ 
*�=0:� � �>50
4 � 
>
��illegal
H�4:�&10,2,70,25
R
�clear(5)
\�0,5)"Illegal"'" move"
f#� value%=1� value%=2 � value%=1
p� go%=2�go%=1
z�=0:� � �>200
��
���weigh
�#weight%=0:� position%(pos%)>0� 
�	��TBH
�� B%=1�8:�C%:A%=pos%
�� edge%<>0�C%=edge%:B%=8
��:� A%=pos%� �drC
�#� position%(A%)=0� A%=199:�drC
ԓ� position%(A%)=value%�position%(A%-C%)<>value%�position%(A%-C%)>0� illegal%=1:weight%=weight%+�((pos%-A%)/C%)-1:�checkedge:�edge:A%=199:�dhC 
�6� position%(A%)=value%� position%(A%-C%)=0� A%=199
�3� weight%>bestgo%� bestgo%=weight%:compgo%=pos%
�A%=A%+C%:�A%>100�A%<1
�;� illegal%=1� comp%<>2� col%<>16� A%=pos%:�changecolour
�:�
��lookatgo   
/black%=0:white%=0:� col%=16 � pass%=0� �DLD
$-� pass%=1� illegal%=2:turn%=turn%-1:�DLD
.illegal%=0
8#� position%(pos%)>0��illegal:� 
B
�weigh
L6� A%=1�100:� position%(A%)=3� position%(A%)=value%
V%� position%(A%)=2�black%=black%+1
`%� position%(A%)=1�white%=white%+1
j�
t2� col%=16�illegal%=0� illegal%=2:turn%=turn%-1
~� illegal%<>2� �illegal
�$� black%=0 � white%=0 � turn%=59
��
���findrowandcol(posit%)
�col%=posit%�10
�row%=(posit%-1)�10
��
���changecolour
��:�findrowandcol(A%)
� � position%(A%)<>3� �counter
�>position%(A%)=3:A%=A%+C%:� position%(A%)=value%:illegal%=2
��
���updatescore
�4:�0,15)"Last go-";

G� col%=16��"P ":K%=K%+1:��findrowandcol(pos%):�(col%+64);row%:K%=0
&col%=0:�0,16)"Black: ";black%;" "
/�0,17)"White: ";white%;" ":� K%=2�turn%=59
(�
2��instructions
<!�23;8202;0;0;0;:�&11,2,80,255
F�14,3);"OTHELLO"
Zh�''"  The object of this game  is to have"'"the  most  discs  displayed  when  the"'"board is full."
d��"  at each turn  the line of opponants"'"discs  that,  by playing  your disc,"'"ae started  and  finished  with  your"'"discs all change to your colour."
n\�"  If, on your turn, you don't have a"'"legal position to move then press P to"'"pass."
xN�"  You  can  play  against  either  the"'"computer  or  another  player."
�!�'''�6)"Press SPACE to play."
��:wait$=�:� wait$=" "
��
�	��win
�"�5:�0,3:�600,32:�&11,2,80,255 
�'� black%>white%�"Black wins!":�dRE
�0� white%>black%�"White wins!"��"Close game!"
�,�4:�1:�0,23)"Press SPACE to play again"
�wait$=�
��
���edge:� G%<>0 � �
.��dFG:Q%=0:�:Q%=Q%+1:�check%:� check%=pos%
��dFG:�P%=1�Q%+1:�check%
E� P%=Q%-1�position%(check%)>0�position%(check%)<>value%�weight%=0
"F � P%=Q%+1�position%(check%)>0�position%(check%)<>value%�weight%=0
,�
6�
@��checkedge:� edge%=0� �
JD�position%(pos%-edge%)>0�position%(pos%-edge%)<>value%�weight%=0
T@�position%(A%+edge%)>0�position%(A%+edge%)<>value%�weight%=0
^�
h>��corner:�Q%=1�3:�pos%:�weigh:��dnG:� S%=0�R%+Q%:�T%:�:�:�
r
��compute
|,G%=1:bestgo%=0:illegal%=0:� col%=16��tZF
�� go%<>1� � 
�comp%=2
�5��t^G:�R%=1�4:�pos%:�weigh:��t^G:�S%=1�R%:�T%:�:�
�� bestgo%>0� �DlG
�� col%=16� �dtF
�� turn%<5 � miss%=1 � �dtF
�H� edge%=-1�1�2:��thG:�R%=1�12:�pos%:�weigh:��thG:� S%=1�R%:�T%:�:�:�
�K� edge%=-10�10�20:��trG:�R%=1�12:�pos%:�weigh:��trG:� S%=1�R%:�T%:�:�:�
�edge%=0:� bestgo%>0� �DlG
�;G%=0:��t|G:�R%=1�16:�pos%:�weigh:��t|G:�S%=1�R%:�T%:�:�
�G%=1:�bestgo%>0� �DlG
�6��dPG:�R%=1�12:�pos%:�weigh:��dPG:�S%=1�R%:�T%:�:�
�� bestgo%>0� miss%=0��DlG
G��dZG:�R%=1�16:�pos%:�weigh:��dZG:�S%=1�R%:�T%:�:�:�bestgo%>0� �DlG
G��ddG:�R%=1�16:�pos%:�weigh:��ddG:�S%=1�R%:�T%:�:�:�bestgo%>0� �DlG
� miss%=1� �DbG
&��dnG:�R%=0�12:�pos%
0+�R%�4=0�position%(pos%)=value%� �corner
:+��dnG:�S%=0�R%:�T%:�:�:�bestgo%>0� �DlG
D��dnG:�R%=0�12:�pos%
N&�R%�4=0�position%(pos%)>0� �corner
X*��dnG:�S%=0�R%:�T%:�:�:�bestgo%>0��DlG
b6��dnG:�R%=1�16:�pos%:�weigh:��dnG:�S%=1�R%:�T%:�:�
l� col%=16� �
v%comp%=1:�bestgo%>0�pos%=compgo%:�
�@�&11,1,2,12:�4:�0,5);"Pass - no"'"legal move":�=0:� � �>200
�col%=16:pass%=1
��
��12,19,89,82
�(�14,15,16,17,84,85,86,87,13,18,83,88
�(�32,42,52,62,39,49,59,69,22,72,29,79
�4�14,17,39,69,87,84,62,32,15,16,49,59,85,86,42,52
�L�13,14,15,16,17,18,29,39,49,59,69,79,88,87,86,85,84,83,72,62,52,42,32,22
�(�37,36,35,34,44,54,64,65,66,67,57,47
�4�24,25,26,27,38,48,58,68,77,76,75,74,63,53,43,33
�4�32,42,52,62,84,85,86,87,69,59,49,39,17,16,15,14
�4�19,18,28,29,89,79,78,88,82,83,73,72,12,22,23,13
� �45,2,0,46,1,3,55,1,3,56,2,0
�1,9,10,11,-1,-9,-10,-11
�
�6:�:�" at line ";�
 �
�
00000000  0d 00 05 0d ee 20 85 20  e5 8d 54 56 48 0d 00 14  |..... . ..TVH...|
00000010  06 eb 36 0d 00 1e 14 de  20 70 6f 73 69 74 69 6f  |..6..... positio|
00000020  6e 25 28 31 30 30 29 0d  00 28 0c f2 63 69 72 63  |n%(100)..(..circ|
00000030  6c 65 73 0d 00 32 11 f2  69 6e 73 74 72 75 63 74  |les..2..instruct|
00000040  69 6f 6e 73 0d 00 3c 0b  f5 3a f2 69 6e 69 74 0d  |ions..<..:.init.|
00000050  00 46 06 eb 31 0d 00 50  0f f2 73 65 74 75 70 62  |.F..1..P..setupb|
00000060  6f 61 72 64 0d 00 5a 10  f2 66 69 6e 64 70 6c 61  |oard..Z..findpla|
00000070  79 65 72 73 0d 00 64 05  f5 0d 00 6e 09 f5 3a f2  |yers..d....n..:.|
00000080  67 6f 0d 00 78 0c f2 63  6f 6d 70 75 74 65 0d 00  |go..x..compute..|
00000090  82 0d f2 6c 6f 6f 6b 61  74 67 6f 0d 00 8c 10 fd  |...lookatgo.....|
000000a0  20 69 6c 6c 65 67 61 6c  25 3d 32 0d 00 96 10 f2  | illegal%=2.....|
000000b0  75 70 64 61 74 65 73 63  6f 72 65 0d 00 a0 1c 74  |updatescore....t|
000000c0  75 72 6e 25 3d 74 75 72  6e 25 2b 31 3a fd 20 74  |urn%=turn%+1:. t|
000000d0  75 72 6e 25 3d 36 30 0d  00 aa 15 f2 77 69 6e 3a  |urn%=60.....win:|
000000e0  fd 20 77 61 69 74 24 3c  3e 22 20 22 0d 00 c8 08  |. wait$<>" "....|
000000f0  eb 36 3a e0 0d 00 d2 0a  dd f2 69 6e 69 74 0d 00  |.6:.......init..|
00000100  dc 24 e3 20 70 6f 73 25  3d 31 b8 31 30 30 3a 70  |.$. pos%=1.100:p|
00000110  6f 73 69 74 69 6f 6e 25  28 70 6f 73 25 29 3d 30  |osition%(pos%)=0|
00000120  3a ed 0d 00 e6 32 74 75  72 6e 25 3d 30 3a 76 61  |:....2turn%=0:va|
00000130  6c 75 65 25 3d 31 3a 63  6f 6d 70 25 3d 30 3a 67  |lue%=1:comp%=0:g|
00000140  6f 25 3d 30 3a 65 64 67  65 25 3d 30 3a 6d 69 73  |o%=0:edge%=0:mis|
00000150  73 25 3d 31 0d 00 f0 05  e1 0d 00 fa 10 dd f2 73  |s%=1...........s|
00000160  65 74 75 70 62 6f 61 72  64 0d 01 04 23 fb 31 3a  |etupboard...#.1:|
00000170  ef 32 38 2c 30 2c 33 31  2c 31 30 2c 30 2c 32 33  |.28,0,31,10,0,23|
00000180  3b 38 32 30 32 3b 30 3b  30 3b 30 3b 0d 01 0e 06  |;8202;0;0;0;....|
00000190  ef 34 0d 01 18 18 ef 31  39 2c 32 2c 30 2c 30 2c  |.4.....19,2,0,0,|
000001a0  30 2c 30 2c 35 3a e6 30  2c 32 0d 01 22 2f ec 33  |0,0,5:.0,2.."/.3|
000001b0  35 32 2c 39 36 30 3a ec  33 35 32 2c 31 32 38 3a  |52,960:.352,128:|
000001c0  f0 38 35 2c 31 31 38 34  2c 39 36 30 3a f0 38 35  |.85,1184,960:.85|
000001d0  2c 31 31 38 34 2c 31 32  38 0d 01 2c 25 ec 34 31  |,1184,128..,%.41|
000001e0  36 2c 39 36 3a f1 22 41  20 20 42 20 20 43 20 20  |6,96:."A  B  C  |
000001f0  44 20 20 45 20 20 46 20  20 47 20 20 48 22 0d 01  |D  E  F  G  H"..|
00000200  36 16 e3 20 59 25 3d 31  36 30 20 b8 20 39 32 38  |6.. Y%=160 . 928|
00000210  20 88 39 36 0d 01 40 2b  e6 30 2c 30 3a ec 33 38  | .96..@+.0,0:.38|
00000220  34 2c 59 25 3a df 31 31  35 32 2c 59 25 3a ec 31  |4,Y%:.1152,Y%:.1|
00000230  32 31 36 2c 59 25 2b 36  34 3a e6 30 2c 32 3a 0d  |216,Y%+64:.0,2:.|
00000240  01 4a 25 e7 20 59 25 3d  39 32 38 8c 20 8d 44 54  |.J%. Y%=928. .DT|
00000250  41 20 8b 20 f1 3b 28 59  25 2d 31 36 30 29 2f 39  |A . .;(Y%-160)/9|
00000260  36 2b 31 20 0d 01 54 05  ed 0d 01 5e 1c e6 30 2c  |6+1 ..T....^..0,|
00000270  30 3a e3 20 58 25 3d 33  38 34 20 b8 20 31 31 35  |0:. X%=384 . 115|
00000280  32 20 88 39 36 0d 01 68  17 ec 20 58 25 2c 31 36  |2 .96..h.. X%,16|
00000290  30 3a df 20 58 25 2c 39  32 38 3a ed 0d 01 72 11  |0:. X%,928:...r.|
000002a0  ef 31 39 2c 32 2c 32 2c  30 2c 30 2c 30 0d 01 86  |.19,2,2,0,0,0...|
000002b0  0a f7 20 8d 64 78 47 0d  01 90 5d e3 20 70 6f 73  |.. .dxG...]. pos|
000002c0  69 74 69 6f 6e 25 3d 31  b8 34 3a f3 20 70 6f 73  |ition%=1.4:. pos|
000002d0  25 2c 76 61 6c 25 2c 43  25 3a 70 6f 73 69 74 69  |%,val%,C%:positi|
000002e0  6f 6e 25 28 70 6f 73 25  29 3d 76 61 6c 25 3a e6  |on%(pos%)=val%:.|
000002f0  30 2c 43 25 3a f2 66 69  6e 64 72 6f 77 61 6e 64  |0,C%:.findrowand|
00000300  63 6f 6c 28 70 6f 73 25  29 3a f2 63 6f 75 6e 74  |col(pos%):.count|
00000310  65 72 3a ed 0d 01 9a 05  e1 0d 01 a4 11 dd f2 66  |er:............f|
00000320  69 6e 64 70 6c 61 79 65  72 73 0d 01 ae 3d 20 ef  |indplayers...= .|
00000330  34 3a f1 8a 30 2c 31 30  29 22 44 6f 20 79 6f 75  |4:..0,10)"Do you|
00000340  20 77 61 6e 74 74 6f 20  70 6c 61 79 20 74 68 65  | wantto play the|
00000350  63 6f 6d 70 75 74 65 72  20 3f 22 27 22 20 28 59  |computer ?"'" (Y|
00000360  20 6f 72 20 4e 29 22 0d  01 c2 37 f5 3a 77 61 69  | or N)"...7.:wai|
00000370  74 24 3d be 3a fd 20 a7  22 59 79 4e 6e 22 2c 77  |t$=.:. ."YyNn",w|
00000380  61 69 74 24 29 3e 30 3a  d4 26 31 31 2c 32 2c 34  |ait$)>0:.&11,2,4|
00000390  30 2c 34 3a f2 63 6c 65  61 72 28 31 30 29 0d 01  |0,4:.clear(10)..|
000003a0  cc 21 e7 20 77 61 69 74  24 3c 3e 22 59 22 20 80  |.!. wait$<>"Y" .|
000003b0  20 77 61 69 74 24 3c 3e  22 79 22 20 8c 20 e1 0d  | wait$<>"y" . ..|
000003c0  01 d6 39 f1 8a 30 2c 31  30 29 22 44 6f 20 79 6f  |..9..0,10)"Do yo|
000003d0  75 20 77 61 6e 74 61 20  20 68 61 72 64 20 20 6f  |u wanta  hard  o|
000003e0  72 65 61 73 79 20 67 61  6d 65 3f 22 27 22 20 28  |reasy game?"'" (|
000003f0  48 20 6f 72 20 45 29 22  0d 01 ea 5a 20 f5 3a 77  |H or E)"...Z .:w|
00000400  61 69 74 24 3d be 3a fd  20 a7 22 48 68 45 65 22  |ait$=.:. ."HhEe"|
00000410  2c 77 61 69 74 24 29 3e  30 3a d4 26 31 31 2c 32  |,wait$)>0:.&11,2|
00000420  2c 34 30 2c 34 3a f2 63  6c 65 61 72 28 31 30 29  |,40,4:.clear(10)|
00000430  3a e7 20 77 61 69 74 24  3d 22 48 22 20 84 20 77  |:. wait$="H" . w|
00000440  61 69 74 24 3d 22 68 22  20 8c 20 6d 69 73 73 25  |ait$="h" . miss%|
00000450  3d 30 0d 01 f4 31 67 6f  25 3d 31 3a f1 8a 30 2c  |=0...1go%=1:..0,|
00000460  31 30 29 22 41 72 65 20  79 6f 75 20 67 6f 69 6e  |10)"Are you goin|
00000470  67 20 20 66 69 72 73 74  3f 20 28 59 20 6f 72 20  |g  first? (Y or |
00000480  4e 29 22 0d 02 08 37 f5  3a 77 61 69 74 24 3d be  |N)"...7.:wait$=.|
00000490  3a fd 20 a7 22 59 79 4e  6e 22 2c 77 61 69 74 24  |:. ."YyNn",wait$|
000004a0  29 3e 30 3a d4 26 31 31  2c 32 2c 34 30 2c 34 3a  |)>0:.&11,2,40,4:|
000004b0  f2 63 6c 65 61 72 28 31  30 29 0d 02 12 1f e7 20  |.clear(10)..... |
000004c0  77 61 69 74 24 3d 22 59  22 20 84 20 77 61 69 74  |wait$="Y" . wait|
000004d0  24 3d 22 79 22 20 8c 20  e1 0d 02 1c 0b 67 6f 25  |$="y" . .....go%|
000004e0  3d 32 3a e1 0d 02 26 0d  dd f2 63 69 72 63 6c 65  |=2:...&...circle|
000004f0  73 0d 02 30 81 ef 32 33  2c 32 32 34 2c 30 2c 30  |s..0..23,224,0,0|
00000500  2c 30 2c 33 2c 37 2c 31  35 2c 33 31 2c 33 31 2c  |,0,3,7,15,31,31,|
00000510  32 33 2c 32 32 35 2c 30  2c 30 2c 31 32 36 2c 32  |23,225,0,0,126,2|
00000520  35 35 2c 32 35 35 2c 32  35 35 2c 32 35 35 2c 32  |55,255,255,255,2|
00000530  35 35 2c 32 33 2c 32 32  36 2c 30 2c 30 2c 30 2c  |55,23,226,0,0,0,|
00000540  31 39 32 2c 32 32 34 2c  32 34 30 2c 32 34 38 2c  |192,224,240,248,|
00000550  32 34 38 2c 32 33 2c 32  32 37 2c 33 31 2c 36 33  |248,23,227,31,63|
00000560  2c 36 33 2c 36 33 2c 36  33 2c 36 33 2c 36 33 2c  |,63,63,63,63,63,|
00000570  33 31 0d 02 3a 8f ef 32  33 2c 32 32 38 2c 32 35  |31..:..23,228,25|
00000580  35 2c 32 35 35 2c 32 35  35 2c 32 35 35 2c 32 35  |5,255,255,255,25|
00000590  35 2c 32 35 35 2c 32 35  35 2c 32 35 35 2c 32 33  |5,255,255,255,23|
000005a0  2c 32 32 39 2c 32 34 38  2c 32 35 32 2c 32 35 32  |,229,248,252,252|
000005b0  2c 32 35 32 2c 32 35 32  2c 32 35 32 2c 32 35 32  |,252,252,252,252|
000005c0  2c 32 34 38 2c 32 33 2c  32 33 30 2c 33 31 2c 33  |,248,23,230,31,3|
000005d0  31 2c 31 35 2c 37 2c 33  2c 30 2c 30 2c 30 2c 32  |1,15,7,3,0,0,0,2|
000005e0  33 2c 32 33 31 2c 32 35  35 2c 32 35 35 2c 32 35  |3,231,255,255,25|
000005f0  35 2c 32 35 35 2c 32 35  35 2c 31 32 36 2c 30 2c  |5,255,255,126,0,|
00000600  30 0d 02 44 25 ef 32 33  2c 32 33 32 2c 32 34 38  |0..D%.23,232,248|
00000610  2c 32 34 38 2c 32 34 30  2c 32 32 34 2c 31 39 32  |,248,240,224,192|
00000620  2c 30 2c 30 2c 30 0d 02  4e 3c 43 31 24 3d bd 32  |,0,0,0..N<C1$=.2|
00000630  32 34 2b bd 32 32 35 2b  bd 32 32 36 3a 43 32 24  |24+.225+.226:C2$|
00000640  3d bd 32 32 37 2b bd 32  32 38 2b bd 32 32 39 3a  |=.227+.228+.229:|
00000650  43 33 24 3d bd 32 33 30  2b bd 32 33 31 2b bd 32  |C3$=.230+.231+.2|
00000660  33 32 0d 02 58 31 63 69  72 63 6c 65 24 3d 43 31  |32..X1circle$=C1|
00000670  24 2b bd 38 2b bd 38 2b  bd 38 2b bd 31 30 2b 43  |$+.8+.8+.8+.10+C|
00000680  32 24 2b bd 38 2b bd 38  2b bd 38 2b bd 31 30 2b  |2$+.8+.8+.8+.10+|
00000690  43 33 24 0d 02 62 55 e2  31 2c 34 2c 30 2c 30 2c  |C3$..bU.1,4,0,0,|
000006a0  30 2c 30 2c 30 2c 30 2c  31 32 31 2c 2d 31 30 2c  |0,0,0,0,121,-10,|
000006b0  2d 35 2c 2d 32 2c 31 32  30 2c 31 32 30 3a e2 32  |-5,-2,120,120:.2|
000006c0  2c 31 36 2c 34 2c 2d 38  2c 2d 34 2c 31 36 2c 31  |,16,4,-8,-4,16,1|
000006d0  36 2c 33 32 2c 36 34 2c  36 34 2c 2d 36 34 2c 2d  |6,32,64,64,-64,-|
000006e0  36 34 2c 31 32 38 2c 30  0d 02 6c 05 e1 0d 02 76  |64,128,0..l....v|
000006f0  22 dd f2 63 6c 65 61 72  28 74 61 62 25 29 3a f1  |"..clear(tab%):.|
00000700  8a 30 2c 74 61 62 25 29  89 28 34 32 29 3a e1 0d  |.0,tab%).(42):..|
00000710  02 80 08 dd f2 67 6f 0d  02 8a 11 ef 34 3a 70 61  |.....go.....4:pa|
00000720  73 73 25 3d 30 3a fb 32  0d 02 94 12 e7 20 67 6f  |ss%=0:.2..... go|
00000730  25 3c 32 20 8c 20 8d 74  72 42 0d 02 9e 4f f2 63  |%<2 . .trB...O.c|
00000740  6c 65 61 72 28 34 29 3a  67 6f 25 3d 31 3a f1 8a  |lear(4):go%=1:..|
00000750  30 2c 34 29 22 54 68 69  6e 6b 69 6e 67 20 22 3a  |0,4)"Thinking ":|
00000760  e7 20 76 61 6c 75 65 25  3d 31 8c 20 76 61 6c 75  |. value%=1. valu|
00000770  65 25 3d 32 3a e6 30 2c  30 3a 8b 20 e6 30 2c 33  |e%=2:.0,0:. .0,3|
00000780  3a 76 61 6c 75 65 25 3d  31 0d 02 a8 05 e1 0d 02  |:value%=1.......|
00000790  b2 53 e7 20 76 61 6c 75  65 25 3d 31 20 8c 20 f1  |.S. value%=1 . .|
000007a0  8a 30 2c 34 29 22 42 6c  61 63 6b 73 20 67 6f 3a  |.0,4)"Blacks go:|
000007b0  22 3a 76 61 6c 75 65 25  3d 32 3a e6 30 2c 30 3a  |":value%=2:.0,0:|
000007c0  8b f1 8a 30 2c 34 29 22  57 68 69 74 65 73 20 67  |...0,4)"Whites g|
000007d0  6f 3a 22 3a e6 30 2c 33  3a 76 61 6c 75 65 25 3d  |o:":.0,3:value%=|
000007e0  31 0d 02 bc 12 e7 20 67  6f 25 3e 30 8c 20 67 6f  |1..... go%>0. go|
000007f0  25 3d 32 0d 02 c6 24 f5  3a f5 3a f2 63 6c 65 61  |%=2...$.:.:.clea|
00000800  72 28 35 29 3a f1 8a 30  2c 35 29 22 43 6f 6c 75  |r(5):..0,5)"Colu|
00000810  6d 6e 3f 20 22 3b 20 0d  02 d0 4e 63 6f 6c 25 3d  |mn? "; ...Ncol%=|
00000820  a5 80 32 32 33 3a fd 28  63 6f 6c 25 3e 36 34 80  |..223:.(col%>64.|
00000830  63 6f 6c 25 3c 37 33 29  84 63 6f 6c 25 3d 38 30  |col%<73).col%=80|
00000840  3a f1 bd 28 63 6f 6c 25  29 3a 63 6f 6c 25 3d 63  |:..(col%):col%=c|
00000850  6f 6c 25 2d 36 34 3a e7  63 6f 6c 25 3d 31 36 8c  |ol%-64:.col%=16.|
00000860  20 8d 64 6e 42 0d 02 da  12 f1 8a 30 2c 36 29 22  | .dnB......0,6)"|
00000870  52 6f 77 3f 20 22 3b 0d  02 e4 1e 72 6f 77 25 3d  |Row? ";....row%=|
00000880  a5 3a 72 6f 77 25 3d 72  6f 77 25 2d 34 38 3a f1  |.:row%=row%-48:.|
00000890  3b 72 6f 77 25 0d 02 ee  1e fd 20 28 72 6f 77 25  |;row%..... (row%|
000008a0  3e 30 80 72 6f 77 25 3c  39 29 84 20 63 6f 6c 25  |>0.row%<9). col%|
000008b0  3d 31 36 0d 02 f8 1a ef  35 3a 70 6f 73 25 3d 63  |=16.....5:pos%=c|
000008c0  6f 6c 25 2a 31 30 2b 72  6f 77 25 2b 31 0d 03 02  |ol%*10+row%+1...|
000008d0  05 e1 0d 03 0c 0d dd f2  63 6f 75 6e 74 65 72 0d  |........counter.|
000008e0  03 16 10 d4 26 31 31 2c  31 2c 39 34 2c 31 32 0d  |....&11,1,94,12.|
000008f0  03 20 2a ef 35 3a ec 32  39 31 2b 39 36 2a 63 6f  |. *.5:.291+96*co|
00000900  6c 25 2c 31 35 39 2b 39  36 2a 72 6f 77 25 3a f1  |l%,159+96*row%:.|
00000910  3b 63 69 72 63 6c 65 24  20 0d 03 2a 10 d1 3d 30  |;circle$ ..*..=0|
00000920  3a f5 20 fd 20 91 3e 35  30 0d 03 34 07 20 e1 20  |:. . .>50..4. . |
00000930  0d 03 3e 0d dd f2 69 6c  6c 65 67 61 6c 0d 03 48  |..>...illegal..H|
00000940  13 ef 34 3a d4 26 31 30  2c 32 2c 37 30 2c 32 35  |..4:.&10,2,70,25|
00000950  0d 03 52 0d f2 63 6c 65  61 72 28 35 29 0d 03 5c  |..R..clear(5)..\|
00000960  1b f1 8a 30 2c 35 29 22  49 6c 6c 65 67 61 6c 22  |...0,5)"Illegal"|
00000970  27 22 20 6d 6f 76 65 22  0d 03 66 23 e7 20 76 61  |'" move"..f#. va|
00000980  6c 75 65 25 3d 31 8c 20  76 61 6c 75 65 25 3d 32  |lue%=1. value%=2|
00000990  20 8b 20 76 61 6c 75 65  25 3d 31 0d 03 70 11 e7  | . value%=1..p..|
000009a0  20 67 6f 25 3d 32 8c 67  6f 25 3d 31 0d 03 7a 11  | go%=2.go%=1..z.|
000009b0  d1 3d 30 3a f5 20 fd 20  91 3e 32 30 30 0d 03 84  |.=0:. . .>200...|
000009c0  05 e1 0d 03 8e 0b dd f2  77 65 69 67 68 0d 03 98  |........weigh...|
000009d0  23 77 65 69 67 68 74 25  3d 30 3a e7 20 70 6f 73  |#weight%=0:. pos|
000009e0  69 74 69 6f 6e 25 28 70  6f 73 25 29 3e 30 e1 20  |ition%(pos%)>0. |
000009f0  0d 03 a2 09 f7 8d 54 42  48 0d 03 ac 18 e3 20 42  |......TBH..... B|
00000a00  25 3d 31 b8 38 3a f3 43  25 3a 41 25 3d 70 6f 73  |%=1.8:.C%:A%=pos|
00000a10  25 0d 03 b6 1c e7 20 65  64 67 65 25 3c 3e 30 8c  |%..... edge%<>0.|
00000a20  43 25 3d 65 64 67 65 25  3a 42 25 3d 38 0d 03 c0  |C%=edge%:B%=8...|
00000a30  15 f5 3a e7 20 41 25 3d  70 6f 73 25 8c 20 8d 64  |..:. A%=pos%. .d|
00000a40  72 43 0d 03 ca 23 e7 20  70 6f 73 69 74 69 6f 6e  |rC...#. position|
00000a50  25 28 41 25 29 3d 30 8c  20 41 25 3d 31 39 39 3a  |%(A%)=0. A%=199:|
00000a60  e5 8d 64 72 43 0d 03 d4  93 e7 20 70 6f 73 69 74  |..drC..... posit|
00000a70  69 6f 6e 25 28 41 25 29  3d 76 61 6c 75 65 25 80  |ion%(A%)=value%.|
00000a80  70 6f 73 69 74 69 6f 6e  25 28 41 25 2d 43 25 29  |position%(A%-C%)|
00000a90  3c 3e 76 61 6c 75 65 25  80 70 6f 73 69 74 69 6f  |<>value%.positio|
00000aa0  6e 25 28 41 25 2d 43 25  29 3e 30 8c 20 69 6c 6c  |n%(A%-C%)>0. ill|
00000ab0  65 67 61 6c 25 3d 31 3a  77 65 69 67 68 74 25 3d  |egal%=1:weight%=|
00000ac0  77 65 69 67 68 74 25 2b  94 28 28 70 6f 73 25 2d  |weight%+.((pos%-|
00000ad0  41 25 29 2f 43 25 29 2d  31 3a f2 63 68 65 63 6b  |A%)/C%)-1:.check|
00000ae0  65 64 67 65 3a f2 65 64  67 65 3a 41 25 3d 31 39  |edge:.edge:A%=19|
00000af0  39 3a e5 8d 64 68 43 20  0d 03 de 36 e7 20 70 6f  |9:..dhC ...6. po|
00000b00  73 69 74 69 6f 6e 25 28  41 25 29 3d 76 61 6c 75  |sition%(A%)=valu|
00000b10  65 25 80 20 70 6f 73 69  74 69 6f 6e 25 28 41 25  |e%. position%(A%|
00000b20  2d 43 25 29 3d 30 8c 20  41 25 3d 31 39 39 0d 03  |-C%)=0. A%=199..|
00000b30  e8 33 e7 20 77 65 69 67  68 74 25 3e 62 65 73 74  |.3. weight%>best|
00000b40  67 6f 25 8c 20 62 65 73  74 67 6f 25 3d 77 65 69  |go%. bestgo%=wei|
00000b50  67 68 74 25 3a 63 6f 6d  70 67 6f 25 3d 70 6f 73  |ght%:compgo%=pos|
00000b60  25 0d 03 f2 19 41 25 3d  41 25 2b 43 25 3a fd 41  |%....A%=A%+C%:.A|
00000b70  25 3e 31 30 30 84 41 25  3c 31 0d 03 fc 3b e7 20  |%>100.A%<1...;. |
00000b80  69 6c 6c 65 67 61 6c 25  3d 31 80 20 63 6f 6d 70  |illegal%=1. comp|
00000b90  25 3c 3e 32 80 20 63 6f  6c 25 3c 3e 31 36 8c 20  |%<>2. col%<>16. |
00000ba0  41 25 3d 70 6f 73 25 3a  f2 63 68 61 6e 67 65 63  |A%=pos%:.changec|
00000bb0  6f 6c 6f 75 72 0d 04 06  07 ed 3a e1 0d 04 10 11  |olour.....:.....|
00000bc0  dd f2 6c 6f 6f 6b 61 74  67 6f 20 20 20 0d 04 1a  |..lookatgo   ...|
00000bd0  2f 62 6c 61 63 6b 25 3d  30 3a 77 68 69 74 65 25  |/black%=0:white%|
00000be0  3d 30 3a e7 20 63 6f 6c  25 3d 31 36 20 80 20 70  |=0:. col%=16 . p|
00000bf0  61 73 73 25 3d 30 8c 20  8d 44 4c 44 0d 04 24 2d  |ass%=0. .DLD..$-|
00000c00  e7 20 70 61 73 73 25 3d  31 8c 20 69 6c 6c 65 67  |. pass%=1. illeg|
00000c10  61 6c 25 3d 32 3a 74 75  72 6e 25 3d 74 75 72 6e  |al%=2:turn%=turn|
00000c20  25 2d 31 3a e5 8d 44 4c  44 0d 04 2e 0e 69 6c 6c  |%-1:..DLD....ill|
00000c30  65 67 61 6c 25 3d 30 0d  04 38 23 e7 20 70 6f 73  |egal%=0..8#. pos|
00000c40  69 74 69 6f 6e 25 28 70  6f 73 25 29 3e 30 8c f2  |ition%(pos%)>0..|
00000c50  69 6c 6c 65 67 61 6c 3a  e1 20 0d 04 42 0a f2 77  |illegal:. ..B..w|
00000c60  65 69 67 68 0d 04 4c 36  e3 20 41 25 3d 31 b8 31  |eigh..L6. A%=1.1|
00000c70  30 30 3a e7 20 70 6f 73  69 74 69 6f 6e 25 28 41  |00:. position%(A|
00000c80  25 29 3d 33 8c 20 70 6f  73 69 74 69 6f 6e 25 28  |%)=3. position%(|
00000c90  41 25 29 3d 76 61 6c 75  65 25 0d 04 56 25 e7 20  |A%)=value%..V%. |
00000ca0  70 6f 73 69 74 69 6f 6e  25 28 41 25 29 3d 32 8c  |position%(A%)=2.|
00000cb0  62 6c 61 63 6b 25 3d 62  6c 61 63 6b 25 2b 31 0d  |black%=black%+1.|
00000cc0  04 60 25 e7 20 70 6f 73  69 74 69 6f 6e 25 28 41  |.`%. position%(A|
00000cd0  25 29 3d 31 8c 77 68 69  74 65 25 3d 77 68 69 74  |%)=1.white%=whit|
00000ce0  65 25 2b 31 0d 04 6a 05  ed 0d 04 74 32 e7 20 63  |e%+1..j....t2. c|
00000cf0  6f 6c 25 3d 31 36 80 69  6c 6c 65 67 61 6c 25 3d  |ol%=16.illegal%=|
00000d00  30 8c 20 69 6c 6c 65 67  61 6c 25 3d 32 3a 74 75  |0. illegal%=2:tu|
00000d10  72 6e 25 3d 74 75 72 6e  25 2d 31 0d 04 7e 1b e7  |rn%=turn%-1..~..|
00000d20  20 69 6c 6c 65 67 61 6c  25 3c 3e 32 8c 20 f2 69  | illegal%<>2. .i|
00000d30  6c 6c 65 67 61 6c 0d 04  88 24 e7 20 62 6c 61 63  |llegal...$. blac|
00000d40  6b 25 3d 30 20 84 20 77  68 69 74 65 25 3d 30 20  |k%=0 . white%=0 |
00000d50  8c 20 74 75 72 6e 25 3d  35 39 0d 04 92 05 e1 0d  |. turn%=59......|
00000d60  04 9c 1b dd f2 66 69 6e  64 72 6f 77 61 6e 64 63  |.....findrowandc|
00000d70  6f 6c 28 70 6f 73 69 74  25 29 0d 04 a6 12 63 6f  |ol(posit%)....co|
00000d80  6c 25 3d 70 6f 73 69 74  25 81 31 30 0d 04 b0 16  |l%=posit%.10....|
00000d90  72 6f 77 25 3d 28 70 6f  73 69 74 25 2d 31 29 83  |row%=(posit%-1).|
00000da0  31 30 0d 04 ba 05 e1 0d  04 c4 12 dd f2 63 68 61  |10...........cha|
00000db0  6e 67 65 63 6f 6c 6f 75  72 0d 04 ce 18 f5 3a f2  |ngecolour.....:.|
00000dc0  66 69 6e 64 72 6f 77 61  6e 64 63 6f 6c 28 41 25  |findrowandcol(A%|
00000dd0  29 0d 04 d8 20 e7 20 70  6f 73 69 74 69 6f 6e 25  |)... . position%|
00000de0  28 41 25 29 3c 3e 33 8c  20 f2 63 6f 75 6e 74 65  |(A%)<>3. .counte|
00000df0  72 0d 04 e2 3e 70 6f 73  69 74 69 6f 6e 25 28 41  |r...>position%(A|
00000e00  25 29 3d 33 3a 41 25 3d  41 25 2b 43 25 3a fd 20  |%)=3:A%=A%+C%:. |
00000e10  70 6f 73 69 74 69 6f 6e  25 28 41 25 29 3d 76 61  |position%(A%)=va|
00000e20  6c 75 65 25 3a 69 6c 6c  65 67 61 6c 25 3d 32 0d  |lue%:illegal%=2.|
00000e30  04 ec 05 e1 0d 04 f6 11  dd f2 75 70 64 61 74 65  |..........update|
00000e40  73 63 6f 72 65 0d 05 00  19 ef 34 3a f1 8a 30 2c  |score.....4:..0,|
00000e50  31 35 29 22 4c 61 73 74  20 67 6f 2d 22 3b 0d 05  |15)"Last go-";..|
00000e60  0a 47 e7 20 63 6f 6c 25  3d 31 36 8c f1 22 50 20  |.G. col%=16.."P |
00000e70  22 3a 4b 25 3d 4b 25 2b  31 3a 8b f2 66 69 6e 64  |":K%=K%+1:..find|
00000e80  72 6f 77 61 6e 64 63 6f  6c 28 70 6f 73 25 29 3a  |rowandcol(pos%):|
00000e90  f1 bd 28 63 6f 6c 25 2b  36 34 29 3b 72 6f 77 25  |..(col%+64);row%|
00000ea0  3a 4b 25 3d 30 0d 05 14  26 63 6f 6c 25 3d 30 3a  |:K%=0...&col%=0:|
00000eb0  f1 8a 30 2c 31 36 29 22  42 6c 61 63 6b 3a 20 22  |..0,16)"Black: "|
00000ec0  3b 62 6c 61 63 6b 25 3b  22 20 22 0d 05 1e 2f f1  |;black%;" ".../.|
00000ed0  8a 30 2c 31 37 29 22 57  68 69 74 65 3a 20 22 3b  |.0,17)"White: ";|
00000ee0  77 68 69 74 65 25 3b 22  20 22 3a e7 20 4b 25 3d  |white%;" ":. K%=|
00000ef0  32 8c 74 75 72 6e 25 3d  35 39 0d 05 28 05 e1 0d  |2.turn%=59..(...|
00000f00  05 32 12 dd f2 69 6e 73  74 72 75 63 74 69 6f 6e  |.2...instruction|
00000f10  73 0d 05 3c 21 ef 32 33  3b 38 32 30 32 3b 30 3b  |s..<!.23;8202;0;|
00000f20  30 3b 30 3b 3a d4 26 31  31 2c 32 2c 38 30 2c 32  |0;0;:.&11,2,80,2|
00000f30  35 35 0d 05 46 15 f1 8a  31 34 2c 33 29 3b 22 4f  |55..F...14,3);"O|
00000f40  54 48 45 4c 4c 4f 22 0d  05 5a 68 f1 27 27 22 20  |THELLO"..Zh.''" |
00000f50  20 54 68 65 20 6f 62 6a  65 63 74 20 6f 66 20 74  | The object of t|
00000f60  68 69 73 20 67 61 6d 65  20 20 69 73 20 74 6f 20  |his game  is to |
00000f70  68 61 76 65 22 27 22 74  68 65 20 20 6d 6f 73 74  |have"'"the  most|
00000f80  20 20 64 69 73 63 73 20  20 64 69 73 70 6c 61 79  |  discs  display|
00000f90  65 64 20 20 77 68 65 6e  20 20 74 68 65 22 27 22  |ed  when  the"'"|
00000fa0  62 6f 61 72 64 20 69 73  20 66 75 6c 6c 2e 22 0d  |board is full.".|
00000fb0  05 64 9e f1 22 20 20 61  74 20 65 61 63 68 20 74  |.d.."  at each t|
00000fc0  75 72 6e 20 20 74 68 65  20 6c 69 6e 65 20 6f 66  |urn  the line of|
00000fd0  20 6f 70 70 6f 6e 61 6e  74 73 22 27 22 64 69 73  | opponants"'"dis|
00000fe0  63 73 20 20 74 68 61 74  2c 20 20 62 79 20 70 6c  |cs  that,  by pl|
00000ff0  61 79 69 6e 67 20 20 79  6f 75 72 20 64 69 73 63  |aying  your disc|
00001000  2c 22 27 22 61 65 20 73  74 61 72 74 65 64 20 20  |,"'"ae started  |
00001010  61 6e 64 20 20 66 69 6e  69 73 68 65 64 20 20 77  |and  finished  w|
00001020  69 74 68 20 20 79 6f 75  72 22 27 22 64 69 73 63  |ith  your"'"disc|
00001030  73 20 61 6c 6c 20 63 68  61 6e 67 65 20 74 6f 20  |s all change to |
00001040  79 6f 75 72 20 63 6f 6c  6f 75 72 2e 22 0d 05 6e  |your colour."..n|
00001050  5c f1 22 20 20 49 66 2c  20 6f 6e 20 79 6f 75 72  |\."  If, on your|
00001060  20 74 75 72 6e 2c 20 79  6f 75 20 64 6f 6e 27 74  | turn, you don't|
00001070  20 68 61 76 65 20 61 22  27 22 6c 65 67 61 6c 20  | have a"'"legal |
00001080  70 6f 73 69 74 69 6f 6e  20 74 6f 20 6d 6f 76 65  |position to move|
00001090  20 74 68 65 6e 20 70 72  65 73 73 20 50 20 74 6f  | then press P to|
000010a0  22 27 22 70 61 73 73 2e  22 0d 05 78 4e f1 22 20  |"'"pass."..xN." |
000010b0  20 59 6f 75 20 20 63 61  6e 20 20 70 6c 61 79 20  | You  can  play |
000010c0  20 61 67 61 69 6e 73 74  20 20 65 69 74 68 65 72  | against  either|
000010d0  20 20 74 68 65 22 27 22  63 6f 6d 70 75 74 65 72  |  the"'"computer|
000010e0  20 20 6f 72 20 20 61 6e  6f 74 68 65 72 20 20 70  |  or  another  p|
000010f0  6c 61 79 65 72 2e 22 0d  05 82 21 f1 27 27 27 8a  |layer."...!.'''.|
00001100  36 29 22 50 72 65 73 73  20 53 50 41 43 45 20 74  |6)"Press SPACE t|
00001110  6f 20 70 6c 61 79 2e 22  0d 05 96 19 f5 3a 77 61  |o play.".....:wa|
00001120  69 74 24 3d be 3a fd 20  77 61 69 74 24 3d 22 20  |it$=.:. wait$=" |
00001130  22 0d 05 a0 05 e1 0d 05  aa 09 dd f2 77 69 6e 0d  |"...........win.|
00001140  05 b4 22 ef 35 3a e6 30  2c 33 3a ec 36 30 30 2c  |..".5:.0,3:.600,|
00001150  33 32 3a d4 26 31 31 2c  32 2c 38 30 2c 32 35 35  |32:.&11,2,80,255|
00001160  20 0d 05 be 27 e7 20 62  6c 61 63 6b 25 3e 77 68  | ...'. black%>wh|
00001170  69 74 65 25 f1 22 42 6c  61 63 6b 20 77 69 6e 73  |ite%."Black wins|
00001180  21 22 3a e5 8d 64 52 45  0d 05 c8 30 e7 20 77 68  |!":..dRE...0. wh|
00001190  69 74 65 25 3e 62 6c 61  63 6b 25 f1 22 57 68 69  |ite%>black%."Whi|
000011a0  74 65 20 77 69 6e 73 21  22 8b f1 22 43 6c 6f 73  |te wins!".."Clos|
000011b0  65 20 67 61 6d 65 21 22  0d 05 d2 2c ef 34 3a fb  |e game!"...,.4:.|
000011c0  31 3a f1 8a 30 2c 32 33  29 22 50 72 65 73 73 20  |1:..0,23)"Press |
000011d0  53 50 41 43 45 20 74 6f  20 70 6c 61 79 20 61 67  |SPACE to play ag|
000011e0  61 69 6e 22 0d 05 e6 0b  77 61 69 74 24 3d be 0d  |ain"....wait$=..|
000011f0  05 f0 05 e1 0d 05 fa 16  dd f2 65 64 67 65 3a e7  |..........edge:.|
00001200  20 47 25 3c 3e 30 20 8c  20 e1 0d 06 04 2e f7 8d  | G%<>0 . .......|
00001210  64 46 47 3a 51 25 3d 30  3a f5 3a 51 25 3d 51 25  |dFG:Q%=0:.:Q%=Q%|
00001220  2b 31 3a f3 63 68 65 63  6b 25 3a fd 20 63 68 65  |+1:.check%:. che|
00001230  63 6b 25 3d 70 6f 73 25  0d 06 0e 1c f7 8d 64 46  |ck%=pos%......dF|
00001240  47 3a e3 50 25 3d 31 b8  51 25 2b 31 3a f3 63 68  |G:.P%=1.Q%+1:.ch|
00001250  65 63 6b 25 0d 06 18 45  e7 20 50 25 3d 51 25 2d  |eck%...E. P%=Q%-|
00001260  31 80 70 6f 73 69 74 69  6f 6e 25 28 63 68 65 63  |1.position%(chec|
00001270  6b 25 29 3e 30 80 70 6f  73 69 74 69 6f 6e 25 28  |k%)>0.position%(|
00001280  63 68 65 63 6b 25 29 3c  3e 76 61 6c 75 65 25 8c  |check%)<>value%.|
00001290  77 65 69 67 68 74 25 3d  30 0d 06 22 46 20 e7 20  |weight%=0.."F . |
000012a0  50 25 3d 51 25 2b 31 80  70 6f 73 69 74 69 6f 6e  |P%=Q%+1.position|
000012b0  25 28 63 68 65 63 6b 25  29 3e 30 80 70 6f 73 69  |%(check%)>0.posi|
000012c0  74 69 6f 6e 25 28 63 68  65 63 6b 25 29 3c 3e 76  |tion%(check%)<>v|
000012d0  61 6c 75 65 25 8c 77 65  69 67 68 74 25 3d 30 0d  |alue%.weight%=0.|
000012e0  06 2c 05 ed 0d 06 36 05  e1 0d 06 40 1c dd f2 63  |.,....6....@...c|
000012f0  68 65 63 6b 65 64 67 65  3a e7 20 65 64 67 65 25  |heckedge:. edge%|
00001300  3d 30 8c 20 e1 0d 06 4a  44 e7 70 6f 73 69 74 69  |=0. ...JD.positi|
00001310  6f 6e 25 28 70 6f 73 25  2d 65 64 67 65 25 29 3e  |on%(pos%-edge%)>|
00001320  30 80 70 6f 73 69 74 69  6f 6e 25 28 70 6f 73 25  |0.position%(pos%|
00001330  2d 65 64 67 65 25 29 3c  3e 76 61 6c 75 65 25 8c  |-edge%)<>value%.|
00001340  77 65 69 67 68 74 25 3d  30 0d 06 54 40 e7 70 6f  |weight%=0..T@.po|
00001350  73 69 74 69 6f 6e 25 28  41 25 2b 65 64 67 65 25  |sition%(A%+edge%|
00001360  29 3e 30 80 70 6f 73 69  74 69 6f 6e 25 28 41 25  |)>0.position%(A%|
00001370  2b 65 64 67 65 25 29 3c  3e 76 61 6c 75 65 25 8c  |+edge%)<>value%.|
00001380  77 65 69 67 68 74 25 3d  30 0d 06 5e 05 e1 0d 06  |weight%=0..^....|
00001390  68 3e dd f2 63 6f 72 6e  65 72 3a e3 51 25 3d 31  |h>..corner:.Q%=1|
000013a0  b8 33 3a f3 70 6f 73 25  3a f2 77 65 69 67 68 3a  |.3:.pos%:.weigh:|
000013b0  f7 8d 64 6e 47 3a e3 20  53 25 3d 30 b8 52 25 2b  |..dnG:. S%=0.R%+|
000013c0  51 25 3a f3 54 25 3a ed  3a ed 3a e1 0d 06 72 0d  |Q%:.T%:.:.:...r.|
000013d0  dd f2 63 6f 6d 70 75 74  65 0d 06 7c 2c 47 25 3d  |..compute..|,G%=|
000013e0  31 3a 62 65 73 74 67 6f  25 3d 30 3a 69 6c 6c 65  |1:bestgo%=0:ille|
000013f0  67 61 6c 25 3d 30 3a e7  20 63 6f 6c 25 3d 31 36  |gal%=0:. col%=16|
00001400  8c 8d 74 5a 46 0d 06 86  10 e7 20 67 6f 25 3c 3e  |..tZF..... go%<>|
00001410  31 8c 20 e1 20 0d 06 90  0b 63 6f 6d 70 25 3d 32  |1. . ....comp%=2|
00001420  0d 06 9a 35 f7 8d 74 5e  47 3a e3 52 25 3d 31 b8  |...5..t^G:.R%=1.|
00001430  34 3a f3 70 6f 73 25 3a  f2 77 65 69 67 68 3a f7  |4:.pos%:.weigh:.|
00001440  8d 74 5e 47 3a e3 53 25  3d 31 b8 52 25 3a f3 54  |.t^G:.S%=1.R%:.T|
00001450  25 3a ed 3a ed 0d 06 a4  15 e7 20 62 65 73 74 67  |%:.:...... bestg|
00001460  6f 25 3e 30 8c 20 8d 44  6c 47 0d 06 ae 13 e7 20  |o%>0. .DlG..... |
00001470  63 6f 6c 25 3d 31 36 8c  20 8d 64 74 46 0d 06 b8  |col%=16. .dtF...|
00001480  1e e7 20 74 75 72 6e 25  3c 35 20 84 20 6d 69 73  |.. turn%<5 . mis|
00001490  73 25 3d 31 20 8c 20 8d  64 74 46 0d 06 c2 48 e3  |s%=1 . .dtF...H.|
000014a0  20 65 64 67 65 25 3d 2d  31 b8 31 88 32 3a f7 8d  | edge%=-1.1.2:..|
000014b0  74 68 47 3a e3 52 25 3d  31 b8 31 32 3a f3 70 6f  |thG:.R%=1.12:.po|
000014c0  73 25 3a f2 77 65 69 67  68 3a f7 8d 74 68 47 3a  |s%:.weigh:..thG:|
000014d0  e3 20 53 25 3d 31 b8 52  25 3a f3 54 25 3a ed 3a  |. S%=1.R%:.T%:.:|
000014e0  ed 3a ed 0d 06 cc 4b e3  20 65 64 67 65 25 3d 2d  |.:....K. edge%=-|
000014f0  31 30 b8 31 30 88 32 30  3a f7 8d 74 72 47 3a e3  |10.10.20:..trG:.|
00001500  52 25 3d 31 b8 31 32 3a  f3 70 6f 73 25 3a f2 77  |R%=1.12:.pos%:.w|
00001510  65 69 67 68 3a f7 8d 74  72 47 3a e3 20 53 25 3d  |eigh:..trG:. S%=|
00001520  31 b8 52 25 3a f3 54 25  3a ed 3a ed 3a ed 0d 06  |1.R%:.T%:.:.:...|
00001530  d6 1d 65 64 67 65 25 3d  30 3a e7 20 62 65 73 74  |..edge%=0:. best|
00001540  67 6f 25 3e 30 8c 20 8d  44 6c 47 0d 06 e0 3b 47  |go%>0. .DlG...;G|
00001550  25 3d 30 3a f7 8d 74 7c  47 3a e3 52 25 3d 31 b8  |%=0:..t|G:.R%=1.|
00001560  31 36 3a f3 70 6f 73 25  3a f2 77 65 69 67 68 3a  |16:.pos%:.weigh:|
00001570  f7 8d 74 7c 47 3a e3 53  25 3d 31 b8 52 25 3a f3  |..t|G:.S%=1.R%:.|
00001580  54 25 3a ed 3a ed 0d 06  ea 19 47 25 3d 31 3a e7  |T%:.:.....G%=1:.|
00001590  62 65 73 74 67 6f 25 3e  30 8c 20 8d 44 6c 47 0d  |bestgo%>0. .DlG.|
000015a0  06 f4 36 f7 8d 64 50 47  3a e3 52 25 3d 31 b8 31  |..6..dPG:.R%=1.1|
000015b0  32 3a f3 70 6f 73 25 3a  f2 77 65 69 67 68 3a f7  |2:.pos%:.weigh:.|
000015c0  8d 64 50 47 3a e3 53 25  3d 31 b8 52 25 3a f3 54  |.dPG:.S%=1.R%:.T|
000015d0  25 3a ed 3a ed 0d 06 fe  1d e7 20 62 65 73 74 67  |%:.:...... bestg|
000015e0  6f 25 3e 30 80 20 6d 69  73 73 25 3d 30 8c 8d 44  |o%>0. miss%=0..D|
000015f0  6c 47 0d 07 08 47 f7 8d  64 5a 47 3a e3 52 25 3d  |lG...G..dZG:.R%=|
00001600  31 b8 31 36 3a f3 70 6f  73 25 3a f2 77 65 69 67  |1.16:.pos%:.weig|
00001610  68 3a f7 8d 64 5a 47 3a  e3 53 25 3d 31 b8 52 25  |h:..dZG:.S%=1.R%|
00001620  3a f3 54 25 3a ed 3a ed  3a e7 62 65 73 74 67 6f  |:.T%:.:.:.bestgo|
00001630  25 3e 30 8c 20 8d 44 6c  47 0d 07 12 47 f7 8d 64  |%>0. .DlG...G..d|
00001640  64 47 3a e3 52 25 3d 31  b8 31 36 3a f3 70 6f 73  |dG:.R%=1.16:.pos|
00001650  25 3a f2 77 65 69 67 68  3a f7 8d 64 64 47 3a e3  |%:.weigh:..ddG:.|
00001660  53 25 3d 31 b8 52 25 3a  f3 54 25 3a ed 3a ed 3a  |S%=1.R%:.T%:.:.:|
00001670  e7 62 65 73 74 67 6f 25  3e 30 8c 20 8d 44 6c 47  |.bestgo%>0. .DlG|
00001680  0d 07 1c 13 e7 20 6d 69  73 73 25 3d 31 8c 20 8d  |..... miss%=1. .|
00001690  44 62 47 0d 07 26 18 f7  8d 64 6e 47 3a e3 52 25  |DbG..&...dnG:.R%|
000016a0  3d 30 b8 31 32 3a f3 70  6f 73 25 0d 07 30 2b e7  |=0.12:.pos%..0+.|
000016b0  52 25 83 34 3d 30 80 70  6f 73 69 74 69 6f 6e 25  |R%.4=0.position%|
000016c0  28 70 6f 73 25 29 3d 76  61 6c 75 65 25 8c 20 f2  |(pos%)=value%. .|
000016d0  63 6f 72 6e 65 72 0d 07  3a 2b f7 8d 64 6e 47 3a  |corner..:+..dnG:|
000016e0  e3 53 25 3d 30 b8 52 25  3a f3 54 25 3a ed 3a ed  |.S%=0.R%:.T%:.:.|
000016f0  3a e7 62 65 73 74 67 6f  25 3e 30 8c 20 8d 44 6c  |:.bestgo%>0. .Dl|
00001700  47 0d 07 44 18 f7 8d 64  6e 47 3a e3 52 25 3d 30  |G..D...dnG:.R%=0|
00001710  b8 31 32 3a f3 70 6f 73  25 0d 07 4e 26 e7 52 25  |.12:.pos%..N&.R%|
00001720  83 34 3d 30 80 70 6f 73  69 74 69 6f 6e 25 28 70  |.4=0.position%(p|
00001730  6f 73 25 29 3e 30 8c 20  f2 63 6f 72 6e 65 72 0d  |os%)>0. .corner.|
00001740  07 58 2a f7 8d 64 6e 47  3a e3 53 25 3d 30 b8 52  |.X*..dnG:.S%=0.R|
00001750  25 3a f3 54 25 3a ed 3a  ed 3a e7 62 65 73 74 67  |%:.T%:.:.:.bestg|
00001760  6f 25 3e 30 8c 8d 44 6c  47 0d 07 62 36 f7 8d 64  |o%>0..DlG..b6..d|
00001770  6e 47 3a e3 52 25 3d 31  b8 31 36 3a f3 70 6f 73  |nG:.R%=1.16:.pos|
00001780  25 3a f2 77 65 69 67 68  3a f7 8d 64 6e 47 3a e3  |%:.weigh:..dnG:.|
00001790  53 25 3d 31 b8 52 25 3a  f3 54 25 3a ed 3a ed 0d  |S%=1.R%:.T%:.:..|
000017a0  07 6c 10 e7 20 63 6f 6c  25 3d 31 36 8c 20 e1 0d  |.l.. col%=16. ..|
000017b0  07 76 25 63 6f 6d 70 25  3d 31 3a e7 62 65 73 74  |.v%comp%=1:.best|
000017c0  67 6f 25 3e 30 8c 70 6f  73 25 3d 63 6f 6d 70 67  |go%>0.pos%=compg|
000017d0  6f 25 3a e1 0d 07 80 40  d4 26 31 31 2c 31 2c 32  |o%:....@.&11,1,2|
000017e0  2c 31 32 3a ef 34 3a f1  8a 30 2c 35 29 3b 22 50  |,12:.4:..0,5);"P|
000017f0  61 73 73 20 2d 20 6e 6f  22 27 22 6c 65 67 61 6c  |ass - no"'"legal|
00001800  20 6d 6f 76 65 22 3a d1  3d 30 3a f5 20 fd 20 91  | move":.=0:. . .|
00001810  3e 32 30 30 0d 07 8a 13  63 6f 6c 25 3d 31 36 3a  |>200....col%=16:|
00001820  70 61 73 73 25 3d 31 0d  07 94 05 e1 0d 07 9e 10  |pass%=1.........|
00001830  dc 31 32 2c 31 39 2c 38  39 2c 38 32 0d 07 a8 28  |.12,19,89,82...(|
00001840  dc 31 34 2c 31 35 2c 31  36 2c 31 37 2c 38 34 2c  |.14,15,16,17,84,|
00001850  38 35 2c 38 36 2c 38 37  2c 31 33 2c 31 38 2c 38  |85,86,87,13,18,8|
00001860  33 2c 38 38 0d 07 b2 28  dc 33 32 2c 34 32 2c 35  |3,88...(.32,42,5|
00001870  32 2c 36 32 2c 33 39 2c  34 39 2c 35 39 2c 36 39  |2,62,39,49,59,69|
00001880  2c 32 32 2c 37 32 2c 32  39 2c 37 39 0d 07 bc 34  |,22,72,29,79...4|
00001890  dc 31 34 2c 31 37 2c 33  39 2c 36 39 2c 38 37 2c  |.14,17,39,69,87,|
000018a0  38 34 2c 36 32 2c 33 32  2c 31 35 2c 31 36 2c 34  |84,62,32,15,16,4|
000018b0  39 2c 35 39 2c 38 35 2c  38 36 2c 34 32 2c 35 32  |9,59,85,86,42,52|
000018c0  0d 07 c6 4c dc 31 33 2c  31 34 2c 31 35 2c 31 36  |...L.13,14,15,16|
000018d0  2c 31 37 2c 31 38 2c 32  39 2c 33 39 2c 34 39 2c  |,17,18,29,39,49,|
000018e0  35 39 2c 36 39 2c 37 39  2c 38 38 2c 38 37 2c 38  |59,69,79,88,87,8|
000018f0  36 2c 38 35 2c 38 34 2c  38 33 2c 37 32 2c 36 32  |6,85,84,83,72,62|
00001900  2c 35 32 2c 34 32 2c 33  32 2c 32 32 0d 07 d0 28  |,52,42,32,22...(|
00001910  dc 33 37 2c 33 36 2c 33  35 2c 33 34 2c 34 34 2c  |.37,36,35,34,44,|
00001920  35 34 2c 36 34 2c 36 35  2c 36 36 2c 36 37 2c 35  |54,64,65,66,67,5|
00001930  37 2c 34 37 0d 07 da 34  dc 32 34 2c 32 35 2c 32  |7,47...4.24,25,2|
00001940  36 2c 32 37 2c 33 38 2c  34 38 2c 35 38 2c 36 38  |6,27,38,48,58,68|
00001950  2c 37 37 2c 37 36 2c 37  35 2c 37 34 2c 36 33 2c  |,77,76,75,74,63,|
00001960  35 33 2c 34 33 2c 33 33  0d 07 e4 34 dc 33 32 2c  |53,43,33...4.32,|
00001970  34 32 2c 35 32 2c 36 32  2c 38 34 2c 38 35 2c 38  |42,52,62,84,85,8|
00001980  36 2c 38 37 2c 36 39 2c  35 39 2c 34 39 2c 33 39  |6,87,69,59,49,39|
00001990  2c 31 37 2c 31 36 2c 31  35 2c 31 34 0d 07 ee 34  |,17,16,15,14...4|
000019a0  dc 31 39 2c 31 38 2c 32  38 2c 32 39 2c 38 39 2c  |.19,18,28,29,89,|
000019b0  37 39 2c 37 38 2c 38 38  2c 38 32 2c 38 33 2c 37  |79,78,88,82,83,7|
000019c0  33 2c 37 32 2c 31 32 2c  32 32 2c 32 33 2c 31 33  |3,72,12,22,23,13|
000019d0  0d 07 f8 20 dc 34 35 2c  32 2c 30 2c 34 36 2c 31  |... .45,2,0,46,1|
000019e0  2c 33 2c 35 35 2c 31 2c  33 2c 35 36 2c 32 2c 30  |,3,55,1,3,56,2,0|
000019f0  0d 08 02 1c dc 31 2c 39  2c 31 30 2c 31 31 2c 2d  |.....1,9,10,11,-|
00001a00  31 2c 2d 39 2c 2d 31 30  2c 2d 31 31 0d 08 0c 05  |1,-9,-10,-11....|
00001a10  e0 0d 08 16 17 eb 36 3a  f6 3a f1 22 20 61 74 20  |......6:.:." at |
00001a20  6c 69 6e 65 20 22 3b 9e  0d 08 20 05 e0 0d ff     |line ";... ....|
00001a2f
GAMES1/OTHELLO.m0
GAMES1/OTHELLO.m1
GAMES1/OTHELLO.m2
GAMES1/OTHELLO.m4
GAMES1/OTHELLO.m5