Home » Personal collection » Acorn ADFS disks » Electron » Digital_pictures_2.ADF » GAMES1/3D-OXO

GAMES1/3D-OXO

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/3D-OXO
Read OK:
File size: 1C6D bytes
Load address: FFFF0E00
Exec address: FFFF8023
Duplicates

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

File contents
   10REM 3D NOUGHTS AND CROSSES
   20REM PROGRAM SUBJECT TO COPYRIGHT
   30REM ORBIT
   40ONERROR:ONERROROFF:PROCerror:MODE6:END
   50COMPCOLOUR=9
   60YOURCOLOUR=2
   70PROCprint_titles("3D-NOUGHTS AND CROSSES"," ORBIT")
   80PRINTTAB(2,20);"Press 'space' bar for instructions";
   90REPEAT
  100X=RND(1)
  110UNTILINKEY(-99)
  120PROCinstructions
  130MODE5
  140VDU19,2,COMPCOLOUR,0,0,0
  150VDU19,1,YOURCOLOUR,0,0,0
  160MEX=10:MEY=26:REM MESSAGE COORDS  
  170NEX=10:NEY=10:REM COORDS FOR YOUR MOVE  
  180LEX=11:LEY=1:REM COORDS FOR LAST MOVE
  190SFX=4:REM SCALE FACTOR x
  200SFY=4:REM SCALE FACTOR y
  210SFD=45:REM DISTANCE BETWEEN PLANES 
  220RESTORE
  230DIMM(63,6)
  240DIMN(75),E(18),W(63),P(63)
  250DIMH(7),C(10),G(63),S(3,7)
  260DIMQ(15),B(13),YY(4),Y(3)
  270CLS
  280CLS
  290FORA%=0TO6
  300FORB%=0TO63
  310READM(B%,A%)
  320NEXT
  330NEXT
  340FORA%=0TO15:READQ(A%):NEXT
  350FORA%=0TO7:READH(A%):NEXT
  360FORA%=0TO63:READW(A%):NEXT
  370FORA%=0TO10:READC(A%):NEXT
  380FORA%=0TO63:READP(A%):NEXT
  390FORA%=0TO13:READB(A%):NEXT
  400FORA%=0TO75:N(A%)=0:NEXT
  410FORA%=0TO63:G(A%)=0:NEXT
  420FORA%=0TO18:E(A%)=0:NEXT
  430M=0:Q=76
  440GOSUB1610
  450C=22:M=1
  460*FX15
  470PRINTTAB(NEX,NEY);"Shall I go"
  480PRINTTAB(NEX,NEY+1);"first";:INPUTA$
  490PROCLEAR(NEX,NEY)
  500GOSUB1090
  510IFF=-1THEN470
  520IFF=1THEN720
  530M=1
  540PROCLEAR(MEX,MEY):PROCLEAR(NEX,NEY):PRINTTAB(NEX,NEY);" Your move"
  550PRINTTAB(NEX+1,NEY+1);:INPUTF
  560PROCLEAR(NEX,NEY)
  570IFF<111THEN600
  580F=16*F-159*(FDIV10)-6*(FDIV100)-21
  590IFF>=0ANDF<=63THEN610
  600PRINTTAB(MEX,MEY);"  ILLEGAL  ":GOTO540
  610IFG(F)THENPRINTTAB(MEX,MEY);" OCCUPIED":GOTO540
  620PROCLEAR(MEX,MEY)
  630M=M+1:G(F)=1:GOSUB940
  640FORB=0TO6+3*(M(F,6)=76)
  650N=N(M(F,B)):E=E(M(F,B)/4)
  660IFN=3THENPRINTTAB(MEX,MEY);"   YOU WIN ":GOTO1020
  670IF(NMOD4)=0ANDN>3THENQ=Q-1
  680IFQ=0THEN1010
  690N(M(F,B))=N+1
  700E(M(F,B)DIV4)=E-((EMOD8)<7)
  710NEXTB
  720PRINTTAB(MEX,MEY);" THINKING"
  730N=((M-1)DIV4)*8:P=-10000
  740FORA=0TO63
  750IFG(A)THEN830
  760T=0:E=0:B=6+3*(M(A,6)=76):G=B/3*7-7
  770FORC=0TOB
  780D=Q(N(M(A,C))):T=T+W(N+D)+P(E(M(A,C)DIV4))*B(G+C)
  790E=E+H(D)
  800NEXTC
  810IFE>10THENE=10
  820T=T+C(E):IFT+RND(1)>PTHENP=T+.5:F=A
  830NEXTA
  840G(F)=2:GOSUB940
  850FORB=0TO6+3*(M(F,6)=76)
  860N=N(M(F,B)):E=E(M(F,B)DIV4)
  870IFN=12THENPRINTTAB(MEX,MEY);"   I WIN  ":GOTO1020
  880IFN<4ANDN<>0THENQ=Q-1
  890IFQ=0THEN1010
  900N(M(F,B))=N+4
  910E(M(F,B)DIV4)=E-8*(E<56)
  920NEXTB
  930GOTO540
  940C=FDIV16:E=FMOD16
  950D=EDIV4:E=EMOD4:B=36-3*C:A=20+10*D+2*E
  960GOSUB2240
  970IFM=0THENRETURN
  980PRINTTAB(LEX,LEY);"Last move"
  990PRINTTAB(LEX+3,LEY+1);D+1;E+1;C+1
 1000RETURN
 1010PRINTTAB(MEX,MEY);"   A DRAW "
 1020REM COME HERE AT END OF GAME
 1030REM--------------------------
 1040PRINTTAB(0,29);:INPUT"Do you want another game ",A$
 1050GOSUB1090
 1060IFF=1THEN400
 1070IFF=-1THEN1040
 1080END
 1090IFLEFT$(A$,1)="Y"THENF=1:RETURN
 1100IFLEFT$(A$,1)="N"THENF=0:RETURN
 1110F=-1:RETURN
 1120DATA 0,0,0,0,1,37,38,1,2,41,42,2,3,3,3,3
 1130DATA 32,4,4,35,5,5,5,5,6,6,6,6,44,7,7,47
 1140DATA 32,8,8,35,9,9,9,9,10,10,10,10,44,11,11,47
 1150DATA 12,12,12,12,13,37,38,13,14,41,42,14,15,15,15,15
 1160DATA 16,33,34,28,16,20,24,28,16,20,24,28,16,45,46,28
 1170DATA 17,21,25,29,36,21,25,39,40,21,25,43,17,21,25,29
 1180DATA 18,22,26,30,36,22,26,39,40,22,26,43,18,22,26,30
 1190DATA 19,33,34,31,19,23,27,31,19,23,27,31,19,45,46,31
 1200DATA 32,20,24,35,36,1,1,39,40,2,2,43,44,20,24,47
 1210DATA 4,33,34,4,17,37,38,29,17,41,42,29,7,45,46,7
 1220DATA 8,33,34,8,18,37,38,30,18,41,42,30,11,45,46,11
 1230DATA 32,23,27,35,36,13,13,39,40,14,14,43,44,23,27,47
 1240DATA 48,65,66,52,57,48,52,61,58,52,48,62,52,69,70,48
 1250DATA 49,56,60,53,64,49,53,67,68,53,49,71,53,59,63,49
 1260DATA 50,60,56,54,68,50,54,71,64,54,50,67,54,63,59,50
 1270DATA 51,69,70,55,61,51,55,57,62,55,51,58,55,65,66,51
 1280DATA 56,76,76,60,76,76,76,76,76,76,76,76,59,76,76,63
 1290DATA 76,76,76,76,76,57,61,76,76,58,62,76,76,76,76,76
 1300DATA 76,76,76,76,76,61,57,76,76,62,58,76,76,76,76,76
 1310DATA 60,76,76,56,76,76,76,76,76,76,76,76,63,76,76,59
 1320DATA 64,76,76,67,76,76,76,76,76,76,76,76,68,76,76,71
 1330DATA 76,76,76,76,76,65,66,76,76,69,70,76,76,76,76,76
 1340DATA 76,76,76,76,76,69,70,76,76,65,66,76,76,76,76,76
 1350DATA 68,76,76,71,76,76,76,76,76,76,76,76,64,76,76,67
 1360DATA 72,76,76,73,76,76,76,76,76,76,76,76,74,76,76,75
 1370DATA 76,76,76,76,76,72,73,76,76,74,75,76,76,76,76,76
 1380DATA 76,76,76,76,76,75,74,76,76,73,72,76,76,76,76,76
 1390DATA 75,76,76,74,76,76,76,76,76,76,76,76,73,76,76,72
 1400DATA 0,4,5,6,1,7,7,7,2,7,7,7,3,7,7,7
 1410DATA 0,0,5,0,0,1,0,0
 1420DATA 5,10,1,4000,1,4,700,0
 1430DATA 5,10,1,4000,1,5,700,0
 1440DATA 5,15,5,4000,5,6,700,0
 1450DATA 5,15,25,4000,1,12,700,0
 1460DATA 25,20,40,4000,1,15,700,0
 1470DATA 25,30,40,4000,1,15,700,0
 1480DATA 25,1,1,4000,10,40,700,0
 1490DATA 25,1,1,4000,10,40,700,0
 1500DATA 0,0,160,180,200,0,20,180,200,200,400
 1510DATA 0,0,0,5,50,100,200,300
 1520DATA 0,0,0,0,2,60,80,100
 1530DATA 0,0,0,0,0,1,40,60
 1540DATA 5,0,0,0,0,0,1,20
 1550DATA 55,5,0,0,-5,0,0,0
 1560DATA 60,50,10,0,0,-20,0,0
 1570DATA 120,100,20,0,0,0,-20,0
 1580DATA 150,120,25,0,0,0,0,-20
 1590DATA 1,1,1.5,1,1,1,1
 1600DATA 1.5,1.5,1.5,1.5,1.5,1.5,1.5
 1610CLS
 1620A=-12
 1630FORT=0TO3
 1640RESTORE1730
 1650A=A+SFD-T
 1660VDU29,80;5*A+1;
 1670FORR=0TO4
 1680READX,XX,TV
 1690YY(R)=TV
 1700PROCMOVE(X,YY(R)-R*T,3)
 1710PROCDRAW(XX,YY(R)-R*T)
 1720NEXT
 1730DATA 0,100,1,14,107,17,25,112,30,34,116,41,40,120,50
 1740Y=50-T*4
 1750FORR=0TO4
 1760PROCMOVE(25*R,1,3)
 1770PROCDRAW(20*R+40,Y)
 1780NEXT
 1790REM **** PLOT NUMBERS ****
 1800REM------------------------
 1810RESTORE1870
 1820FORR=0TO3
 1830FORRR=1TO7
 1840READS(R,RR)
 1850NEXT
 1860NEXT
 1870DATA 0,1,1,0,0,0,0
 1880DATA 1,0,1,1,0,1,1
 1890DATA 1,1,1,1,0,0,1
 1900DATA 0,1,1,0,1,0,1
 1910FORR=0TO3
 1920RESTORE2000
 1930FORRR=1TO7
 1940READX,Y,XX,YY
 1950IFS(R,RR)=0THEN1980
 1960X1=12+25*R
 1970GOSUB2050:GOSUB2080:GOSUB2160
 1980NEXT
 1990NEXT
 2000DATA 0,0,2,0,2,0,2,2,2,2,2,4,0,4,2,4,0,2,0,4,0,0,0,2,0,2,2,2
 2010NEXT
 2020REM Draw layer numbers
 2030PRINTTAB(0,6);1'TAB(0,12);2'TAB(0,19);3'TAB(0,26);4
 2040GOTO2200
 2050PROCMOVE(X+X1,Y-1,3)
 2060PROCDRAW(XX+X1,YY-1)
 2070RETURN
 2080ONR+1GOTO2090,2100,2110,2120
 2090X1=107:Y1=6-R*1.5-T:GOTO2130
 2100X1=113:Y1=22-R*1.9-1.5*T:GOTO2130
 2110X1=118:Y1=33-R*2.8+3*(2-T):GOTO2130
 2120X1=123:Y1=56-R*4.6-3*T
 2130PROCMOVE(X+X1,Y+Y1,3)
 2140PROCDRAW(XX+X1,YY+Y1)
 2150RETURN
 2160IFR<>3-TTHENRETURN
 2170PROCMOVE(2*X%-10,2*Y%,1)
 2180REM PROCDRAW(2*XX-10,2*YY)
 2190RETURN
 2200FORR%=0TO3:READY(R%):NEXT
 2210DATA 270,200,129,55
 2220VDU29,80;1;
 2230RETURN
 2240DY=49-(3-D)*4
 2250DX=20*(E+2)-25*E
 2260XD=20*(E+3)-25*(E+1)
 2270VDU29,80;Y(D)*3;
 2280Y1=YY(C)-C*(3-D)+2
 2290Y2=YY(C+1)-(C+1)*(3-D)-2
 2300FORY=Y1TOY2
 2310PROCMOVE(Y*DX/DY+25*E+2,Y,G(F))
 2320PROCDRAW(Y*XD/DY+25*E+23,Y)
 2330NEXT
 2340RETURN
 2350DEFPROCFILL(X1%,Y1%,X2%,Y2%,COL%)
 2360PROCMOVE(X1%,Y1%,COL%)
 2370PROCMOVE(X2%,Y1%,COL%)
 2380PLOT85,X1%,Y2%
 2390PLOT85,X2%,Y2%
 2400ENDPROC
 2410DEFPROCMOVE(X%,Y%,C%)
 2420GCOL0,C%
 2430MOVEX%*SFX,Y%*SFY
 2440ENDPROC
 2450DEFPROCDRAW(X%,Y%)
 2460DRAWX%*SFX,Y%*SFY
 2470ENDPROC
 2480DEFPROCLEAR(X,Y)
 2490PRINTTAB(X,Y);"           "
 2500PRINTTAB(X,Y+1);"        "
 2510ENDPROC
 2520DEFPROCprint_titles(prog$,author$)
 2530LOCALbeeb$,row,let
 2540VDU22,6
 2550beeb$=" ORBIT"+STRING$(4,"   ORBIT")
 2560VDU26:CLS:row=0:let=0
 2570VDU19,7,1,0,0,0
 2580REPEAT:let=let+1
 2590VDU19,7,1,0,0,0
 2600PRINTMID$(" ELBUG ",let,1);
 2610PRINTTAB(38);MID$(" ELBUG ",let,1)
 2620let=letMOD6:row=row+1
 2630UNTILrow=24
 2640PRINTbeeb$;
 2650VDU26:PRINTbeeb$
 2660FORrow=2TO8
 2670PRINTTAB(19-LEN(prog$)DIV2,row);prog$
 2680NEXTrow
 2690PRINTTAB(12,11);"PROGRAM  AUTHOR"
 2700PRINTTAB(19-LEN(author$)DIV2,13);author$
 2710PRINTTAB(3,19);
 2720ENDPROC
 2730DEFPROCerror
 2740IFERR<>17THENREPORT:PRINT" at line";ERL
 2750ENDPROC
 2760DEFPROCinstructions
 2770VDU22,6
 2780PRINT"This game is played on a 4x4x4 board.";
 2790PRINT"To win you must get a line of four markers in a straight line in any direction."
 2800PRINT"The program displays a three dimensionallooking board,which consists of 4 layersof 4 rows and 4 columns each."
 2810PRINT"   The simplest winning line would be "'"entirely on the top surface (say) but"'"more complex ones are more difficult to"'"spot,for instance starting";
 2820PRINT" in one of thetop corners, going down through the "'"centre to the opposite bottom corner."
 2830PRINT"   When you run the program, you will "'"be asked whether you want to go first."'"Answer 'Y' or 'N' and press return."
 2840PRINT"   To enter your move you type a 3 digitnumber such as 142, this means that you"'"want your marker placed on layer 1 (the"'"top layer), row 4, and column 2."
 2850PRINT"The computer responds using the same"'"notation."
 2860PRINT'TAB(5);"Press 'space' bar to begin";
 2870REPEAT
 2880X=RND(1)
 2890UNTILINKEY(-99)
 2900ENDPROC

� 3D NOUGHTS AND CROSSES
"� PROGRAM SUBJECT TO COPYRIGHT
� ORBIT
(�::�error:�6:�
2COMPCOLOUR=9
<YOURCOLOUR=2
F4�print_titles("3D-NOUGHTS AND CROSSES"," ORBIT")
P1�2,20);"Press 'space' bar for instructions";
Z�
d
X=�(1)
n��(-99)
x�instructions
��5
��19,2,COMPCOLOUR,0,0,0
��19,1,YOURCOLOUR,0,0,0
�$MEX=10:MEY=26:� MESSAGE COORDS  
�*NEX=10:NEY=10:� COORDS FOR YOUR MOVE  
�'LEX=11:LEY=1:� COORDS FOR LAST MOVE
�SFX=4:� SCALE FACTOR x
�SFY=4:� SCALE FACTOR y
�%SFD=45:� DISTANCE BETWEEN PLANES 
��
��M(63,6)
��N(75),E(18),W(63),P(63)
��H(7),C(10),G(63),S(3,7)
�Q(15),B(13),YY(4),Y(3)
�
�
"�A%=0�6
,�B%=0�63
6
�M(B%,A%)
@�
J�
T�A%=0�15:�Q(A%):�
^�A%=0�7:�H(A%):�
h�A%=0�63:�W(A%):�
r�A%=0�10:�C(A%):�
|�A%=0�63:�P(A%):�
��A%=0�13:�B(A%):�
��A%=0�75:N(A%)=0:�
��A%=0�63:G(A%)=0:�
��A%=0�18:E(A%)=0:�
�M=0:Q=76
�	�DJF
�C=22:M=1
�	*FX15
��NEX,NEY);"Shall I go"
��NEX,NEY+1);"first";:�A$
��LEAR(NEX,NEY)
�	�DBD
��F=-1��dVA

�F=1��dPB
M=1
9�LEAR(MEX,MEY):�LEAR(NEX,NEY):�NEX,NEY);" Your move"
&�NEX+1,NEY+1);:�F
0�LEAR(NEX,NEY)
:�F<111��DXB
D"F=16*F-159*(F�10)-6*(F�100)-21
N�F>=0�F<=63��DbB
X"�MEX,MEY);"  ILLEGAL  ":�T\B
b&�G(F)��MEX,MEY);" OCCUPIED":�T\B
l�LEAR(MEX,MEY)
vM=M+1:G(F)=1:�tlC
��B=0�6+3*(M(F,6)=76)
�N=N(M(F,B)):E=E(M(F,B)/4)
�'�N=3��MEX,MEY);"   YOU WIN ":�d|C
��(N�4)=0�N>3�Q=Q-1
�
�Q=0��drC
�N(M(F,B))=N+1
�E(M(F,B)�4)=E-((E�8)<7)
��B
��MEX,MEY);" THINKING"
�N=((M-1)�4)*8:P=-10000
��A=0�63
��G(A)��T~C
�'T=0:E=0:B=6+3*(M(A,6)=76):G=B/3*7-7

�C=0�B
3D=Q(N(M(A,C))):T=T+W(N+D)+P(E(M(A,C)�4))*B(G+C)
E=E+H(D)
 �C
*�E>10�E=10
4!T=T+C(E):�T+�(1)>P�P=T+.5:F=A
>�A
HG(F)=2:�tlC
R�B=0�6+3*(M(F,6)=76)
\N=N(M(F,B)):E=E(M(F,B)�4)
f'�N=12��MEX,MEY);"   I WIN  ":�d|C
p�N<4�N<>0�Q=Q-1
z
�Q=0��drC
�N(M(F,B))=N+4
�E(M(F,B)�4)=E-8*(E<56)
��B
�	�T\B
�C=F�16:E=F�16
�&D=E�4:E=E�4:B=36-3*C:A=20+10*D+2*E
�	�d@H
�
�M=0��
��LEX,LEY);"Last move"
��LEX+3,LEY+1);D+1;E+1;C+1
��
��MEX,MEY);"   A DRAW "
�� COME HERE AT END OF GAME
�--------------------------
,�0,29);:�"Do you want another game ",A$
	�DBD
$
�F=1��tPA
.�F=-1��TPD
8�
B�A$,1)="Y"�F=1:�
L�A$,1)="N"�F=0:�
V
F=-1:�
`)� 0,0,0,0,1,37,38,1,2,41,42,2,3,3,3,3
j)� 32,4,4,35,5,5,5,5,6,6,6,6,44,7,7,47
t/� 32,8,8,35,9,9,9,9,10,10,10,10,44,11,11,47
~5� 12,12,12,12,13,37,38,13,14,41,42,14,15,15,15,15
�5� 16,33,34,28,16,20,24,28,16,20,24,28,16,45,46,28
�5� 17,21,25,29,36,21,25,39,40,21,25,43,17,21,25,29
�5� 18,22,26,30,36,22,26,39,40,22,26,43,18,22,26,30
�5� 19,33,34,31,19,23,27,31,19,23,27,31,19,45,46,31
�1� 32,20,24,35,36,1,1,39,40,2,2,43,44,20,24,47
�1� 4,33,34,4,17,37,38,29,17,41,42,29,7,45,46,7
�3� 8,33,34,8,18,37,38,30,18,41,42,30,11,45,46,11
�5� 32,23,27,35,36,13,13,39,40,14,14,43,44,23,27,47
�5� 48,65,66,52,57,48,52,61,58,52,48,62,52,69,70,48
�5� 49,56,60,53,64,49,53,67,68,53,49,71,53,59,63,49
�5� 50,60,56,54,68,50,54,71,64,54,50,67,54,63,59,50
�5� 51,69,70,55,61,51,55,57,62,55,51,58,55,65,66,51
5� 56,76,76,60,76,76,76,76,76,76,76,76,59,76,76,63

5� 76,76,76,76,76,57,61,76,76,58,62,76,76,76,76,76
5� 76,76,76,76,76,61,57,76,76,62,58,76,76,76,76,76
5� 60,76,76,56,76,76,76,76,76,76,76,76,63,76,76,59
(5� 64,76,76,67,76,76,76,76,76,76,76,76,68,76,76,71
25� 76,76,76,76,76,65,66,76,76,69,70,76,76,76,76,76
<5� 76,76,76,76,76,69,70,76,76,65,66,76,76,76,76,76
F5� 68,76,76,71,76,76,76,76,76,76,76,76,64,76,76,67
P5� 72,76,76,73,76,76,76,76,76,76,76,76,74,76,76,75
Z5� 76,76,76,76,76,72,73,76,76,74,75,76,76,76,76,76
d5� 76,76,76,76,76,75,74,76,76,73,72,76,76,76,76,76
n5� 75,76,76,74,76,76,76,76,76,76,76,76,73,76,76,72
x%� 0,4,5,6,1,7,7,7,2,7,7,7,3,7,7,7
�� 0,0,5,0,0,1,0,0
�� 5,10,1,4000,1,4,700,0
�� 5,10,1,4000,1,5,700,0
�� 5,15,5,4000,5,6,700,0
�� 5,15,25,4000,1,12,700,0
�� 25,20,40,4000,1,15,700,0
�� 25,30,40,4000,1,15,700,0
�� 25,1,1,4000,10,40,700,0
�� 25,1,1,4000,10,40,700,0
�*� 0,0,160,180,200,0,20,180,200,200,400
�� 0,0,0,5,50,100,200,300
�� 0,0,0,0,2,60,80,100
�� 0,0,0,0,0,1,40,60
� 5,0,0,0,0,0,1,20
� 55,5,0,0,-5,0,0,0
� 60,50,10,0,0,-20,0,0
"� 120,100,20,0,0,0,-20,0
,� 150,120,25,0,0,0,0,-20
6� 1,1,1.5,1,1,1,1
@!� 1.5,1.5,1.5,1.5,1.5,1.5,1.5
J�
T	A=-12
^
�T=0�3
h	��dBF
r
A=A+SFD-T
|�29,80;5*A+1;
�
�R=0�4
��X,XX,TV
�YY(R)=TV
��MOVE(X,YY(R)-R*T,3)
��DRAW(XX,YY(R)-R*T)
��
�5� 0,100,1,14,107,17,25,112,30,34,116,41,40,120,50
�Y=50-T*4
�
�R=0�4
��MOVE(25*R,1,3)
��DRAW(20*R+40,Y)
��
�� **** PLOT NUMBERS ****
�------------------------
	��DNG

�R=0�3
&�RR=1�7
0�S(R,RR)
:�
D�
N� 0,1,1,0,0,0,0
X� 1,0,1,1,0,1,1
b� 1,1,1,1,0,0,1
l� 0,1,1,0,1,0,1
v
�R=0�3
�	��dPG
��RR=1�7
��X,Y,XX,YY
��S(R,RR)=0��t|G
�X1=12+25*R
��TBH:�T`H:�DpH
��
��
�=� 0,0,2,0,2,0,2,2,2,2,2,4,0,4,2,4,0,2,0,4,0,0,0,2,0,2,2,2
��
�� Draw layer numbers
�'�0,6);1'�0,12);2'�0,19);3'�0,26);4
�	�tXH
�MOVE(X+X1,Y-1,3)
�DRAW(XX+X1,YY-1)
�
 �R+1�TjH,�TtH,�T~H,�DHH
*X1=107:Y1=6-R*1.5-T:�DRH
4"X1=113:Y1=22-R*1.9-1.5*T:�DRH
>$X1=118:Y1=33-R*2.8+3*(2-T):�DRH
HX1=123:Y1=56-R*4.6-3*T
R�MOVE(X+X1,Y+Y1,3)
\�DRAW(XX+X1,YY+Y1)
f�
p
�R<>3-T��
z�MOVE(2*X%-10,2*Y%,1)
�� PROCDRAW(2*XX-10,2*YY)
��
��R%=0�3:�Y(R%):�
�� 270,200,129,55
�
�29,80;1;
��
�DY=49-(3-D)*4
�DX=20*(E+2)-25*E
�XD=20*(E+3)-25*(E+1)
��29,80;Y(D)*3;
�Y1=YY(C)-C*(3-D)+2
�Y2=YY(C+1)-(C+1)*(3-D)-2
��Y=Y1�Y2
	 �MOVE(Y*DX/DY+25*E+2,Y,G(F))
	�DRAW(Y*XD/DY+25*E+23,Y)
	�
	$�
	. ��FILL(X1%,Y1%,X2%,Y2%,COL%)
	8�MOVE(X1%,Y1%,COL%)
	B�MOVE(X2%,Y1%,COL%)
	L�85,X1%,Y2%
	V�85,X2%,Y2%
	`�
	j��MOVE(X%,Y%,C%)
	t	�0,C%
	~�X%*SFX,Y%*SFY
	��
	���DRAW(X%,Y%)
	��X%*SFX,Y%*SFY
	��
	���LEAR(X,Y)
	��X,Y);"           "
	��X,Y+1);"        "
	��
	�!��print_titles(prog$,author$)
	��beeb$,row,let
	�	�22,6
	�!beeb$=" ORBIT"+�4,"   ORBIT")
�26:�:row=0:let=0

�19,7,1,0,0,0
�:let=let+1
�19,7,1,0,0,0
(�" ELBUG ",let,1);
2�38);�" ELBUG ",let,1)
<let=let�6:row=row+1
F�row=24
P�beeb$;
Z�26:�beeb$
d�row=2�8
n�19-�(prog$)�2,row);prog$
x�row
��12,11);"PROGRAM  AUTHOR"
�!�19-�(author$)�2,13);author$
��3,19);
��
���error
��<>17��:�" at line";�
��
���instructions
�	�22,6
�-�"This game is played on a 4x4x4 board.";
�V�"To win you must get a line of four markers in a straight line in any direction."
�t�"The program displays a three dimensionallooking board,which consists of 4 layersof 4 rows and 4 columns each."
���"   The simplest winning line would be "'"entirely on the top surface (say) but"'"more complex ones are more difficult to"'"spot,for instance starting";
a�" in one of thetop corners, going down through the "'"centre to the opposite bottom corner."
|�"   When you run the program, you will "'"be asked whether you want to go first."'"Answer 'Y' or 'N' and press return."
��"   To enter your move you type a 3 digitnumber such as 142, this means that you"'"want your marker placed on layer 1 (the"'"top layer), row 4, and column 2."
"7�"The computer responds using the same"'"notation."
,'�'�5);"Press 'space' bar to begin";
6�
@
X=�(1)
J��(-99)
T�
�
00000000  0d 00 0a 1c f4 20 33 44  20 4e 4f 55 47 48 54 53  |..... 3D NOUGHTS|
00000010  20 41 4e 44 20 43 52 4f  53 53 45 53 0d 00 14 22  | AND CROSSES..."|
00000020  f4 20 50 52 4f 47 52 41  4d 20 53 55 42 4a 45 43  |. PROGRAM SUBJEC|
00000030  54 20 54 4f 20 43 4f 50  59 52 49 47 48 54 0d 00  |T TO COPYRIGHT..|
00000040  1e 0b f4 20 4f 52 42 49  54 0d 00 28 16 ee 85 3a  |... ORBIT..(...:|
00000050  ee 85 87 3a f2 65 72 72  6f 72 3a eb 36 3a e0 0d  |...:.error:.6:..|
00000060  00 32 10 43 4f 4d 50 43  4f 4c 4f 55 52 3d 39 0d  |.2.COMPCOLOUR=9.|
00000070  00 3c 10 59 4f 55 52 43  4f 4c 4f 55 52 3d 32 0d  |.<.YOURCOLOUR=2.|
00000080  00 46 34 f2 70 72 69 6e  74 5f 74 69 74 6c 65 73  |.F4.print_titles|
00000090  28 22 33 44 2d 4e 4f 55  47 48 54 53 20 41 4e 44  |("3D-NOUGHTS AND|
000000a0  20 43 52 4f 53 53 45 53  22 2c 22 20 4f 52 42 49  | CROSSES"," ORBI|
000000b0  54 22 29 0d 00 50 31 f1  8a 32 2c 32 30 29 3b 22  |T")..P1..2,20);"|
000000c0  50 72 65 73 73 20 27 73  70 61 63 65 27 20 62 61  |Press 'space' ba|
000000d0  72 20 66 6f 72 20 69 6e  73 74 72 75 63 74 69 6f  |r for instructio|
000000e0  6e 73 22 3b 0d 00 5a 05  f5 0d 00 64 0a 58 3d b3  |ns";..Z....d.X=.|
000000f0  28 31 29 0d 00 6e 0b fd  a6 28 2d 39 39 29 0d 00  |(1)..n...(-99)..|
00000100  78 11 f2 69 6e 73 74 72  75 63 74 69 6f 6e 73 0d  |x..instructions.|
00000110  00 82 06 eb 35 0d 00 8c  1a ef 31 39 2c 32 2c 43  |....5.....19,2,C|
00000120  4f 4d 50 43 4f 4c 4f 55  52 2c 30 2c 30 2c 30 0d  |OMPCOLOUR,0,0,0.|
00000130  00 96 1a ef 31 39 2c 31  2c 59 4f 55 52 43 4f 4c  |....19,1,YOURCOL|
00000140  4f 55 52 2c 30 2c 30 2c  30 0d 00 a0 24 4d 45 58  |OUR,0,0,0...$MEX|
00000150  3d 31 30 3a 4d 45 59 3d  32 36 3a f4 20 4d 45 53  |=10:MEY=26:. MES|
00000160  53 41 47 45 20 43 4f 4f  52 44 53 20 20 0d 00 aa  |SAGE COORDS  ...|
00000170  2a 4e 45 58 3d 31 30 3a  4e 45 59 3d 31 30 3a f4  |*NEX=10:NEY=10:.|
00000180  20 43 4f 4f 52 44 53 20  46 4f 52 20 59 4f 55 52  | COORDS FOR YOUR|
00000190  20 4d 4f 56 45 20 20 0d  00 b4 27 4c 45 58 3d 31  | MOVE  ...'LEX=1|
000001a0  31 3a 4c 45 59 3d 31 3a  f4 20 43 4f 4f 52 44 53  |1:LEY=1:. COORDS|
000001b0  20 46 4f 52 20 4c 41 53  54 20 4d 4f 56 45 0d 00  | FOR LAST MOVE..|
000001c0  be 1a 53 46 58 3d 34 3a  f4 20 53 43 41 4c 45 20  |..SFX=4:. SCALE |
000001d0  46 41 43 54 4f 52 20 78  0d 00 c8 1a 53 46 59 3d  |FACTOR x....SFY=|
000001e0  34 3a f4 20 53 43 41 4c  45 20 46 41 43 54 4f 52  |4:. SCALE FACTOR|
000001f0  20 79 0d 00 d2 25 53 46  44 3d 34 35 3a f4 20 44  | y...%SFD=45:. D|
00000200  49 53 54 41 4e 43 45 20  42 45 54 57 45 45 4e 20  |ISTANCE BETWEEN |
00000210  50 4c 41 4e 45 53 20 0d  00 dc 05 f7 0d 00 e6 0c  |PLANES .........|
00000220  de 4d 28 36 33 2c 36 29  0d 00 f0 1c de 4e 28 37  |.M(63,6).....N(7|
00000230  35 29 2c 45 28 31 38 29  2c 57 28 36 33 29 2c 50  |5),E(18),W(63),P|
00000240  28 36 33 29 0d 00 fa 1c  de 48 28 37 29 2c 43 28  |(63).....H(7),C(|
00000250  31 30 29 2c 47 28 36 33  29 2c 53 28 33 2c 37 29  |10),G(63),S(3,7)|
00000260  0d 01 04 1b de 51 28 31  35 29 2c 42 28 31 33 29  |.....Q(15),B(13)|
00000270  2c 59 59 28 34 29 2c 59  28 33 29 0d 01 0e 05 db  |,YY(4),Y(3).....|
00000280  0d 01 18 05 db 0d 01 22  0b e3 41 25 3d 30 b8 36  |......."..A%=0.6|
00000290  0d 01 2c 0c e3 42 25 3d  30 b8 36 33 0d 01 36 0d  |..,..B%=0.63..6.|
000002a0  f3 4d 28 42 25 2c 41 25  29 0d 01 40 05 ed 0d 01  |.M(B%,A%)..@....|
000002b0  4a 05 ed 0d 01 54 15 e3  41 25 3d 30 b8 31 35 3a  |J....T..A%=0.15:|
000002c0  f3 51 28 41 25 29 3a ed  0d 01 5e 14 e3 41 25 3d  |.Q(A%):...^..A%=|
000002d0  30 b8 37 3a f3 48 28 41  25 29 3a ed 0d 01 68 15  |0.7:.H(A%):...h.|
000002e0  e3 41 25 3d 30 b8 36 33  3a f3 57 28 41 25 29 3a  |.A%=0.63:.W(A%):|
000002f0  ed 0d 01 72 15 e3 41 25  3d 30 b8 31 30 3a f3 43  |...r..A%=0.10:.C|
00000300  28 41 25 29 3a ed 0d 01  7c 15 e3 41 25 3d 30 b8  |(A%):...|..A%=0.|
00000310  36 33 3a f3 50 28 41 25  29 3a ed 0d 01 86 15 e3  |63:.P(A%):......|
00000320  41 25 3d 30 b8 31 33 3a  f3 42 28 41 25 29 3a ed  |A%=0.13:.B(A%):.|
00000330  0d 01 90 16 e3 41 25 3d  30 b8 37 35 3a 4e 28 41  |.....A%=0.75:N(A|
00000340  25 29 3d 30 3a ed 0d 01  9a 16 e3 41 25 3d 30 b8  |%)=0:......A%=0.|
00000350  36 33 3a 47 28 41 25 29  3d 30 3a ed 0d 01 a4 16  |63:G(A%)=0:.....|
00000360  e3 41 25 3d 30 b8 31 38  3a 45 28 41 25 29 3d 30  |.A%=0.18:E(A%)=0|
00000370  3a ed 0d 01 ae 0c 4d 3d  30 3a 51 3d 37 36 0d 01  |:.....M=0:Q=76..|
00000380  b8 09 e4 8d 44 4a 46 0d  01 c2 0c 43 3d 32 32 3a  |....DJF....C=22:|
00000390  4d 3d 31 0d 01 cc 09 2a  46 58 31 35 0d 01 d6 1b  |M=1....*FX15....|
000003a0  f1 8a 4e 45 58 2c 4e 45  59 29 3b 22 53 68 61 6c  |..NEX,NEY);"Shal|
000003b0  6c 20 49 20 67 6f 22 0d  01 e0 1d f1 8a 4e 45 58  |l I go"......NEX|
000003c0  2c 4e 45 59 2b 31 29 3b  22 66 69 72 73 74 22 3b  |,NEY+1);"first";|
000003d0  3a e8 41 24 0d 01 ea 12  f2 4c 45 41 52 28 4e 45  |:.A$.....LEAR(NE|
000003e0  58 2c 4e 45 59 29 0d 01  f4 09 e4 8d 44 42 44 0d  |X,NEY)......DBD.|
000003f0  01 fe 0e e7 46 3d 2d 31  8c 8d 64 56 41 0d 02 08  |....F=-1..dVA...|
00000400  0d e7 46 3d 31 8c 8d 64  50 42 0d 02 12 07 4d 3d  |..F=1..dPB....M=|
00000410  31 0d 02 1c 39 f2 4c 45  41 52 28 4d 45 58 2c 4d  |1...9.LEAR(MEX,M|
00000420  45 59 29 3a f2 4c 45 41  52 28 4e 45 58 2c 4e 45  |EY):.LEAR(NEX,NE|
00000430  59 29 3a f1 8a 4e 45 58  2c 4e 45 59 29 3b 22 20  |Y):..NEX,NEY);" |
00000440  59 6f 75 72 20 6d 6f 76  65 22 0d 02 26 16 f1 8a  |Your move"..&...|
00000450  4e 45 58 2b 31 2c 4e 45  59 2b 31 29 3b 3a e8 46  |NEX+1,NEY+1);:.F|
00000460  0d 02 30 12 f2 4c 45 41  52 28 4e 45 58 2c 4e 45  |..0..LEAR(NEX,NE|
00000470  59 29 0d 02 3a 0f e7 46  3c 31 31 31 8c 8d 44 58  |Y)..:..F<111..DX|
00000480  42 0d 02 44 22 46 3d 31  36 2a 46 2d 31 35 39 2a  |B..D"F=16*F-159*|
00000490  28 46 81 31 30 29 2d 36  2a 28 46 81 31 30 30 29  |(F.10)-6*(F.100)|
000004a0  2d 32 31 0d 02 4e 14 e7  46 3e 3d 30 80 46 3c 3d  |-21..N..F>=0.F<=|
000004b0  36 33 8c 8d 44 62 42 0d  02 58 22 f1 8a 4d 45 58  |63..DbB..X"..MEX|
000004c0  2c 4d 45 59 29 3b 22 20  20 49 4c 4c 45 47 41 4c  |,MEY);"  ILLEGAL|
000004d0  20 20 22 3a e5 8d 54 5c  42 0d 02 62 26 e7 47 28  |  ":..T\B..b&.G(|
000004e0  46 29 8c f1 8a 4d 45 58  2c 4d 45 59 29 3b 22 20  |F)...MEX,MEY);" |
000004f0  4f 43 43 55 50 49 45 44  22 3a e5 8d 54 5c 42 0d  |OCCUPIED":..T\B.|
00000500  02 6c 12 f2 4c 45 41 52  28 4d 45 58 2c 4d 45 59  |.l..LEAR(MEX,MEY|
00000510  29 0d 02 76 16 4d 3d 4d  2b 31 3a 47 28 46 29 3d  |)..v.M=M+1:G(F)=|
00000520  31 3a e4 8d 74 6c 43 0d  02 80 18 e3 42 3d 30 b8  |1:..tlC.....B=0.|
00000530  36 2b 33 2a 28 4d 28 46  2c 36 29 3d 37 36 29 0d  |6+3*(M(F,6)=76).|
00000540  02 8a 1d 4e 3d 4e 28 4d  28 46 2c 42 29 29 3a 45  |...N=N(M(F,B)):E|
00000550  3d 45 28 4d 28 46 2c 42  29 2f 34 29 0d 02 94 27  |=E(M(F,B)/4)...'|
00000560  e7 4e 3d 33 8c f1 8a 4d  45 58 2c 4d 45 59 29 3b  |.N=3...MEX,MEY);|
00000570  22 20 20 20 59 4f 55 20  57 49 4e 20 22 3a e5 8d  |"   YOU WIN ":..|
00000580  64 7c 43 0d 02 9e 16 e7  28 4e 83 34 29 3d 30 80  |d|C.....(N.4)=0.|
00000590  4e 3e 33 8c 51 3d 51 2d  31 0d 02 a8 0d e7 51 3d  |N>3.Q=Q-1.....Q=|
000005a0  30 8c 8d 64 72 43 0d 02  b2 11 4e 28 4d 28 46 2c  |0..drC....N(M(F,|
000005b0  42 29 29 3d 4e 2b 31 0d  02 bc 1b 45 28 4d 28 46  |B))=N+1....E(M(F|
000005c0  2c 42 29 81 34 29 3d 45  2d 28 28 45 83 38 29 3c  |,B).4)=E-((E.8)<|
000005d0  37 29 0d 02 c6 06 ed 42  0d 02 d0 1a f1 8a 4d 45  |7).....B......ME|
000005e0  58 2c 4d 45 59 29 3b 22  20 54 48 49 4e 4b 49 4e  |X,MEY);" THINKIN|
000005f0  47 22 0d 02 da 1a 4e 3d  28 28 4d 2d 31 29 81 34  |G"....N=((M-1).4|
00000600  29 2a 38 3a 50 3d 2d 31  30 30 30 30 0d 02 e4 0b  |)*8:P=-10000....|
00000610  e3 41 3d 30 b8 36 33 0d  02 ee 0e e7 47 28 41 29  |.A=0.63.....G(A)|
00000620  8c 8d 54 7e 43 0d 02 f8  27 54 3d 30 3a 45 3d 30  |..T~C...'T=0:E=0|
00000630  3a 42 3d 36 2b 33 2a 28  4d 28 41 2c 36 29 3d 37  |:B=6+3*(M(A,6)=7|
00000640  36 29 3a 47 3d 42 2f 33  2a 37 2d 37 0d 03 02 0a  |6):G=B/3*7-7....|
00000650  e3 43 3d 30 b8 42 0d 03  0c 33 44 3d 51 28 4e 28  |.C=0.B...3D=Q(N(|
00000660  4d 28 41 2c 43 29 29 29  3a 54 3d 54 2b 57 28 4e  |M(A,C))):T=T+W(N|
00000670  2b 44 29 2b 50 28 45 28  4d 28 41 2c 43 29 81 34  |+D)+P(E(M(A,C).4|
00000680  29 29 2a 42 28 47 2b 43  29 0d 03 16 0c 45 3d 45  |))*B(G+C)....E=E|
00000690  2b 48 28 44 29 0d 03 20  06 ed 43 0d 03 2a 0e e7  |+H(D).. ..C..*..|
000006a0  45 3e 31 30 8c 45 3d 31  30 0d 03 34 21 54 3d 54  |E>10.E=10..4!T=T|
000006b0  2b 43 28 45 29 3a e7 54  2b b3 28 31 29 3e 50 8c  |+C(E):.T+.(1)>P.|
000006c0  50 3d 54 2b 2e 35 3a 46  3d 41 0d 03 3e 06 ed 41  |P=T+.5:F=A..>..A|
000006d0  0d 03 48 10 47 28 46 29  3d 32 3a e4 8d 74 6c 43  |..H.G(F)=2:..tlC|
000006e0  0d 03 52 18 e3 42 3d 30  b8 36 2b 33 2a 28 4d 28  |..R..B=0.6+3*(M(|
000006f0  46 2c 36 29 3d 37 36 29  0d 03 5c 1d 4e 3d 4e 28  |F,6)=76)..\.N=N(|
00000700  4d 28 46 2c 42 29 29 3a  45 3d 45 28 4d 28 46 2c  |M(F,B)):E=E(M(F,|
00000710  42 29 81 34 29 0d 03 66  27 e7 4e 3d 31 32 8c f1  |B).4)..f'.N=12..|
00000720  8a 4d 45 58 2c 4d 45 59  29 3b 22 20 20 20 49 20  |.MEX,MEY);"   I |
00000730  57 49 4e 20 20 22 3a e5  8d 64 7c 43 0d 03 70 13  |WIN  ":..d|C..p.|
00000740  e7 4e 3c 34 80 4e 3c 3e  30 8c 51 3d 51 2d 31 0d  |.N<4.N<>0.Q=Q-1.|
00000750  03 7a 0d e7 51 3d 30 8c  8d 64 72 43 0d 03 84 11  |.z..Q=0..drC....|
00000760  4e 28 4d 28 46 2c 42 29  29 3d 4e 2b 34 0d 03 8e  |N(M(F,B))=N+4...|
00000770  1a 45 28 4d 28 46 2c 42  29 81 34 29 3d 45 2d 38  |.E(M(F,B).4)=E-8|
00000780  2a 28 45 3c 35 36 29 0d  03 98 06 ed 42 0d 03 a2  |*(E<56).....B...|
00000790  09 e5 8d 54 5c 42 0d 03  ac 11 43 3d 46 81 31 36  |...T\B....C=F.16|
000007a0  3a 45 3d 46 83 31 36 0d  03 b6 26 44 3d 45 81 34  |:E=F.16...&D=E.4|
000007b0  3a 45 3d 45 83 34 3a 42  3d 33 36 2d 33 2a 43 3a  |:E=E.4:B=36-3*C:|
000007c0  41 3d 32 30 2b 31 30 2a  44 2b 32 2a 45 0d 03 c0  |A=20+10*D+2*E...|
000007d0  09 e4 8d 64 40 48 0d 03  ca 0a e7 4d 3d 30 8c f8  |...d@H.....M=0..|
000007e0  0d 03 d4 1a f1 8a 4c 45  58 2c 4c 45 59 29 3b 22  |......LEX,LEY);"|
000007f0  4c 61 73 74 20 6d 6f 76  65 22 0d 03 de 1e f1 8a  |Last move"......|
00000800  4c 45 58 2b 33 2c 4c 45  59 2b 31 29 3b 44 2b 31  |LEX+3,LEY+1);D+1|
00000810  3b 45 2b 31 3b 43 2b 31  0d 03 e8 05 f8 0d 03 f2  |;E+1;C+1........|
00000820  1b f1 8a 4d 45 58 2c 4d  45 59 29 3b 22 20 20 20  |...MEX,MEY);"   |
00000830  41 20 44 52 41 57 20 22  0d 03 fc 1e f4 20 43 4f  |A DRAW "..... CO|
00000840  4d 45 20 48 45 52 45 20  41 54 20 45 4e 44 20 4f  |ME HERE AT END O|
00000850  46 20 47 41 4d 45 0d 04  06 1f f4 2d 2d 2d 2d 2d  |F GAME.....-----|
00000860  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000870  2d 2d 2d 2d 2d 0d 04 10  2c f1 8a 30 2c 32 39 29  |-----...,..0,29)|
00000880  3b 3a e8 22 44 6f 20 79  6f 75 20 77 61 6e 74 20  |;:."Do you want |
00000890  61 6e 6f 74 68 65 72 20  67 61 6d 65 20 22 2c 41  |another game ",A|
000008a0  24 0d 04 1a 09 e4 8d 44  42 44 0d 04 24 0d e7 46  |$......DBD..$..F|
000008b0  3d 31 8c 8d 74 50 41 0d  04 2e 0e e7 46 3d 2d 31  |=1..tPA.....F=-1|
000008c0  8c 8d 54 50 44 0d 04 38  05 e0 0d 04 42 15 e7 c0  |..TPD..8....B...|
000008d0  41 24 2c 31 29 3d 22 59  22 8c 46 3d 31 3a f8 0d  |A$,1)="Y".F=1:..|
000008e0  04 4c 15 e7 c0 41 24 2c  31 29 3d 22 4e 22 8c 46  |.L...A$,1)="N".F|
000008f0  3d 30 3a f8 0d 04 56 0a  46 3d 2d 31 3a f8 0d 04  |=0:...V.F=-1:...|
00000900  60 29 dc 20 30 2c 30 2c  30 2c 30 2c 31 2c 33 37  |`). 0,0,0,0,1,37|
00000910  2c 33 38 2c 31 2c 32 2c  34 31 2c 34 32 2c 32 2c  |,38,1,2,41,42,2,|
00000920  33 2c 33 2c 33 2c 33 0d  04 6a 29 dc 20 33 32 2c  |3,3,3,3..j). 32,|
00000930  34 2c 34 2c 33 35 2c 35  2c 35 2c 35 2c 35 2c 36  |4,4,35,5,5,5,5,6|
00000940  2c 36 2c 36 2c 36 2c 34  34 2c 37 2c 37 2c 34 37  |,6,6,6,44,7,7,47|
00000950  0d 04 74 2f dc 20 33 32  2c 38 2c 38 2c 33 35 2c  |..t/. 32,8,8,35,|
00000960  39 2c 39 2c 39 2c 39 2c  31 30 2c 31 30 2c 31 30  |9,9,9,9,10,10,10|
00000970  2c 31 30 2c 34 34 2c 31  31 2c 31 31 2c 34 37 0d  |,10,44,11,11,47.|
00000980  04 7e 35 dc 20 31 32 2c  31 32 2c 31 32 2c 31 32  |.~5. 12,12,12,12|
00000990  2c 31 33 2c 33 37 2c 33  38 2c 31 33 2c 31 34 2c  |,13,37,38,13,14,|
000009a0  34 31 2c 34 32 2c 31 34  2c 31 35 2c 31 35 2c 31  |41,42,14,15,15,1|
000009b0  35 2c 31 35 0d 04 88 35  dc 20 31 36 2c 33 33 2c  |5,15...5. 16,33,|
000009c0  33 34 2c 32 38 2c 31 36  2c 32 30 2c 32 34 2c 32  |34,28,16,20,24,2|
000009d0  38 2c 31 36 2c 32 30 2c  32 34 2c 32 38 2c 31 36  |8,16,20,24,28,16|
000009e0  2c 34 35 2c 34 36 2c 32  38 0d 04 92 35 dc 20 31  |,45,46,28...5. 1|
000009f0  37 2c 32 31 2c 32 35 2c  32 39 2c 33 36 2c 32 31  |7,21,25,29,36,21|
00000a00  2c 32 35 2c 33 39 2c 34  30 2c 32 31 2c 32 35 2c  |,25,39,40,21,25,|
00000a10  34 33 2c 31 37 2c 32 31  2c 32 35 2c 32 39 0d 04  |43,17,21,25,29..|
00000a20  9c 35 dc 20 31 38 2c 32  32 2c 32 36 2c 33 30 2c  |.5. 18,22,26,30,|
00000a30  33 36 2c 32 32 2c 32 36  2c 33 39 2c 34 30 2c 32  |36,22,26,39,40,2|
00000a40  32 2c 32 36 2c 34 33 2c  31 38 2c 32 32 2c 32 36  |2,26,43,18,22,26|
00000a50  2c 33 30 0d 04 a6 35 dc  20 31 39 2c 33 33 2c 33  |,30...5. 19,33,3|
00000a60  34 2c 33 31 2c 31 39 2c  32 33 2c 32 37 2c 33 31  |4,31,19,23,27,31|
00000a70  2c 31 39 2c 32 33 2c 32  37 2c 33 31 2c 31 39 2c  |,19,23,27,31,19,|
00000a80  34 35 2c 34 36 2c 33 31  0d 04 b0 31 dc 20 33 32  |45,46,31...1. 32|
00000a90  2c 32 30 2c 32 34 2c 33  35 2c 33 36 2c 31 2c 31  |,20,24,35,36,1,1|
00000aa0  2c 33 39 2c 34 30 2c 32  2c 32 2c 34 33 2c 34 34  |,39,40,2,2,43,44|
00000ab0  2c 32 30 2c 32 34 2c 34  37 0d 04 ba 31 dc 20 34  |,20,24,47...1. 4|
00000ac0  2c 33 33 2c 33 34 2c 34  2c 31 37 2c 33 37 2c 33  |,33,34,4,17,37,3|
00000ad0  38 2c 32 39 2c 31 37 2c  34 31 2c 34 32 2c 32 39  |8,29,17,41,42,29|
00000ae0  2c 37 2c 34 35 2c 34 36  2c 37 0d 04 c4 33 dc 20  |,7,45,46,7...3. |
00000af0  38 2c 33 33 2c 33 34 2c  38 2c 31 38 2c 33 37 2c  |8,33,34,8,18,37,|
00000b00  33 38 2c 33 30 2c 31 38  2c 34 31 2c 34 32 2c 33  |38,30,18,41,42,3|
00000b10  30 2c 31 31 2c 34 35 2c  34 36 2c 31 31 0d 04 ce  |0,11,45,46,11...|
00000b20  35 dc 20 33 32 2c 32 33  2c 32 37 2c 33 35 2c 33  |5. 32,23,27,35,3|
00000b30  36 2c 31 33 2c 31 33 2c  33 39 2c 34 30 2c 31 34  |6,13,13,39,40,14|
00000b40  2c 31 34 2c 34 33 2c 34  34 2c 32 33 2c 32 37 2c  |,14,43,44,23,27,|
00000b50  34 37 0d 04 d8 35 dc 20  34 38 2c 36 35 2c 36 36  |47...5. 48,65,66|
00000b60  2c 35 32 2c 35 37 2c 34  38 2c 35 32 2c 36 31 2c  |,52,57,48,52,61,|
00000b70  35 38 2c 35 32 2c 34 38  2c 36 32 2c 35 32 2c 36  |58,52,48,62,52,6|
00000b80  39 2c 37 30 2c 34 38 0d  04 e2 35 dc 20 34 39 2c  |9,70,48...5. 49,|
00000b90  35 36 2c 36 30 2c 35 33  2c 36 34 2c 34 39 2c 35  |56,60,53,64,49,5|
00000ba0  33 2c 36 37 2c 36 38 2c  35 33 2c 34 39 2c 37 31  |3,67,68,53,49,71|
00000bb0  2c 35 33 2c 35 39 2c 36  33 2c 34 39 0d 04 ec 35  |,53,59,63,49...5|
00000bc0  dc 20 35 30 2c 36 30 2c  35 36 2c 35 34 2c 36 38  |. 50,60,56,54,68|
00000bd0  2c 35 30 2c 35 34 2c 37  31 2c 36 34 2c 35 34 2c  |,50,54,71,64,54,|
00000be0  35 30 2c 36 37 2c 35 34  2c 36 33 2c 35 39 2c 35  |50,67,54,63,59,5|
00000bf0  30 0d 04 f6 35 dc 20 35  31 2c 36 39 2c 37 30 2c  |0...5. 51,69,70,|
00000c00  35 35 2c 36 31 2c 35 31  2c 35 35 2c 35 37 2c 36  |55,61,51,55,57,6|
00000c10  32 2c 35 35 2c 35 31 2c  35 38 2c 35 35 2c 36 35  |2,55,51,58,55,65|
00000c20  2c 36 36 2c 35 31 0d 05  00 35 dc 20 35 36 2c 37  |,66,51...5. 56,7|
00000c30  36 2c 37 36 2c 36 30 2c  37 36 2c 37 36 2c 37 36  |6,76,60,76,76,76|
00000c40  2c 37 36 2c 37 36 2c 37  36 2c 37 36 2c 37 36 2c  |,76,76,76,76,76,|
00000c50  35 39 2c 37 36 2c 37 36  2c 36 33 0d 05 0a 35 dc  |59,76,76,63...5.|
00000c60  20 37 36 2c 37 36 2c 37  36 2c 37 36 2c 37 36 2c  | 76,76,76,76,76,|
00000c70  35 37 2c 36 31 2c 37 36  2c 37 36 2c 35 38 2c 36  |57,61,76,76,58,6|
00000c80  32 2c 37 36 2c 37 36 2c  37 36 2c 37 36 2c 37 36  |2,76,76,76,76,76|
00000c90  0d 05 14 35 dc 20 37 36  2c 37 36 2c 37 36 2c 37  |...5. 76,76,76,7|
00000ca0  36 2c 37 36 2c 36 31 2c  35 37 2c 37 36 2c 37 36  |6,76,61,57,76,76|
00000cb0  2c 36 32 2c 35 38 2c 37  36 2c 37 36 2c 37 36 2c  |,62,58,76,76,76,|
00000cc0  37 36 2c 37 36 0d 05 1e  35 dc 20 36 30 2c 37 36  |76,76...5. 60,76|
00000cd0  2c 37 36 2c 35 36 2c 37  36 2c 37 36 2c 37 36 2c  |,76,56,76,76,76,|
00000ce0  37 36 2c 37 36 2c 37 36  2c 37 36 2c 37 36 2c 36  |76,76,76,76,76,6|
00000cf0  33 2c 37 36 2c 37 36 2c  35 39 0d 05 28 35 dc 20  |3,76,76,59..(5. |
00000d00  36 34 2c 37 36 2c 37 36  2c 36 37 2c 37 36 2c 37  |64,76,76,67,76,7|
00000d10  36 2c 37 36 2c 37 36 2c  37 36 2c 37 36 2c 37 36  |6,76,76,76,76,76|
00000d20  2c 37 36 2c 36 38 2c 37  36 2c 37 36 2c 37 31 0d  |,76,68,76,76,71.|
00000d30  05 32 35 dc 20 37 36 2c  37 36 2c 37 36 2c 37 36  |.25. 76,76,76,76|
00000d40  2c 37 36 2c 36 35 2c 36  36 2c 37 36 2c 37 36 2c  |,76,65,66,76,76,|
00000d50  36 39 2c 37 30 2c 37 36  2c 37 36 2c 37 36 2c 37  |69,70,76,76,76,7|
00000d60  36 2c 37 36 0d 05 3c 35  dc 20 37 36 2c 37 36 2c  |6,76..<5. 76,76,|
00000d70  37 36 2c 37 36 2c 37 36  2c 36 39 2c 37 30 2c 37  |76,76,76,69,70,7|
00000d80  36 2c 37 36 2c 36 35 2c  36 36 2c 37 36 2c 37 36  |6,76,65,66,76,76|
00000d90  2c 37 36 2c 37 36 2c 37  36 0d 05 46 35 dc 20 36  |,76,76,76..F5. 6|
00000da0  38 2c 37 36 2c 37 36 2c  37 31 2c 37 36 2c 37 36  |8,76,76,71,76,76|
00000db0  2c 37 36 2c 37 36 2c 37  36 2c 37 36 2c 37 36 2c  |,76,76,76,76,76,|
00000dc0  37 36 2c 36 34 2c 37 36  2c 37 36 2c 36 37 0d 05  |76,64,76,76,67..|
00000dd0  50 35 dc 20 37 32 2c 37  36 2c 37 36 2c 37 33 2c  |P5. 72,76,76,73,|
00000de0  37 36 2c 37 36 2c 37 36  2c 37 36 2c 37 36 2c 37  |76,76,76,76,76,7|
00000df0  36 2c 37 36 2c 37 36 2c  37 34 2c 37 36 2c 37 36  |6,76,76,74,76,76|
00000e00  2c 37 35 0d 05 5a 35 dc  20 37 36 2c 37 36 2c 37  |,75..Z5. 76,76,7|
00000e10  36 2c 37 36 2c 37 36 2c  37 32 2c 37 33 2c 37 36  |6,76,76,72,73,76|
00000e20  2c 37 36 2c 37 34 2c 37  35 2c 37 36 2c 37 36 2c  |,76,74,75,76,76,|
00000e30  37 36 2c 37 36 2c 37 36  0d 05 64 35 dc 20 37 36  |76,76,76..d5. 76|
00000e40  2c 37 36 2c 37 36 2c 37  36 2c 37 36 2c 37 35 2c  |,76,76,76,76,75,|
00000e50  37 34 2c 37 36 2c 37 36  2c 37 33 2c 37 32 2c 37  |74,76,76,73,72,7|
00000e60  36 2c 37 36 2c 37 36 2c  37 36 2c 37 36 0d 05 6e  |6,76,76,76,76..n|
00000e70  35 dc 20 37 35 2c 37 36  2c 37 36 2c 37 34 2c 37  |5. 75,76,76,74,7|
00000e80  36 2c 37 36 2c 37 36 2c  37 36 2c 37 36 2c 37 36  |6,76,76,76,76,76|
00000e90  2c 37 36 2c 37 36 2c 37  33 2c 37 36 2c 37 36 2c  |,76,76,73,76,76,|
00000ea0  37 32 0d 05 78 25 dc 20  30 2c 34 2c 35 2c 36 2c  |72..x%. 0,4,5,6,|
00000eb0  31 2c 37 2c 37 2c 37 2c  32 2c 37 2c 37 2c 37 2c  |1,7,7,7,2,7,7,7,|
00000ec0  33 2c 37 2c 37 2c 37 0d  05 82 15 dc 20 30 2c 30  |3,7,7,7..... 0,0|
00000ed0  2c 35 2c 30 2c 30 2c 31  2c 30 2c 30 0d 05 8c 1b  |,5,0,0,1,0,0....|
00000ee0  dc 20 35 2c 31 30 2c 31  2c 34 30 30 30 2c 31 2c  |. 5,10,1,4000,1,|
00000ef0  34 2c 37 30 30 2c 30 0d  05 96 1b dc 20 35 2c 31  |4,700,0..... 5,1|
00000f00  30 2c 31 2c 34 30 30 30  2c 31 2c 35 2c 37 30 30  |0,1,4000,1,5,700|
00000f10  2c 30 0d 05 a0 1b dc 20  35 2c 31 35 2c 35 2c 34  |,0..... 5,15,5,4|
00000f20  30 30 30 2c 35 2c 36 2c  37 30 30 2c 30 0d 05 aa  |000,5,6,700,0...|
00000f30  1d dc 20 35 2c 31 35 2c  32 35 2c 34 30 30 30 2c  |.. 5,15,25,4000,|
00000f40  31 2c 31 32 2c 37 30 30  2c 30 0d 05 b4 1e dc 20  |1,12,700,0..... |
00000f50  32 35 2c 32 30 2c 34 30  2c 34 30 30 30 2c 31 2c  |25,20,40,4000,1,|
00000f60  31 35 2c 37 30 30 2c 30  0d 05 be 1e dc 20 32 35  |15,700,0..... 25|
00000f70  2c 33 30 2c 34 30 2c 34  30 30 30 2c 31 2c 31 35  |,30,40,4000,1,15|
00000f80  2c 37 30 30 2c 30 0d 05  c8 1d dc 20 32 35 2c 31  |,700,0..... 25,1|
00000f90  2c 31 2c 34 30 30 30 2c  31 30 2c 34 30 2c 37 30  |,1,4000,10,40,70|
00000fa0  30 2c 30 0d 05 d2 1d dc  20 32 35 2c 31 2c 31 2c  |0,0..... 25,1,1,|
00000fb0  34 30 30 30 2c 31 30 2c  34 30 2c 37 30 30 2c 30  |4000,10,40,700,0|
00000fc0  0d 05 dc 2a dc 20 30 2c  30 2c 31 36 30 2c 31 38  |...*. 0,0,160,18|
00000fd0  30 2c 32 30 30 2c 30 2c  32 30 2c 31 38 30 2c 32  |0,200,0,20,180,2|
00000fe0  30 30 2c 32 30 30 2c 34  30 30 0d 05 e6 1c dc 20  |00,200,400..... |
00000ff0  30 2c 30 2c 30 2c 35 2c  35 30 2c 31 30 30 2c 32  |0,0,0,5,50,100,2|
00001000  30 30 2c 33 30 30 0d 05  f0 19 dc 20 30 2c 30 2c  |00,300..... 0,0,|
00001010  30 2c 30 2c 32 2c 36 30  2c 38 30 2c 31 30 30 0d  |0,0,2,60,80,100.|
00001020  05 fa 17 dc 20 30 2c 30  2c 30 2c 30 2c 30 2c 31  |.... 0,0,0,0,0,1|
00001030  2c 34 30 2c 36 30 0d 06  04 16 dc 20 35 2c 30 2c  |,40,60..... 5,0,|
00001040  30 2c 30 2c 30 2c 30 2c  31 2c 32 30 0d 06 0e 17  |0,0,0,0,1,20....|
00001050  dc 20 35 35 2c 35 2c 30  2c 30 2c 2d 35 2c 30 2c  |. 55,5,0,0,-5,0,|
00001060  30 2c 30 0d 06 18 1a dc  20 36 30 2c 35 30 2c 31  |0,0..... 60,50,1|
00001070  30 2c 30 2c 30 2c 2d 32  30 2c 30 2c 30 0d 06 22  |0,0,0,-20,0,0.."|
00001080  1c dc 20 31 32 30 2c 31  30 30 2c 32 30 2c 30 2c  |.. 120,100,20,0,|
00001090  30 2c 30 2c 2d 32 30 2c  30 0d 06 2c 1c dc 20 31  |0,0,-20,0..,.. 1|
000010a0  35 30 2c 31 32 30 2c 32  35 2c 30 2c 30 2c 30 2c  |50,120,25,0,0,0,|
000010b0  30 2c 2d 32 30 0d 06 36  15 dc 20 31 2c 31 2c 31  |0,-20..6.. 1,1,1|
000010c0  2e 35 2c 31 2c 31 2c 31  2c 31 0d 06 40 21 dc 20  |.5,1,1,1,1..@!. |
000010d0  31 2e 35 2c 31 2e 35 2c  31 2e 35 2c 31 2e 35 2c  |1.5,1.5,1.5,1.5,|
000010e0  31 2e 35 2c 31 2e 35 2c  31 2e 35 0d 06 4a 05 db  |1.5,1.5,1.5..J..|
000010f0  0d 06 54 09 41 3d 2d 31  32 0d 06 5e 0a e3 54 3d  |..T.A=-12..^..T=|
00001100  30 b8 33 0d 06 68 09 f7  8d 64 42 46 0d 06 72 0d  |0.3..h...dBF..r.|
00001110  41 3d 41 2b 53 46 44 2d  54 0d 06 7c 11 ef 32 39  |A=A+SFD-T..|..29|
00001120  2c 38 30 3b 35 2a 41 2b  31 3b 0d 06 86 0a e3 52  |,80;5*A+1;.....R|
00001130  3d 30 b8 34 0d 06 90 0c  f3 58 2c 58 58 2c 54 56  |=0.4.....X,XX,TV|
00001140  0d 06 9a 0c 59 59 28 52  29 3d 54 56 0d 06 a4 18  |....YY(R)=TV....|
00001150  f2 4d 4f 56 45 28 58 2c  59 59 28 52 29 2d 52 2a  |.MOVE(X,YY(R)-R*|
00001160  54 2c 33 29 0d 06 ae 17  f2 44 52 41 57 28 58 58  |T,3).....DRAW(XX|
00001170  2c 59 59 28 52 29 2d 52  2a 54 29 0d 06 b8 05 ed  |,YY(R)-R*T).....|
00001180  0d 06 c2 35 dc 20 30 2c  31 30 30 2c 31 2c 31 34  |...5. 0,100,1,14|
00001190  2c 31 30 37 2c 31 37 2c  32 35 2c 31 31 32 2c 33  |,107,17,25,112,3|
000011a0  30 2c 33 34 2c 31 31 36  2c 34 31 2c 34 30 2c 31  |0,34,116,41,40,1|
000011b0  32 30 2c 35 30 0d 06 cc  0c 59 3d 35 30 2d 54 2a  |20,50....Y=50-T*|
000011c0  34 0d 06 d6 0a e3 52 3d  30 b8 34 0d 06 e0 13 f2  |4.....R=0.4.....|
000011d0  4d 4f 56 45 28 32 35 2a  52 2c 31 2c 33 29 0d 06  |MOVE(25*R,1,3)..|
000011e0  ea 14 f2 44 52 41 57 28  32 30 2a 52 2b 34 30 2c  |...DRAW(20*R+40,|
000011f0  59 29 0d 06 f4 05 ed 0d  06 fe 1c f4 20 2a 2a 2a  |Y).......... ***|
00001200  2a 20 50 4c 4f 54 20 4e  55 4d 42 45 52 53 20 2a  |* PLOT NUMBERS *|
00001210  2a 2a 2a 0d 07 08 1d f4  2d 2d 2d 2d 2d 2d 2d 2d  |***.....--------|
00001220  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00001230  0d 07 12 09 f7 8d 44 4e  47 0d 07 1c 0a e3 52 3d  |......DNG.....R=|
00001240  30 b8 33 0d 07 26 0b e3  52 52 3d 31 b8 37 0d 07  |0.3..&..RR=1.7..|
00001250  30 0c f3 53 28 52 2c 52  52 29 0d 07 3a 05 ed 0d  |0..S(R,RR)..:...|
00001260  07 44 05 ed 0d 07 4e 13  dc 20 30 2c 31 2c 31 2c  |.D....N.. 0,1,1,|
00001270  30 2c 30 2c 30 2c 30 0d  07 58 13 dc 20 31 2c 30  |0,0,0,0..X.. 1,0|
00001280  2c 31 2c 31 2c 30 2c 31  2c 31 0d 07 62 13 dc 20  |,1,1,0,1,1..b.. |
00001290  31 2c 31 2c 31 2c 31 2c  30 2c 30 2c 31 0d 07 6c  |1,1,1,1,0,0,1..l|
000012a0  13 dc 20 30 2c 31 2c 31  2c 30 2c 31 2c 30 2c 31  |.. 0,1,1,0,1,0,1|
000012b0  0d 07 76 0a e3 52 3d 30  b8 33 0d 07 80 09 f7 8d  |..v..R=0.3......|
000012c0  64 50 47 0d 07 8a 0b e3  52 52 3d 31 b8 37 0d 07  |dPG.....RR=1.7..|
000012d0  94 0e f3 58 2c 59 2c 58  58 2c 59 59 0d 07 9e 13  |...X,Y,XX,YY....|
000012e0  e7 53 28 52 2c 52 52 29  3d 30 8c 8d 74 7c 47 0d  |.S(R,RR)=0..t|G.|
000012f0  07 a8 0e 58 31 3d 31 32  2b 32 35 2a 52 0d 07 b2  |...X1=12+25*R...|
00001300  15 e4 8d 54 42 48 3a e4  8d 54 60 48 3a e4 8d 44  |...TBH:..T`H:..D|
00001310  70 48 0d 07 bc 05 ed 0d  07 c6 05 ed 0d 07 d0 3d  |pH.............=|
00001320  dc 20 30 2c 30 2c 32 2c  30 2c 32 2c 30 2c 32 2c  |. 0,0,2,0,2,0,2,|
00001330  32 2c 32 2c 32 2c 32 2c  34 2c 30 2c 34 2c 32 2c  |2,2,2,2,4,0,4,2,|
00001340  34 2c 30 2c 32 2c 30 2c  34 2c 30 2c 30 2c 30 2c  |4,0,2,0,4,0,0,0,|
00001350  32 2c 30 2c 32 2c 32 2c  32 0d 07 da 05 ed 0d 07  |2,0,2,2,2.......|
00001360  e4 18 f4 20 44 72 61 77  20 6c 61 79 65 72 20 6e  |... Draw layer n|
00001370  75 6d 62 65 72 73 0d 07  ee 27 f1 8a 30 2c 36 29  |umbers...'..0,6)|
00001380  3b 31 27 8a 30 2c 31 32  29 3b 32 27 8a 30 2c 31  |;1'.0,12);2'.0,1|
00001390  39 29 3b 33 27 8a 30 2c  32 36 29 3b 34 0d 07 f8  |9);3'.0,26);4...|
000013a0  09 e5 8d 74 58 48 0d 08  02 15 f2 4d 4f 56 45 28  |...tXH.....MOVE(|
000013b0  58 2b 58 31 2c 59 2d 31  2c 33 29 0d 08 0c 15 f2  |X+X1,Y-1,3).....|
000013c0  44 52 41 57 28 58 58 2b  58 31 2c 59 59 2d 31 29  |DRAW(XX+X1,YY-1)|
000013d0  0d 08 16 05 f8 0d 08 20  1c ee 52 2b 31 e5 8d 54  |....... ..R+1..T|
000013e0  6a 48 2c 8d 54 74 48 2c  8d 54 7e 48 2c 8d 44 48  |jH,.TtH,.T~H,.DH|
000013f0  48 0d 08 2a 1d 58 31 3d  31 30 37 3a 59 31 3d 36  |H..*.X1=107:Y1=6|
00001400  2d 52 2a 31 2e 35 2d 54  3a e5 8d 44 52 48 0d 08  |-R*1.5-T:..DRH..|
00001410  34 22 58 31 3d 31 31 33  3a 59 31 3d 32 32 2d 52  |4"X1=113:Y1=22-R|
00001420  2a 31 2e 39 2d 31 2e 35  2a 54 3a e5 8d 44 52 48  |*1.9-1.5*T:..DRH|
00001430  0d 08 3e 24 58 31 3d 31  31 38 3a 59 31 3d 33 33  |..>$X1=118:Y1=33|
00001440  2d 52 2a 32 2e 38 2b 33  2a 28 32 2d 54 29 3a e5  |-R*2.8+3*(2-T):.|
00001450  8d 44 52 48 0d 08 48 1a  58 31 3d 31 32 33 3a 59  |.DRH..H.X1=123:Y|
00001460  31 3d 35 36 2d 52 2a 34  2e 36 2d 33 2a 54 0d 08  |1=56-R*4.6-3*T..|
00001470  52 16 f2 4d 4f 56 45 28  58 2b 58 31 2c 59 2b 59  |R..MOVE(X+X1,Y+Y|
00001480  31 2c 33 29 0d 08 5c 16  f2 44 52 41 57 28 58 58  |1,3)..\..DRAW(XX|
00001490  2b 58 31 2c 59 59 2b 59  31 29 0d 08 66 05 f8 0d  |+X1,YY+Y1)..f...|
000014a0  08 70 0d e7 52 3c 3e 33  2d 54 8c f8 0d 08 7a 19  |.p..R<>3-T....z.|
000014b0  f2 4d 4f 56 45 28 32 2a  58 25 2d 31 30 2c 32 2a  |.MOVE(2*X%-10,2*|
000014c0  59 25 2c 31 29 0d 08 84  1c f4 20 50 52 4f 43 44  |Y%,1)..... PROCD|
000014d0  52 41 57 28 32 2a 58 58  2d 31 30 2c 32 2a 59 59  |RAW(2*XX-10,2*YY|
000014e0  29 0d 08 8e 05 f8 0d 08  98 14 e3 52 25 3d 30 b8  |)..........R%=0.|
000014f0  33 3a f3 59 28 52 25 29  3a ed 0d 08 a2 14 dc 20  |3:.Y(R%):...... |
00001500  32 37 30 2c 32 30 30 2c  31 32 39 2c 35 35 0d 08  |270,200,129,55..|
00001510  ac 0d ef 32 39 2c 38 30  3b 31 3b 0d 08 b6 05 f8  |...29,80;1;.....|
00001520  0d 08 c0 11 44 59 3d 34  39 2d 28 33 2d 44 29 2a  |....DY=49-(3-D)*|
00001530  34 0d 08 ca 14 44 58 3d  32 30 2a 28 45 2b 32 29  |4....DX=20*(E+2)|
00001540  2d 32 35 2a 45 0d 08 d4  18 58 44 3d 32 30 2a 28  |-25*E....XD=20*(|
00001550  45 2b 33 29 2d 32 35 2a  28 45 2b 31 29 0d 08 de  |E+3)-25*(E+1)...|
00001560  12 ef 32 39 2c 38 30 3b  59 28 44 29 2a 33 3b 0d  |..29,80;Y(D)*3;.|
00001570  08 e8 16 59 31 3d 59 59  28 43 29 2d 43 2a 28 33  |...Y1=YY(C)-C*(3|
00001580  2d 44 29 2b 32 0d 08 f2  1c 59 32 3d 59 59 28 43  |-D)+2....Y2=YY(C|
00001590  2b 31 29 2d 28 43 2b 31  29 2a 28 33 2d 44 29 2d  |+1)-(C+1)*(3-D)-|
000015a0  32 0d 08 fc 0c e3 59 3d  59 31 b8 59 32 0d 09 06  |2.....Y=Y1.Y2...|
000015b0  20 f2 4d 4f 56 45 28 59  2a 44 58 2f 44 59 2b 32  | .MOVE(Y*DX/DY+2|
000015c0  35 2a 45 2b 32 2c 59 2c  47 28 46 29 29 0d 09 10  |5*E+2,Y,G(F))...|
000015d0  1c f2 44 52 41 57 28 59  2a 58 44 2f 44 59 2b 32  |..DRAW(Y*XD/DY+2|
000015e0  35 2a 45 2b 32 33 2c 59  29 0d 09 1a 05 ed 0d 09  |5*E+23,Y).......|
000015f0  24 05 f8 0d 09 2e 20 dd  f2 46 49 4c 4c 28 58 31  |$..... ..FILL(X1|
00001600  25 2c 59 31 25 2c 58 32  25 2c 59 32 25 2c 43 4f  |%,Y1%,X2%,Y2%,CO|
00001610  4c 25 29 0d 09 38 17 f2  4d 4f 56 45 28 58 31 25  |L%)..8..MOVE(X1%|
00001620  2c 59 31 25 2c 43 4f 4c  25 29 0d 09 42 17 f2 4d  |,Y1%,COL%)..B..M|
00001630  4f 56 45 28 58 32 25 2c  59 31 25 2c 43 4f 4c 25  |OVE(X2%,Y1%,COL%|
00001640  29 0d 09 4c 0f f0 38 35  2c 58 31 25 2c 59 32 25  |)..L..85,X1%,Y2%|
00001650  0d 09 56 0f f0 38 35 2c  58 32 25 2c 59 32 25 0d  |..V..85,X2%,Y2%.|
00001660  09 60 05 e1 0d 09 6a 14  dd f2 4d 4f 56 45 28 58  |.`....j...MOVE(X|
00001670  25 2c 59 25 2c 43 25 29  0d 09 74 09 e6 30 2c 43  |%,Y%,C%)..t..0,C|
00001680  25 0d 09 7e 12 ec 58 25  2a 53 46 58 2c 59 25 2a  |%..~..X%*SFX,Y%*|
00001690  53 46 59 0d 09 88 05 e1  0d 09 92 11 dd f2 44 52  |SFY...........DR|
000016a0  41 57 28 58 25 2c 59 25  29 0d 09 9c 12 df 58 25  |AW(X%,Y%).....X%|
000016b0  2a 53 46 58 2c 59 25 2a  53 46 59 0d 09 a6 05 e1  |*SFX,Y%*SFY.....|
000016c0  0d 09 b0 0f dd f2 4c 45  41 52 28 58 2c 59 29 0d  |......LEAR(X,Y).|
000016d0  09 ba 18 f1 8a 58 2c 59  29 3b 22 20 20 20 20 20  |.....X,Y);"     |
000016e0  20 20 20 20 20 20 22 0d  09 c4 17 f1 8a 58 2c 59  |      "......X,Y|
000016f0  2b 31 29 3b 22 20 20 20  20 20 20 20 20 22 0d 09  |+1);"        "..|
00001700  ce 05 e1 0d 09 d8 21 dd  f2 70 72 69 6e 74 5f 74  |......!..print_t|
00001710  69 74 6c 65 73 28 70 72  6f 67 24 2c 61 75 74 68  |itles(prog$,auth|
00001720  6f 72 24 29 0d 09 e2 12  ea 62 65 65 62 24 2c 72  |or$).....beeb$,r|
00001730  6f 77 2c 6c 65 74 0d 09  ec 09 ef 32 32 2c 36 0d  |ow,let.....22,6.|
00001740  09 f6 21 62 65 65 62 24  3d 22 20 4f 52 42 49 54  |..!beeb$=" ORBIT|
00001750  22 2b c4 34 2c 22 20 20  20 4f 52 42 49 54 22 29  |"+.4,"   ORBIT")|
00001760  0d 0a 00 15 ef 32 36 3a  db 3a 72 6f 77 3d 30 3a  |.....26:.:row=0:|
00001770  6c 65 74 3d 30 0d 0a 0a  11 ef 31 39 2c 37 2c 31  |let=0.....19,7,1|
00001780  2c 30 2c 30 2c 30 0d 0a  14 0f f5 3a 6c 65 74 3d  |,0,0,0.....:let=|
00001790  6c 65 74 2b 31 0d 0a 1e  11 ef 31 39 2c 37 2c 31  |let+1.....19,7,1|
000017a0  2c 30 2c 30 2c 30 0d 0a  28 17 f1 c1 22 20 45 4c  |,0,0,0..(..." EL|
000017b0  42 55 47 20 22 2c 6c 65  74 2c 31 29 3b 0d 0a 32  |BUG ",let,1);..2|
000017c0  1b f1 8a 33 38 29 3b c1  22 20 45 4c 42 55 47 20  |...38);." ELBUG |
000017d0  22 2c 6c 65 74 2c 31 29  0d 0a 3c 17 6c 65 74 3d  |",let,1)..<.let=|
000017e0  6c 65 74 83 36 3a 72 6f  77 3d 72 6f 77 2b 31 0d  |let.6:row=row+1.|
000017f0  0a 46 0b fd 72 6f 77 3d  32 34 0d 0a 50 0b f1 62  |.F..row=24..P..b|
00001800  65 65 62 24 3b 0d 0a 5a  0e ef 32 36 3a f1 62 65  |eeb$;..Z..26:.be|
00001810  65 62 24 0d 0a 64 0c e3  72 6f 77 3d 32 b8 38 0d  |eb$..d..row=2.8.|
00001820  0a 6e 1e f1 8a 31 39 2d  a9 28 70 72 6f 67 24 29  |.n...19-.(prog$)|
00001830  81 32 2c 72 6f 77 29 3b  70 72 6f 67 24 0d 0a 78  |.2,row);prog$..x|
00001840  08 ed 72 6f 77 0d 0a 82  1e f1 8a 31 32 2c 31 31  |..row......12,11|
00001850  29 3b 22 50 52 4f 47 52  41 4d 20 20 41 55 54 48  |);"PROGRAM  AUTH|
00001860  4f 52 22 0d 0a 8c 21 f1  8a 31 39 2d a9 28 61 75  |OR"...!..19-.(au|
00001870  74 68 6f 72 24 29 81 32  2c 31 33 29 3b 61 75 74  |thor$).2,13);aut|
00001880  68 6f 72 24 0d 0a 96 0c  f1 8a 33 2c 31 39 29 3b  |hor$......3,19);|
00001890  0d 0a a0 05 e1 0d 0a aa  0b dd f2 65 72 72 6f 72  |...........error|
000018a0  0d 0a b4 1a e7 9f 3c 3e  31 37 8c f6 3a f1 22 20  |......<>17..:." |
000018b0  61 74 20 6c 69 6e 65 22  3b 9e 0d 0a be 05 e1 0d  |at line";.......|
000018c0  0a c8 12 dd f2 69 6e 73  74 72 75 63 74 69 6f 6e  |.....instruction|
000018d0  73 0d 0a d2 09 ef 32 32  2c 36 0d 0a dc 2d f1 22  |s.....22,6...-."|
000018e0  54 68 69 73 20 67 61 6d  65 20 69 73 20 70 6c 61  |This game is pla|
000018f0  79 65 64 20 6f 6e 20 61  20 34 78 34 78 34 20 62  |yed on a 4x4x4 b|
00001900  6f 61 72 64 2e 22 3b 0d  0a e6 56 f1 22 54 6f 20  |oard.";...V."To |
00001910  77 69 6e 20 79 6f 75 20  6d 75 73 74 20 67 65 74  |win you must get|
00001920  20 61 20 6c 69 6e 65 20  6f 66 20 66 6f 75 72 20  | a line of four |
00001930  6d 61 72 6b 65 72 73 20  69 6e 20 61 20 73 74 72  |markers in a str|
00001940  61 69 67 68 74 20 6c 69  6e 65 20 69 6e 20 61 6e  |aight line in an|
00001950  79 20 64 69 72 65 63 74  69 6f 6e 2e 22 0d 0a f0  |y direction."...|
00001960  74 f1 22 54 68 65 20 70  72 6f 67 72 61 6d 20 64  |t."The program d|
00001970  69 73 70 6c 61 79 73 20  61 20 74 68 72 65 65 20  |isplays a three |
00001980  64 69 6d 65 6e 73 69 6f  6e 61 6c 6c 6f 6f 6b 69  |dimensionallooki|
00001990  6e 67 20 62 6f 61 72 64  2c 77 68 69 63 68 20 63  |ng board,which c|
000019a0  6f 6e 73 69 73 74 73 20  6f 66 20 34 20 6c 61 79  |onsists of 4 lay|
000019b0  65 72 73 6f 66 20 34 20  72 6f 77 73 20 61 6e 64  |ersof 4 rows and|
000019c0  20 34 20 63 6f 6c 75 6d  6e 73 20 65 61 63 68 2e  | 4 columns each.|
000019d0  22 0d 0a fa 9d f1 22 20  20 20 54 68 65 20 73 69  |"....."   The si|
000019e0  6d 70 6c 65 73 74 20 77  69 6e 6e 69 6e 67 20 6c  |mplest winning l|
000019f0  69 6e 65 20 77 6f 75 6c  64 20 62 65 20 22 27 22  |ine would be "'"|
00001a00  65 6e 74 69 72 65 6c 79  20 6f 6e 20 74 68 65 20  |entirely on the |
00001a10  74 6f 70 20 73 75 72 66  61 63 65 20 28 73 61 79  |top surface (say|
00001a20  29 20 62 75 74 22 27 22  6d 6f 72 65 20 63 6f 6d  |) but"'"more com|
00001a30  70 6c 65 78 20 6f 6e 65  73 20 61 72 65 20 6d 6f  |plex ones are mo|
00001a40  72 65 20 64 69 66 66 69  63 75 6c 74 20 74 6f 22  |re difficult to"|
00001a50  27 22 73 70 6f 74 2c 66  6f 72 20 69 6e 73 74 61  |'"spot,for insta|
00001a60  6e 63 65 20 73 74 61 72  74 69 6e 67 22 3b 0d 0b  |nce starting";..|
00001a70  04 61 f1 22 20 69 6e 20  6f 6e 65 20 6f 66 20 74  |.a." in one of t|
00001a80  68 65 74 6f 70 20 63 6f  72 6e 65 72 73 2c 20 67  |hetop corners, g|
00001a90  6f 69 6e 67 20 64 6f 77  6e 20 74 68 72 6f 75 67  |oing down throug|
00001aa0  68 20 74 68 65 20 22 27  22 63 65 6e 74 72 65 20  |h the "'"centre |
00001ab0  74 6f 20 74 68 65 20 6f  70 70 6f 73 69 74 65 20  |to the opposite |
00001ac0  62 6f 74 74 6f 6d 20 63  6f 72 6e 65 72 2e 22 0d  |bottom corner.".|
00001ad0  0b 0e 7c f1 22 20 20 20  57 68 65 6e 20 79 6f 75  |..|."   When you|
00001ae0  20 72 75 6e 20 74 68 65  20 70 72 6f 67 72 61 6d  | run the program|
00001af0  2c 20 79 6f 75 20 77 69  6c 6c 20 22 27 22 62 65  |, you will "'"be|
00001b00  20 61 73 6b 65 64 20 77  68 65 74 68 65 72 20 79  | asked whether y|
00001b10  6f 75 20 77 61 6e 74 20  74 6f 20 67 6f 20 66 69  |ou want to go fi|
00001b20  72 73 74 2e 22 27 22 41  6e 73 77 65 72 20 27 59  |rst."'"Answer 'Y|
00001b30  27 20 6f 72 20 27 4e 27  20 61 6e 64 20 70 72 65  |' or 'N' and pre|
00001b40  73 73 20 72 65 74 75 72  6e 2e 22 0d 0b 18 a3 f1  |ss return.".....|
00001b50  22 20 20 20 54 6f 20 65  6e 74 65 72 20 79 6f 75  |"   To enter you|
00001b60  72 20 6d 6f 76 65 20 79  6f 75 20 74 79 70 65 20  |r move you type |
00001b70  61 20 33 20 64 69 67 69  74 6e 75 6d 62 65 72 20  |a 3 digitnumber |
00001b80  73 75 63 68 20 61 73 20  31 34 32 2c 20 74 68 69  |such as 142, thi|
00001b90  73 20 6d 65 61 6e 73 20  74 68 61 74 20 79 6f 75  |s means that you|
00001ba0  22 27 22 77 61 6e 74 20  79 6f 75 72 20 6d 61 72  |"'"want your mar|
00001bb0  6b 65 72 20 70 6c 61 63  65 64 20 6f 6e 20 6c 61  |ker placed on la|
00001bc0  79 65 72 20 31 20 28 74  68 65 22 27 22 74 6f 70  |yer 1 (the"'"top|
00001bd0  20 6c 61 79 65 72 29 2c  20 72 6f 77 20 34 2c 20  | layer), row 4, |
00001be0  61 6e 64 20 63 6f 6c 75  6d 6e 20 32 2e 22 0d 0b  |and column 2."..|
00001bf0  22 37 f1 22 54 68 65 20  63 6f 6d 70 75 74 65 72  |"7."The computer|
00001c00  20 72 65 73 70 6f 6e 64  73 20 75 73 69 6e 67 20  | responds using |
00001c10  74 68 65 20 73 61 6d 65  22 27 22 6e 6f 74 61 74  |the same"'"notat|
00001c20  69 6f 6e 2e 22 0d 0b 2c  27 f1 27 8a 35 29 3b 22  |ion."..,'.'.5);"|
00001c30  50 72 65 73 73 20 27 73  70 61 63 65 27 20 62 61  |Press 'space' ba|
00001c40  72 20 74 6f 20 62 65 67  69 6e 22 3b 0d 0b 36 05  |r to begin";..6.|
00001c50  f5 0d 0b 40 0a 58 3d b3  28 31 29 0d 0b 4a 0b fd  |...@.X=.(1)..J..|
00001c60  a6 28 2d 39 39 29 0d 0b  54 05 e1 0d ff           |.(-99)..T....|
00001c6d
GAMES1/3D-OXO.m0
GAMES1/3D-OXO.m1
GAMES1/3D-OXO.m2
GAMES1/3D-OXO.m4
GAMES1/3D-OXO.m5