Home » CEEFAX disks » telesoftware6.adl » Horses

Horses

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 » CEEFAX disks » telesoftware6.adl
Filename: Horses
Read OK:
File size: 1476 bytes
Load address: FFFF0E00
Exec address: FFFF802B
File contents
   10REM **************************
   20REM * Horse Forecaster V 1.0 *
   30REM * (C) Jon Welch 31-03-88 *
   40REM **************************
   50:
   60max%=30
   70DIM stall%(max%)
   80DIM form$(max%)
   90DIM name$(max%)
  100DIM trainer$(max%)
  110DIM age%(max%)
  120DIM weight(max%)
  130DIM course$(max%)
  140DIM jockey$(max%)
  150DIM spotform%(max%)
  160DIM odds(max%)
  170DIM toptra$(10)
  180DIM trapts%(10)
  190DIM topjok$(10)
  200DIM jokpts%(10)
  210DIM points%(max%)
  220DIM list%(max%)
  230:
  240MODE128
  250@%=5
  260INPUT LINE"Load details >"L$
  270IF L$="N" OR L$="n" GOTO320
  280PROCload
  290INPUT LINE"Edit horses >"E$
  300IF E$="Y" OR E$="y" GOTO 380
  310GOTO640
  320INPUT LINE"Course >"course$
  330INPUT LINE"Course Going >"going$
  340going$=FNupper(going$)
  350toptra%=FNenter_top_trainers
  360topjok%=FNenter_top_jockeys
  370:
  380INPUT LINE"Time of race >"time$
  390INPUT LINE"Number of horses >"num%
  400:
  410FORA%=1 TO num%
  420CLS
  430PRINT"Enter details for horse ";A%
  440INPUT LINE"Stall number >"stall%(A%)
  450INPUT LINE"Form >"form$(A%)
  460form$(A%)=FNupper(form$(A%))
  470INPUT LINE"Horse name >"name$(A%)
  480name$(A%)=FNupper(name$(A%))
  490INPUT LINE"Trainer name >"trainer$(A%)
  500trainer$(A%)=FNupper(trainer$(A%))
  510INPUT LINE"Horse age >"age%(A%)
  520INPUT LINE"Horse weight >"weight(A%)
  530INPUT LINE"Course >"course$(A%)
  540course$(A%)=FNupper(course$(A%))
  550INPUT LINE"Jockey >"jockey$(A%)
  560jockey$(A%)=FNupper(jockey$(A%))
  570INPUT LINE"Spotform >"spotform%(A%)
  580INPUT LINE"Odds >"odds$
  590odds(A%)=EVAL(odds$)
  600points%(A%)=0
  610NEXT
  620INPUT LINE"Save >"S$
  630IF S$="Y" OR S$="y" PROCsave
  640:
  650PRINT"Horse                 STL  FRM  TRN  AGE  WGT  CRS  JCK  SPT  ODD"
  660FORA%=1 TO num%
  670PRINTname$(A%);TAB(20);
  680points%=0
  690Z%=FNstall(stall%(A%)):PRINTZ%;:points%=points%+Z%
  700Z%=FNform(form$(A%)):PRINTZ%;:points%=points%+Z%
  710Z%=FNtrainer(trainer$(A%)):PRINTZ%;:points%=points%+Z%
  720Z%=FNage(age%(A%)):PRINTZ%;:points%=points%+Z%
  730Z%=FNweight(weight(A%)):PRINTZ%;:points%=points%+Z%
  740Z%=FNcourse(course$(A%)):PRINTZ%;:points%=points%+Z%
  750Z%=FNjockey(jockey$(A%)):PRINTZ%;:points%=points%+Z%
  760Z%=FNspot(spotform%(A%)):PRINTZ%;:points%=points%+Z%
  770Z%=FNodds(odds(A%)):PRINTZ%;:points%=points%+Z%
  780points%(A%)=points%
  790PRINT " = ";points%
  800NEXT
  810PRINT
  820:
  830FORA%=1 TO num%
  840list%(A%)=A%
  850NEXT
  860:
  870FORA%=1 TO num% - 1
  880FORB%=A% + 1 TO num%
  890IF points%(list%(A%)) < points%(list%(B%)) THEN T%=list%(A%):list%(A%)=list%(B%):list%(B%)=T%
  900NEXT
  910NEXT
  920:
  930FORA%=1 TO num%
  940PRINTname$(list%(A%));TAB(20);points%(list%(A%))
  950NEXT
  960END
  970:
  980DEF FNenter_top_trainers
  990top%=0
 1000PRINT"Enter top trainer ";top%+1;
 1010INPUT LINE" "toptra$
 1020IF toptra$="" = top%
 1030top%=top%+1
 1040toptra$(top%) = FNupper(toptra$)
 1050PRINT"Enter top trainer points ";top%;
 1060INPUT LINE" "trapts%(top%)
 1070GOTO1000
 1080:
 1090DEF FNenter_top_jockeys
 1100top%=0
 1110PRINT"Enter top jockey ";top%+1;
 1120INPUT LINE" "topjok$
 1130IF topjok$="" = top%
 1140top%=top%+1
 1150topjok$(top%) = FNupper(topjok$)
 1160PRINT"Enter top jockey points ";top%;
 1170INPUT LINE" "jokpts%(top%)
 1180GOTO1110
 1190:
 1200DEF FNupper(a$)
 1210LOCAL A%,B%,A$
 1220A$=""
 1230FORA%=1 TO LEN(a$)
 1240B%=ASC(MID$(a$,A%,1))
 1250IF B%>=ASC"a" AND B%<=ASC"z" B%=B%-32
 1260A$=A$+CHR$(B%)
 1270NEXT
 1280=A$
 1290:
 1300DEF FNstall(A%)
 1310=A% / 5
 1320:
 1330DEF FNform(A$)
 1340LOCAL A%
 1350C=0
 1360L%=LEN(A$)
 1370FORA%=L% TO 1 STEP -1
 1380D=0
 1390FORD%=A% TO 1 STEP -1
 1400B%=ASC(MID$(A$,A%,1))
 1410IF B%>=ASC"1" AND B%<=ASC"4" THEN C=C+(5-(B%-48))
 1420IF B%=ASC"P" OR B%=ASC"F" OR B%=ASC"D" OR B%=ASC"U" THEN C=C-5
 1430NEXT
 1440D=D+C/A%
 1450NEXT
 1460=15*D/L%
 1470:
 1480DEF FNtrainer(A$)
 1490LOCAL A%,B%
 1500B%=0
 1510FORA%=1 TO toptra%
 1520IF A$=toptra$(A%) B%=trapts%(A%)
 1530NEXT
 1540=B%/3
 1550:
 1560DEF FNage(A%)
 1570=2*(14-A%)
 1580:
 1590DEF FNweight(A)
 1600=4*(14-A)
 1610:
 1620DEF FNcourse(A$)
 1630LOCAL A%
 1640C%=0
 1650FORA%=1 TO LEN(A$)
 1660IF MID$(A$,A%,2)="HY" AND going$="HEAVY" THEN C%=C%+5:A%=A%+1:GOTO1770 ELSE IF MID$(A$,A%,2)="HY" A%=A%+1:GOTO1770
 1670IF MID$(A$,A%,3)="SFT" AND going$="SOFT" THEN C%=C%+5:A%=A%+2:GOTO1770 ELSE IF MID$(A$,A%,3)="SFT" A%=A%+2:GOTO1770
 1680IF MID$(A$,A%,2)="FM" AND going$="FIRM" THEN C%=C%+5:A%=A%+1:GOTO1770 ELSE IF MID$(A$,A%,2)="FM" A%=A%+1:GOTO1770
 1690IF MID$(A$,A%,2)="GD" AND going$="GOOD" THEN C%=C%+5:A%=A%+1:GOTO1770 ELSE IF MID$(A$,A%,2)="GD" A%=A%+1:GOTO1770
 1700IF MID$(A$,A%,1)="C" THEN C%=C%+2
 1710IF MID$(A$,A%,1)="D" THEN C%=C%+2
 1720IF MID$(A$,A%,3)="C-D" THEN A%=A%+2:C%=C%+2
 1730IF MID$(A$,A%,1)="F" THEN C%=C%+5
 1740IF MID$(A$,A%,2)="SF" THEN A%=A%+1:C%=C%+3
 1750IF MID$(A$,A%,2)="BF" THEN A%=A%+1:C%=C%+2
 1760IF MID$(A$,A%,2)="EW" THEN A%=A%+1:C%=C%+2
 1770NEXT
 1780=C%
 1790:
 1800DEF FNjockey(A$)
 1810LOCAL A%,B%
 1820B%=0
 1830FORA%=1 TO topjok%
 1840IF A$=topjok$(A%) B%=jokpts%(A%)
 1850NEXT
 1860=B%/3
 1870:
 1880DEF FNspot(A%)
 1890=A%
 1900:
 1910DEF FNodds(A)
 1920IF A=0 = 0
 1930=50/A
 1940:
 1950DEF PROCsave
 1960INPUT LINE"Filename >"F$
 1970X%=OPENINF$:CLOSE#X%
 1980IF X%<>0 PRINT"File exists !":GOTO1960
 1990X%=OPENOUT F$
 2000PRINT#X%,course$
 2010PRINT#X%,going$
 2020PRINT#X%,toptra%
 2030FORA%=1 TO toptra%
 2040PRINT#X%,toptra$(A%),trapts%(A%)
 2050NEXT
 2060PRINT#X%,topjok%
 2070FORA%=1 TO topjok%
 2080PRINT#X%,topjok$(A%),jokpts%(A%)
 2090NEXT
 2100PRINT#X%,time$
 2110PRINT#X%,num%
 2120FORA%=1 TO num%
 2130PRINT#X%,stall%(A%)
 2140PRINT#X%,form$(A%)
 2150PRINT#X%,name$(A%)
 2160PRINT#X%,trainer$(A%)
 2170PRINT#X%,age%(A%)
 2180PRINT#X%,weight(A%)
 2190PRINT#X%,course$(A%)
 2200PRINT#X%,jockey$(A%)
 2210PRINT#X%,spotform%(A%)
 2220PRINT#X%,odds(A%)
 2230NEXT
 2240CLOSE#X%
 2250ENDPROC
 2260:
 2270DEF PROCload
 2280INPUT LINE"Filename >"F$
 2290X%=OPENINF$:CLOSE#X%
 2300IF X%=0 PRINT"File not found !":GOTO2280
 2310X%=OPENIN F$
 2320INPUT#X%,course$
 2330INPUT#X%,going$
 2340INPUT#X%,toptra%
 2350FORA%=1 TO toptra%
 2360INPUT#X%,toptra$(A%),trapts%(A%)
 2370NEXT
 2380INPUT#X%,topjok%
 2390FORA%=1 TO topjok%
 2400INPUT#X%,topjok$(A%),jokpts%(A%)
 2410NEXT
 2420INPUT#X%,time$
 2430INPUT#X%,num%
 2440FORA%=1 TO num%
 2450INPUT#X%,stall%(A%)
 2460INPUT#X%,form$(A%)
 2470INPUT#X%,name$(A%)
 2480INPUT#X%,trainer$(A%)
 2490INPUT#X%,age%(A%)
 2500INPUT#X%,weight(A%)
 2510INPUT#X%,course$(A%)
 2520INPUT#X%,jockey$(A%)
 2530INPUT#X%,spotform%(A%)
 2540INPUT#X%,odds(A%)
 2550NEXT
 2560CLOSE#X%
 2570ENDPROC
 2580:

 � **************************
 � * Horse Forecaster V 1.0 *
 � * (C) Jon Welch 31-03-88 *
( � **************************
2:
<max%=30
F� stall%(max%)
P� form$(max%)
Z� name$(max%)
d� trainer$(max%)
n� age%(max%)
x� weight(max%)
�� course$(max%)
�� jockey$(max%)
�� spotform%(max%)
�� odds(max%)
�� toptra$(10)
�� trapts%(10)
�� topjok$(10)
�� jokpts%(10)
�� points%(max%)
�� list%(max%)
�:
��128
�@%=5
� �"Load details >"L$
� L$="N" � L$="n" �D@A
	�load
"� �"Edit horses >"E$
,� E$="Y" � E$="y" � �D|A
6	�t@B
@� �"Course >"course$
J� �"Course Going >"going$
Tgoing$=�upper(going$)
^toptra%=�enter_top_trainers
htopjok%=�enter_top_jockeys
r:
|� �"Time of race >"time$
�� �"Number of horses >"num%
�:
��A%=1 � num%
��
�"�"Enter details for horse ";A%
�!� �"Stall number >"stall%(A%)
�� �"Form >"form$(A%)
�form$(A%)=�upper(form$(A%))
�� �"Horse name >"name$(A%)
�name$(A%)=�upper(name$(A%))
�#� �"Trainer name >"trainer$(A%)
�%trainer$(A%)=�upper(trainer$(A%))
�� �"Horse age >"age%(A%)
!� �"Horse weight >"weight(A%)
� �"Course >"course$(A%)
#course$(A%)=�upper(course$(A%))
&� �"Jockey >"jockey$(A%)
0#jockey$(A%)=�upper(jockey$(A%))
: � �"Spotform >"spotform%(A%)
D� �"Odds >"odds$
Nodds(A%)=�(odds$)
Xpoints%(A%)=0
b�
l� �"Save >"S$
v� S$="Y" � S$="y" �save
�:
�H�"Horse                 STL  FRM  TRN  AGE  WGT  CRS  JCK  SPT  ODD"
��A%=1 � num%
��name$(A%);�20);
�
points%=0
�1Z%=�stall(stall%(A%)):�Z%;:points%=points%+Z%
�/Z%=�form(form$(A%)):�Z%;:points%=points%+Z%
�5Z%=�trainer(trainer$(A%)):�Z%;:points%=points%+Z%
�-Z%=�age(age%(A%)):�Z%;:points%=points%+Z%
�2Z%=�weight(weight(A%)):�Z%;:points%=points%+Z%
�3Z%=�course(course$(A%)):�Z%;:points%=points%+Z%
�3Z%=�jockey(jockey$(A%)):�Z%;:points%=points%+Z%
�3Z%=�spot(spotform%(A%)):�Z%;:points%=points%+Z%
.Z%=�odds(odds(A%)):�Z%;:points%=points%+Z%
points%(A%)=points%
� " = ";points%
 �
*�
4:
>�A%=1 � num%
Hlist%(A%)=A%
R�
\:
f�A%=1 � num% - 1
p�B%=A% + 1 � num%
z]� points%(list%(A%)) < points%(list%(B%)) � T%=list%(A%):list%(A%)=list%(B%):list%(B%)=T%
��
��
�:
��A%=1 � num%
�-�name$(list%(A%));�20);points%(list%(A%))
��
��
�:
�� �enter_top_trainers
�
top%=0
�!�"Enter top trainer ";top%+1;
�� �" "toptra$
�� toptra$="" = top%
top%=top%+1
#toptra$(top%) = �upper(toptra$)
&�"Enter top trainer points ";top%;
$� �" "trapts%(top%)
.	�dhC
8:
B� �enter_top_jockeys
L
top%=0
V �"Enter top jockey ";top%+1;
`� �" "topjok$
j� topjok$="" = top%
ttop%=top%+1
~#topjok$(top%) = �upper(topjok$)
�%�"Enter top jockey points ";top%;
�� �" "jokpts%(top%)
�	�DVD
�:
�� �upper(a$)
�� A%,B%,A$
�	A$=""
��A%=1 � �(a$)
�B%=�(�a$,A%,1))
�"� B%>=�"a" � B%<=�"z" B%=B%-32
�A$=A$+�(B%)
��
=A$

:
� �stall(A%)
=A% / 5
(:
2� �form(A$)
<� A%
FC=0
PL%=�(A$)
Z�A%=L% � 1 � -1
dD=0
n�D%=A% � 1 � -1
xB%=�(�A$,A%,1))
�+� B%>=�"1" � B%<=�"4" � C=C+(5-(B%-48))
�3� B%=�"P" � B%=�"F" � B%=�"D" � B%=�"U" � C=C-5
��
�D=D+C/A%
��
�=15*D/L%
�:
�� �trainer(A$)
�� A%,B%
�B%=0
��A%=1 � toptra%
�#� A$=toptra$(A%) B%=trapts%(A%)
��
	=B%/3
:
� �age(A%)
"=2*(14-A%)
,:
6� �weight(A)
@
=4*(14-A)
J:
T� �course(A$)
^� A%
hC%=0
r�A%=1 � �(A$)
|^� �A$,A%,2)="HY" � going$="HEAVY" � C%=C%+5:A%=A%+1:�djF � � �A$,A%,2)="HY" A%=A%+1:�djF
�_� �A$,A%,3)="SFT" � going$="SOFT" � C%=C%+5:A%=A%+2:�djF � � �A$,A%,3)="SFT" A%=A%+2:�djF
�]� �A$,A%,2)="FM" � going$="FIRM" � C%=C%+5:A%=A%+1:�djF � � �A$,A%,2)="FM" A%=A%+1:�djF
�]� �A$,A%,2)="GD" � going$="GOOD" � C%=C%+5:A%=A%+1:�djF � � �A$,A%,2)="GD" A%=A%+1:�djF
�� �A$,A%,1)="C" � C%=C%+2
�� �A$,A%,1)="D" � C%=C%+2
�'� �A$,A%,3)="C-D" � A%=A%+2:C%=C%+2
�� �A$,A%,1)="F" � C%=C%+5
�&� �A$,A%,2)="SF" � A%=A%+1:C%=C%+3
�&� �A$,A%,2)="BF" � A%=A%+1:C%=C%+2
�&� �A$,A%,2)="EW" � A%=A%+1:C%=C%+2
��
�=C%
�:
� �jockey(A$)
� A%,B%
B%=0
&�A%=1 � topjok%
0#� A$=topjok$(A%) B%=jokpts%(A%)
:�
D	=B%/3
N:
X� �spot(A%)
b=A%
l:
v� �odds(A)
�
� A=0 = 0
�	=50/A
�:
�� �save
�� �"Filename >"F$
�X%=�F$:�#X%
�"� X%<>0 �"File exists !":�thG
�X%=� F$
��#X%,course$
��#X%,going$
��#X%,toptra%
��A%=1 � toptra%
� �#X%,toptra$(A%),trapts%(A%)
�
�#X%,topjok%
�A%=1 � topjok%
  �#X%,topjok$(A%),jokpts%(A%)
*�
4�#X%,time$
>
�#X%,num%
H�A%=1 � num%
R�#X%,stall%(A%)
\�#X%,form$(A%)
f�#X%,name$(A%)
p�#X%,trainer$(A%)
z�#X%,age%(A%)
��#X%,weight(A%)
��#X%,course$(A%)
��#X%,jockey$(A%)
��#X%,spotform%(A%)
��#X%,odds(A%)
��
��#X%
��
�:
�� �load
�� �"Filename >"F$
�X%=�F$:�#X%
�$� X%=0 �"File not found !":�dhH
	X%=� F$
	�#X%,course$
	�#X%,going$
	$�#X%,toptra%
	.�A%=1 � toptra%
	8 �#X%,toptra$(A%),trapts%(A%)
	B�
	L�#X%,topjok%
	V�A%=1 � topjok%
	` �#X%,topjok$(A%),jokpts%(A%)
	j�
	t�#X%,time$
	~
�#X%,num%
	��A%=1 � num%
	��#X%,stall%(A%)
	��#X%,form$(A%)
	��#X%,name$(A%)
	��#X%,trainer$(A%)
	��#X%,age%(A%)
	��#X%,weight(A%)
	��#X%,course$(A%)
	��#X%,jockey$(A%)
	��#X%,spotform%(A%)
	��#X%,odds(A%)
	��
�#X%

�
:
�
00000000  0d 00 0a 20 f4 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |... . **********|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000020  0d 00 14 20 f4 20 2a 20  48 6f 72 73 65 20 46 6f  |... . * Horse Fo|
00000030  72 65 63 61 73 74 65 72  20 56 20 31 2e 30 20 2a  |recaster V 1.0 *|
00000040  0d 00 1e 20 f4 20 2a 20  28 43 29 20 4a 6f 6e 20  |... . * (C) Jon |
00000050  57 65 6c 63 68 20 33 31  2d 30 33 2d 38 38 20 2a  |Welch 31-03-88 *|
00000060  0d 00 28 20 f4 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |..( . **********|
00000070  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000080  0d 00 32 05 3a 0d 00 3c  0b 6d 61 78 25 3d 33 30  |..2.:..<.max%=30|
00000090  0d 00 46 12 de 20 73 74  61 6c 6c 25 28 6d 61 78  |..F.. stall%(max|
000000a0  25 29 0d 00 50 11 de 20  66 6f 72 6d 24 28 6d 61  |%)..P.. form$(ma|
000000b0  78 25 29 0d 00 5a 11 de  20 6e 61 6d 65 24 28 6d  |x%)..Z.. name$(m|
000000c0  61 78 25 29 0d 00 64 14  de 20 74 72 61 69 6e 65  |ax%)..d.. traine|
000000d0  72 24 28 6d 61 78 25 29  0d 00 6e 10 de 20 61 67  |r$(max%)..n.. ag|
000000e0  65 25 28 6d 61 78 25 29  0d 00 78 12 de 20 77 65  |e%(max%)..x.. we|
000000f0  69 67 68 74 28 6d 61 78  25 29 0d 00 82 13 de 20  |ight(max%)..... |
00000100  63 6f 75 72 73 65 24 28  6d 61 78 25 29 0d 00 8c  |course$(max%)...|
00000110  13 de 20 6a 6f 63 6b 65  79 24 28 6d 61 78 25 29  |.. jockey$(max%)|
00000120  0d 00 96 15 de 20 73 70  6f 74 66 6f 72 6d 25 28  |..... spotform%(|
00000130  6d 61 78 25 29 0d 00 a0  10 de 20 6f 64 64 73 28  |max%)..... odds(|
00000140  6d 61 78 25 29 0d 00 aa  11 de 20 74 6f 70 74 72  |max%)..... toptr|
00000150  61 24 28 31 30 29 0d 00  b4 11 de 20 74 72 61 70  |a$(10)..... trap|
00000160  74 73 25 28 31 30 29 0d  00 be 11 de 20 74 6f 70  |ts%(10)..... top|
00000170  6a 6f 6b 24 28 31 30 29  0d 00 c8 11 de 20 6a 6f  |jok$(10)..... jo|
00000180  6b 70 74 73 25 28 31 30  29 0d 00 d2 13 de 20 70  |kpts%(10)..... p|
00000190  6f 69 6e 74 73 25 28 6d  61 78 25 29 0d 00 dc 11  |oints%(max%)....|
000001a0  de 20 6c 69 73 74 25 28  6d 61 78 25 29 0d 00 e6  |. list%(max%)...|
000001b0  05 3a 0d 00 f0 08 eb 31  32 38 0d 00 fa 08 40 25  |.:.....128....@%|
000001c0  3d 35 0d 01 04 19 e8 20  86 22 4c 6f 61 64 20 64  |=5..... ."Load d|
000001d0  65 74 61 69 6c 73 20 3e  22 4c 24 0d 01 0e 1b e7  |etails >"L$.....|
000001e0  20 4c 24 3d 22 4e 22 20  84 20 4c 24 3d 22 6e 22  | L$="N" . L$="n"|
000001f0  20 e5 8d 44 40 41 0d 01  18 09 f2 6c 6f 61 64 0d  | ..D@A.....load.|
00000200  01 22 18 e8 20 86 22 45  64 69 74 20 68 6f 72 73  |.".. ."Edit hors|
00000210  65 73 20 3e 22 45 24 0d  01 2c 1c e7 20 45 24 3d  |es >"E$..,.. E$=|
00000220  22 59 22 20 84 20 45 24  3d 22 79 22 20 e5 20 8d  |"Y" . E$="y" . .|
00000230  44 7c 41 0d 01 36 09 e5  8d 74 40 42 0d 01 40 18  |D|A..6...t@B..@.|
00000240  e8 20 86 22 43 6f 75 72  73 65 20 3e 22 63 6f 75  |. ."Course >"cou|
00000250  72 73 65 24 0d 01 4a 1d  e8 20 86 22 43 6f 75 72  |rse$..J.. ."Cour|
00000260  73 65 20 47 6f 69 6e 67  20 3e 22 67 6f 69 6e 67  |se Going >"going|
00000270  24 0d 01 54 19 67 6f 69  6e 67 24 3d a4 75 70 70  |$..T.going$=.upp|
00000280  65 72 28 67 6f 69 6e 67  24 29 0d 01 5e 1f 74 6f  |er(going$)..^.to|
00000290  70 74 72 61 25 3d a4 65  6e 74 65 72 5f 74 6f 70  |ptra%=.enter_top|
000002a0  5f 74 72 61 69 6e 65 72  73 0d 01 68 1e 74 6f 70  |_trainers..h.top|
000002b0  6a 6f 6b 25 3d a4 65 6e  74 65 72 5f 74 6f 70 5f  |jok%=.enter_top_|
000002c0  6a 6f 63 6b 65 79 73 0d  01 72 05 3a 0d 01 7c 1c  |jockeys..r.:..|.|
000002d0  e8 20 86 22 54 69 6d 65  20 6f 66 20 72 61 63 65  |. ."Time of race|
000002e0  20 3e 22 74 69 6d 65 24  0d 01 86 1f e8 20 86 22  | >"time$..... ."|
000002f0  4e 75 6d 62 65 72 20 6f  66 20 68 6f 72 73 65 73  |Number of horses|
00000300  20 3e 22 6e 75 6d 25 0d  01 90 05 3a 0d 01 9a 10  | >"num%....:....|
00000310  e3 41 25 3d 31 20 b8 20  6e 75 6d 25 0d 01 a4 05  |.A%=1 . num%....|
00000320  db 0d 01 ae 22 f1 22 45  6e 74 65 72 20 64 65 74  |...."."Enter det|
00000330  61 69 6c 73 20 66 6f 72  20 68 6f 72 73 65 20 22  |ails for horse "|
00000340  3b 41 25 0d 01 b8 21 e8  20 86 22 53 74 61 6c 6c  |;A%...!. ."Stall|
00000350  20 6e 75 6d 62 65 72 20  3e 22 73 74 61 6c 6c 25  | number >"stall%|
00000360  28 41 25 29 0d 01 c2 18  e8 20 86 22 46 6f 72 6d  |(A%)..... ."Form|
00000370  20 3e 22 66 6f 72 6d 24  28 41 25 29 0d 01 cc 1f  | >"form$(A%)....|
00000380  66 6f 72 6d 24 28 41 25  29 3d a4 75 70 70 65 72  |form$(A%)=.upper|
00000390  28 66 6f 72 6d 24 28 41  25 29 29 0d 01 d6 1e e8  |(form$(A%)).....|
000003a0  20 86 22 48 6f 72 73 65  20 6e 61 6d 65 20 3e 22  | ."Horse name >"|
000003b0  6e 61 6d 65 24 28 41 25  29 0d 01 e0 1f 6e 61 6d  |name$(A%)....nam|
000003c0  65 24 28 41 25 29 3d a4  75 70 70 65 72 28 6e 61  |e$(A%)=.upper(na|
000003d0  6d 65 24 28 41 25 29 29  0d 01 ea 23 e8 20 86 22  |me$(A%))...#. ."|
000003e0  54 72 61 69 6e 65 72 20  6e 61 6d 65 20 3e 22 74  |Trainer name >"t|
000003f0  72 61 69 6e 65 72 24 28  41 25 29 0d 01 f4 25 74  |rainer$(A%)...%t|
00000400  72 61 69 6e 65 72 24 28  41 25 29 3d a4 75 70 70  |rainer$(A%)=.upp|
00000410  65 72 28 74 72 61 69 6e  65 72 24 28 41 25 29 29  |er(trainer$(A%))|
00000420  0d 01 fe 1c e8 20 86 22  48 6f 72 73 65 20 61 67  |..... ."Horse ag|
00000430  65 20 3e 22 61 67 65 25  28 41 25 29 0d 02 08 21  |e >"age%(A%)...!|
00000440  e8 20 86 22 48 6f 72 73  65 20 77 65 69 67 68 74  |. ."Horse weight|
00000450  20 3e 22 77 65 69 67 68  74 28 41 25 29 0d 02 12  | >"weight(A%)...|
00000460  1c e8 20 86 22 43 6f 75  72 73 65 20 3e 22 63 6f  |.. ."Course >"co|
00000470  75 72 73 65 24 28 41 25  29 0d 02 1c 23 63 6f 75  |urse$(A%)...#cou|
00000480  72 73 65 24 28 41 25 29  3d a4 75 70 70 65 72 28  |rse$(A%)=.upper(|
00000490  63 6f 75 72 73 65 24 28  41 25 29 29 0d 02 26 1c  |course$(A%))..&.|
000004a0  e8 20 86 22 4a 6f 63 6b  65 79 20 3e 22 6a 6f 63  |. ."Jockey >"joc|
000004b0  6b 65 79 24 28 41 25 29  0d 02 30 23 6a 6f 63 6b  |key$(A%)..0#jock|
000004c0  65 79 24 28 41 25 29 3d  a4 75 70 70 65 72 28 6a  |ey$(A%)=.upper(j|
000004d0  6f 63 6b 65 79 24 28 41  25 29 29 0d 02 3a 20 e8  |ockey$(A%))..: .|
000004e0  20 86 22 53 70 6f 74 66  6f 72 6d 20 3e 22 73 70  | ."Spotform >"sp|
000004f0  6f 74 66 6f 72 6d 25 28  41 25 29 0d 02 44 14 e8  |otform%(A%)..D..|
00000500  20 86 22 4f 64 64 73 20  3e 22 6f 64 64 73 24 0d  | ."Odds >"odds$.|
00000510  02 4e 15 6f 64 64 73 28  41 25 29 3d a0 28 6f 64  |.N.odds(A%)=.(od|
00000520  64 73 24 29 0d 02 58 11  70 6f 69 6e 74 73 25 28  |ds$)..X.points%(|
00000530  41 25 29 3d 30 0d 02 62  05 ed 0d 02 6c 11 e8 20  |A%)=0..b....l.. |
00000540  86 22 53 61 76 65 20 3e  22 53 24 0d 02 76 1b e7  |."Save >"S$..v..|
00000550  20 53 24 3d 22 59 22 20  84 20 53 24 3d 22 79 22  | S$="Y" . S$="y"|
00000560  20 f2 73 61 76 65 0d 02  80 05 3a 0d 02 8a 48 f1  | .save....:...H.|
00000570  22 48 6f 72 73 65 20 20  20 20 20 20 20 20 20 20  |"Horse          |
00000580  20 20 20 20 20 20 20 53  54 4c 20 20 46 52 4d 20  |       STL  FRM |
00000590  20 54 52 4e 20 20 41 47  45 20 20 57 47 54 20 20  | TRN  AGE  WGT  |
000005a0  43 52 53 20 20 4a 43 4b  20 20 53 50 54 20 20 4f  |CRS  JCK  SPT  O|
000005b0  44 44 22 0d 02 94 10 e3  41 25 3d 31 20 b8 20 6e  |DD".....A%=1 . n|
000005c0  75 6d 25 0d 02 9e 14 f1  6e 61 6d 65 24 28 41 25  |um%.....name$(A%|
000005d0  29 3b 8a 32 30 29 3b 0d  02 a8 0d 70 6f 69 6e 74  |);.20);....point|
000005e0  73 25 3d 30 0d 02 b2 31  5a 25 3d a4 73 74 61 6c  |s%=0...1Z%=.stal|
000005f0  6c 28 73 74 61 6c 6c 25  28 41 25 29 29 3a f1 5a  |l(stall%(A%)):.Z|
00000600  25 3b 3a 70 6f 69 6e 74  73 25 3d 70 6f 69 6e 74  |%;:points%=point|
00000610  73 25 2b 5a 25 0d 02 bc  2f 5a 25 3d a4 66 6f 72  |s%+Z%.../Z%=.for|
00000620  6d 28 66 6f 72 6d 24 28  41 25 29 29 3a f1 5a 25  |m(form$(A%)):.Z%|
00000630  3b 3a 70 6f 69 6e 74 73  25 3d 70 6f 69 6e 74 73  |;:points%=points|
00000640  25 2b 5a 25 0d 02 c6 35  5a 25 3d a4 74 72 61 69  |%+Z%...5Z%=.trai|
00000650  6e 65 72 28 74 72 61 69  6e 65 72 24 28 41 25 29  |ner(trainer$(A%)|
00000660  29 3a f1 5a 25 3b 3a 70  6f 69 6e 74 73 25 3d 70  |):.Z%;:points%=p|
00000670  6f 69 6e 74 73 25 2b 5a  25 0d 02 d0 2d 5a 25 3d  |oints%+Z%...-Z%=|
00000680  a4 61 67 65 28 61 67 65  25 28 41 25 29 29 3a f1  |.age(age%(A%)):.|
00000690  5a 25 3b 3a 70 6f 69 6e  74 73 25 3d 70 6f 69 6e  |Z%;:points%=poin|
000006a0  74 73 25 2b 5a 25 0d 02  da 32 5a 25 3d a4 77 65  |ts%+Z%...2Z%=.we|
000006b0  69 67 68 74 28 77 65 69  67 68 74 28 41 25 29 29  |ight(weight(A%))|
000006c0  3a f1 5a 25 3b 3a 70 6f  69 6e 74 73 25 3d 70 6f  |:.Z%;:points%=po|
000006d0  69 6e 74 73 25 2b 5a 25  0d 02 e4 33 5a 25 3d a4  |ints%+Z%...3Z%=.|
000006e0  63 6f 75 72 73 65 28 63  6f 75 72 73 65 24 28 41  |course(course$(A|
000006f0  25 29 29 3a f1 5a 25 3b  3a 70 6f 69 6e 74 73 25  |%)):.Z%;:points%|
00000700  3d 70 6f 69 6e 74 73 25  2b 5a 25 0d 02 ee 33 5a  |=points%+Z%...3Z|
00000710  25 3d a4 6a 6f 63 6b 65  79 28 6a 6f 63 6b 65 79  |%=.jockey(jockey|
00000720  24 28 41 25 29 29 3a f1  5a 25 3b 3a 70 6f 69 6e  |$(A%)):.Z%;:poin|
00000730  74 73 25 3d 70 6f 69 6e  74 73 25 2b 5a 25 0d 02  |ts%=points%+Z%..|
00000740  f8 33 5a 25 3d a4 73 70  6f 74 28 73 70 6f 74 66  |.3Z%=.spot(spotf|
00000750  6f 72 6d 25 28 41 25 29  29 3a f1 5a 25 3b 3a 70  |orm%(A%)):.Z%;:p|
00000760  6f 69 6e 74 73 25 3d 70  6f 69 6e 74 73 25 2b 5a  |oints%=points%+Z|
00000770  25 0d 03 02 2e 5a 25 3d  a4 6f 64 64 73 28 6f 64  |%....Z%=.odds(od|
00000780  64 73 28 41 25 29 29 3a  f1 5a 25 3b 3a 70 6f 69  |ds(A%)):.Z%;:poi|
00000790  6e 74 73 25 3d 70 6f 69  6e 74 73 25 2b 5a 25 0d  |nts%=points%+Z%.|
000007a0  03 0c 17 70 6f 69 6e 74  73 25 28 41 25 29 3d 70  |...points%(A%)=p|
000007b0  6f 69 6e 74 73 25 0d 03  16 13 f1 20 22 20 3d 20  |oints%..... " = |
000007c0  22 3b 70 6f 69 6e 74 73  25 0d 03 20 05 ed 0d 03  |";points%.. ....|
000007d0  2a 05 f1 0d 03 34 05 3a  0d 03 3e 10 e3 41 25 3d  |*....4.:..>..A%=|
000007e0  31 20 b8 20 6e 75 6d 25  0d 03 48 10 6c 69 73 74  |1 . num%..H.list|
000007f0  25 28 41 25 29 3d 41 25  0d 03 52 05 ed 0d 03 5c  |%(A%)=A%..R....\|
00000800  05 3a 0d 03 66 14 e3 41  25 3d 31 20 b8 20 6e 75  |.:..f..A%=1 . nu|
00000810  6d 25 20 2d 20 31 0d 03  70 15 e3 42 25 3d 41 25  |m% - 1..p..B%=A%|
00000820  20 2b 20 31 20 b8 20 6e  75 6d 25 0d 03 7a 5d e7  | + 1 . num%..z].|
00000830  20 70 6f 69 6e 74 73 25  28 6c 69 73 74 25 28 41  | points%(list%(A|
00000840  25 29 29 20 3c 20 70 6f  69 6e 74 73 25 28 6c 69  |%)) < points%(li|
00000850  73 74 25 28 42 25 29 29  20 8c 20 54 25 3d 6c 69  |st%(B%)) . T%=li|
00000860  73 74 25 28 41 25 29 3a  6c 69 73 74 25 28 41 25  |st%(A%):list%(A%|
00000870  29 3d 6c 69 73 74 25 28  42 25 29 3a 6c 69 73 74  |)=list%(B%):list|
00000880  25 28 42 25 29 3d 54 25  0d 03 84 05 ed 0d 03 8e  |%(B%)=T%........|
00000890  05 ed 0d 03 98 05 3a 0d  03 a2 10 e3 41 25 3d 31  |......:.....A%=1|
000008a0  20 b8 20 6e 75 6d 25 0d  03 ac 2d f1 6e 61 6d 65  | . num%...-.name|
000008b0  24 28 6c 69 73 74 25 28  41 25 29 29 3b 8a 32 30  |$(list%(A%));.20|
000008c0  29 3b 70 6f 69 6e 74 73  25 28 6c 69 73 74 25 28  |);points%(list%(|
000008d0  41 25 29 29 0d 03 b6 05  ed 0d 03 c0 05 e0 0d 03  |A%))............|
000008e0  ca 05 3a 0d 03 d4 19 dd  20 a4 65 6e 74 65 72 5f  |..:..... .enter_|
000008f0  74 6f 70 5f 74 72 61 69  6e 65 72 73 0d 03 de 0a  |top_trainers....|
00000900  74 6f 70 25 3d 30 0d 03  e8 21 f1 22 45 6e 74 65  |top%=0...!."Ente|
00000910  72 20 74 6f 70 20 74 72  61 69 6e 65 72 20 22 3b  |r top trainer ";|
00000920  74 6f 70 25 2b 31 3b 0d  03 f2 11 e8 20 86 22 20  |top%+1;..... ." |
00000930  22 74 6f 70 74 72 61 24  0d 03 fc 17 e7 20 74 6f  |"toptra$..... to|
00000940  70 74 72 61 24 3d 22 22  20 3d 20 74 6f 70 25 0d  |ptra$="" = top%.|
00000950  04 06 0f 74 6f 70 25 3d  74 6f 70 25 2b 31 0d 04  |...top%=top%+1..|
00000960  10 23 74 6f 70 74 72 61  24 28 74 6f 70 25 29 20  |.#toptra$(top%) |
00000970  3d 20 a4 75 70 70 65 72  28 74 6f 70 74 72 61 24  |= .upper(toptra$|
00000980  29 0d 04 1a 26 f1 22 45  6e 74 65 72 20 74 6f 70  |)...&."Enter top|
00000990  20 74 72 61 69 6e 65 72  20 70 6f 69 6e 74 73 20  | trainer points |
000009a0  22 3b 74 6f 70 25 3b 0d  04 24 17 e8 20 86 22 20  |";top%;..$.. ." |
000009b0  22 74 72 61 70 74 73 25  28 74 6f 70 25 29 0d 04  |"trapts%(top%)..|
000009c0  2e 09 e5 8d 64 68 43 0d  04 38 05 3a 0d 04 42 18  |....dhC..8.:..B.|
000009d0  dd 20 a4 65 6e 74 65 72  5f 74 6f 70 5f 6a 6f 63  |. .enter_top_joc|
000009e0  6b 65 79 73 0d 04 4c 0a  74 6f 70 25 3d 30 0d 04  |keys..L.top%=0..|
000009f0  56 20 f1 22 45 6e 74 65  72 20 74 6f 70 20 6a 6f  |V ."Enter top jo|
00000a00  63 6b 65 79 20 22 3b 74  6f 70 25 2b 31 3b 0d 04  |ckey ";top%+1;..|
00000a10  60 11 e8 20 86 22 20 22  74 6f 70 6a 6f 6b 24 0d  |`.. ." "topjok$.|
00000a20  04 6a 17 e7 20 74 6f 70  6a 6f 6b 24 3d 22 22 20  |.j.. topjok$="" |
00000a30  3d 20 74 6f 70 25 0d 04  74 0f 74 6f 70 25 3d 74  |= top%..t.top%=t|
00000a40  6f 70 25 2b 31 0d 04 7e  23 74 6f 70 6a 6f 6b 24  |op%+1..~#topjok$|
00000a50  28 74 6f 70 25 29 20 3d  20 a4 75 70 70 65 72 28  |(top%) = .upper(|
00000a60  74 6f 70 6a 6f 6b 24 29  0d 04 88 25 f1 22 45 6e  |topjok$)...%."En|
00000a70  74 65 72 20 74 6f 70 20  6a 6f 63 6b 65 79 20 70  |ter top jockey p|
00000a80  6f 69 6e 74 73 20 22 3b  74 6f 70 25 3b 0d 04 92  |oints ";top%;...|
00000a90  17 e8 20 86 22 20 22 6a  6f 6b 70 74 73 25 28 74  |.. ." "jokpts%(t|
00000aa0  6f 70 25 29 0d 04 9c 09  e5 8d 44 56 44 0d 04 a6  |op%)......DVD...|
00000ab0  05 3a 0d 04 b0 10 dd 20  a4 75 70 70 65 72 28 61  |.:..... .upper(a|
00000ac0  24 29 0d 04 ba 0e ea 20  41 25 2c 42 25 2c 41 24  |$)..... A%,B%,A$|
00000ad0  0d 04 c4 09 41 24 3d 22  22 0d 04 ce 11 e3 41 25  |....A$="".....A%|
00000ae0  3d 31 20 b8 20 a9 28 61  24 29 0d 04 d8 13 42 25  |=1 . .(a$)....B%|
00000af0  3d 97 28 c1 61 24 2c 41  25 2c 31 29 29 0d 04 e2  |=.(.a$,A%,1))...|
00000b00  22 e7 20 42 25 3e 3d 97  22 61 22 20 80 20 42 25  |". B%>=."a" . B%|
00000b10  3c 3d 97 22 7a 22 20 42  25 3d 42 25 2d 33 32 0d  |<=."z" B%=B%-32.|
00000b20  04 ec 0f 41 24 3d 41 24  2b bd 28 42 25 29 0d 04  |...A$=A$+.(B%)..|
00000b30  f6 05 ed 0d 05 00 07 3d  41 24 0d 05 0a 05 3a 0d  |.......=A$....:.|
00000b40  05 14 10 dd 20 a4 73 74  61 6c 6c 28 41 25 29 0d  |.... .stall(A%).|
00000b50  05 1e 0b 3d 41 25 20 2f  20 35 0d 05 28 05 3a 0d  |...=A% / 5..(.:.|
00000b60  05 32 0f dd 20 a4 66 6f  72 6d 28 41 24 29 0d 05  |.2.. .form(A$)..|
00000b70  3c 08 ea 20 41 25 0d 05  46 07 43 3d 30 0d 05 50  |<.. A%..F.C=0..P|
00000b80  0c 4c 25 3d a9 28 41 24  29 0d 05 5a 13 e3 41 25  |.L%=.(A$)..Z..A%|
00000b90  3d 4c 25 20 b8 20 31 20  88 20 2d 31 0d 05 64 07  |=L% . 1 . -1..d.|
00000ba0  44 3d 30 0d 05 6e 13 e3  44 25 3d 41 25 20 b8 20  |D=0..n..D%=A% . |
00000bb0  31 20 88 20 2d 31 0d 05  78 13 42 25 3d 97 28 c1  |1 . -1..x.B%=.(.|
00000bc0  41 24 2c 41 25 2c 31 29  29 0d 05 82 2b e7 20 42  |A$,A%,1))...+. B|
00000bd0  25 3e 3d 97 22 31 22 20  80 20 42 25 3c 3d 97 22  |%>=."1" . B%<=."|
00000be0  34 22 20 8c 20 43 3d 43  2b 28 35 2d 28 42 25 2d  |4" . C=C+(5-(B%-|
00000bf0  34 38 29 29 0d 05 8c 33  e7 20 42 25 3d 97 22 50  |48))...3. B%=."P|
00000c00  22 20 84 20 42 25 3d 97  22 46 22 20 84 20 42 25  |" . B%=."F" . B%|
00000c10  3d 97 22 44 22 20 84 20  42 25 3d 97 22 55 22 20  |=."D" . B%=."U" |
00000c20  8c 20 43 3d 43 2d 35 0d  05 96 05 ed 0d 05 a0 0c  |. C=C-5.........|
00000c30  44 3d 44 2b 43 2f 41 25  0d 05 aa 05 ed 0d 05 b4  |D=D+C/A%........|
00000c40  0c 3d 31 35 2a 44 2f 4c  25 0d 05 be 05 3a 0d 05  |.=15*D/L%....:..|
00000c50  c8 12 dd 20 a4 74 72 61  69 6e 65 72 28 41 24 29  |... .trainer(A$)|
00000c60  0d 05 d2 0b ea 20 41 25  2c 42 25 0d 05 dc 08 42  |..... A%,B%....B|
00000c70  25 3d 30 0d 05 e6 13 e3  41 25 3d 31 20 b8 20 74  |%=0.....A%=1 . t|
00000c80  6f 70 74 72 61 25 0d 05  f0 23 e7 20 41 24 3d 74  |optra%...#. A$=t|
00000c90  6f 70 74 72 61 24 28 41  25 29 20 42 25 3d 74 72  |optra$(A%) B%=tr|
00000ca0  61 70 74 73 25 28 41 25  29 0d 05 fa 05 ed 0d 06  |apts%(A%).......|
00000cb0  04 09 3d 42 25 2f 33 0d  06 0e 05 3a 0d 06 18 0e  |..=B%/3....:....|
00000cc0  dd 20 a4 61 67 65 28 41  25 29 0d 06 22 0e 3d 32  |. .age(A%)..".=2|
00000cd0  2a 28 31 34 2d 41 25 29  0d 06 2c 05 3a 0d 06 36  |*(14-A%)..,.:..6|
00000ce0  10 dd 20 a4 77 65 69 67  68 74 28 41 29 0d 06 40  |.. .weight(A)..@|
00000cf0  0d 3d 34 2a 28 31 34 2d  41 29 0d 06 4a 05 3a 0d  |.=4*(14-A)..J.:.|
00000d00  06 54 11 dd 20 a4 63 6f  75 72 73 65 28 41 24 29  |.T.. .course(A$)|
00000d10  0d 06 5e 08 ea 20 41 25  0d 06 68 08 43 25 3d 30  |..^.. A%..h.C%=0|
00000d20  0d 06 72 11 e3 41 25 3d  31 20 b8 20 a9 28 41 24  |..r..A%=1 . .(A$|
00000d30  29 0d 06 7c 5e e7 20 c1  41 24 2c 41 25 2c 32 29  |)..|^. .A$,A%,2)|
00000d40  3d 22 48 59 22 20 80 20  67 6f 69 6e 67 24 3d 22  |="HY" . going$="|
00000d50  48 45 41 56 59 22 20 8c  20 43 25 3d 43 25 2b 35  |HEAVY" . C%=C%+5|
00000d60  3a 41 25 3d 41 25 2b 31  3a e5 8d 64 6a 46 20 8b  |:A%=A%+1:..djF .|
00000d70  20 e7 20 c1 41 24 2c 41  25 2c 32 29 3d 22 48 59  | . .A$,A%,2)="HY|
00000d80  22 20 41 25 3d 41 25 2b  31 3a e5 8d 64 6a 46 0d  |" A%=A%+1:..djF.|
00000d90  06 86 5f e7 20 c1 41 24  2c 41 25 2c 33 29 3d 22  |.._. .A$,A%,3)="|
00000da0  53 46 54 22 20 80 20 67  6f 69 6e 67 24 3d 22 53  |SFT" . going$="S|
00000db0  4f 46 54 22 20 8c 20 43  25 3d 43 25 2b 35 3a 41  |OFT" . C%=C%+5:A|
00000dc0  25 3d 41 25 2b 32 3a e5  8d 64 6a 46 20 8b 20 e7  |%=A%+2:..djF . .|
00000dd0  20 c1 41 24 2c 41 25 2c  33 29 3d 22 53 46 54 22  | .A$,A%,3)="SFT"|
00000de0  20 41 25 3d 41 25 2b 32  3a e5 8d 64 6a 46 0d 06  | A%=A%+2:..djF..|
00000df0  90 5d e7 20 c1 41 24 2c  41 25 2c 32 29 3d 22 46  |.]. .A$,A%,2)="F|
00000e00  4d 22 20 80 20 67 6f 69  6e 67 24 3d 22 46 49 52  |M" . going$="FIR|
00000e10  4d 22 20 8c 20 43 25 3d  43 25 2b 35 3a 41 25 3d  |M" . C%=C%+5:A%=|
00000e20  41 25 2b 31 3a e5 8d 64  6a 46 20 8b 20 e7 20 c1  |A%+1:..djF . . .|
00000e30  41 24 2c 41 25 2c 32 29  3d 22 46 4d 22 20 41 25  |A$,A%,2)="FM" A%|
00000e40  3d 41 25 2b 31 3a e5 8d  64 6a 46 0d 06 9a 5d e7  |=A%+1:..djF...].|
00000e50  20 c1 41 24 2c 41 25 2c  32 29 3d 22 47 44 22 20  | .A$,A%,2)="GD" |
00000e60  80 20 67 6f 69 6e 67 24  3d 22 47 4f 4f 44 22 20  |. going$="GOOD" |
00000e70  8c 20 43 25 3d 43 25 2b  35 3a 41 25 3d 41 25 2b  |. C%=C%+5:A%=A%+|
00000e80  31 3a e5 8d 64 6a 46 20  8b 20 e7 20 c1 41 24 2c  |1:..djF . . .A$,|
00000e90  41 25 2c 32 29 3d 22 47  44 22 20 41 25 3d 41 25  |A%,2)="GD" A%=A%|
00000ea0  2b 31 3a e5 8d 64 6a 46  0d 06 a4 1d e7 20 c1 41  |+1:..djF..... .A|
00000eb0  24 2c 41 25 2c 31 29 3d  22 43 22 20 8c 20 43 25  |$,A%,1)="C" . C%|
00000ec0  3d 43 25 2b 32 0d 06 ae  1d e7 20 c1 41 24 2c 41  |=C%+2..... .A$,A|
00000ed0  25 2c 31 29 3d 22 44 22  20 8c 20 43 25 3d 43 25  |%,1)="D" . C%=C%|
00000ee0  2b 32 0d 06 b8 27 e7 20  c1 41 24 2c 41 25 2c 33  |+2...'. .A$,A%,3|
00000ef0  29 3d 22 43 2d 44 22 20  8c 20 41 25 3d 41 25 2b  |)="C-D" . A%=A%+|
00000f00  32 3a 43 25 3d 43 25 2b  32 0d 06 c2 1d e7 20 c1  |2:C%=C%+2..... .|
00000f10  41 24 2c 41 25 2c 31 29  3d 22 46 22 20 8c 20 43  |A$,A%,1)="F" . C|
00000f20  25 3d 43 25 2b 35 0d 06  cc 26 e7 20 c1 41 24 2c  |%=C%+5...&. .A$,|
00000f30  41 25 2c 32 29 3d 22 53  46 22 20 8c 20 41 25 3d  |A%,2)="SF" . A%=|
00000f40  41 25 2b 31 3a 43 25 3d  43 25 2b 33 0d 06 d6 26  |A%+1:C%=C%+3...&|
00000f50  e7 20 c1 41 24 2c 41 25  2c 32 29 3d 22 42 46 22  |. .A$,A%,2)="BF"|
00000f60  20 8c 20 41 25 3d 41 25  2b 31 3a 43 25 3d 43 25  | . A%=A%+1:C%=C%|
00000f70  2b 32 0d 06 e0 26 e7 20  c1 41 24 2c 41 25 2c 32  |+2...&. .A$,A%,2|
00000f80  29 3d 22 45 57 22 20 8c  20 41 25 3d 41 25 2b 31  |)="EW" . A%=A%+1|
00000f90  3a 43 25 3d 43 25 2b 32  0d 06 ea 05 ed 0d 06 f4  |:C%=C%+2........|
00000fa0  07 3d 43 25 0d 06 fe 05  3a 0d 07 08 11 dd 20 a4  |.=C%....:..... .|
00000fb0  6a 6f 63 6b 65 79 28 41  24 29 0d 07 12 0b ea 20  |jockey(A$)..... |
00000fc0  41 25 2c 42 25 0d 07 1c  08 42 25 3d 30 0d 07 26  |A%,B%....B%=0..&|
00000fd0  13 e3 41 25 3d 31 20 b8  20 74 6f 70 6a 6f 6b 25  |..A%=1 . topjok%|
00000fe0  0d 07 30 23 e7 20 41 24  3d 74 6f 70 6a 6f 6b 24  |..0#. A$=topjok$|
00000ff0  28 41 25 29 20 42 25 3d  6a 6f 6b 70 74 73 25 28  |(A%) B%=jokpts%(|
00001000  41 25 29 0d 07 3a 05 ed  0d 07 44 09 3d 42 25 2f  |A%)..:....D.=B%/|
00001010  33 0d 07 4e 05 3a 0d 07  58 0f dd 20 a4 73 70 6f  |3..N.:..X.. .spo|
00001020  74 28 41 25 29 0d 07 62  07 3d 41 25 0d 07 6c 05  |t(A%)..b.=A%..l.|
00001030  3a 0d 07 76 0e dd 20 a4  6f 64 64 73 28 41 29 0d  |:..v.. .odds(A).|
00001040  07 80 0d e7 20 41 3d 30  20 3d 20 30 0d 07 8a 09  |.... A=0 = 0....|
00001050  3d 35 30 2f 41 0d 07 94  05 3a 0d 07 9e 0b dd 20  |=50/A....:..... |
00001060  f2 73 61 76 65 0d 07 a8  15 e8 20 86 22 46 69 6c  |.save..... ."Fil|
00001070  65 6e 61 6d 65 20 3e 22  46 24 0d 07 b2 0f 58 25  |ename >"F$....X%|
00001080  3d 8e 46 24 3a d9 23 58  25 0d 07 bc 22 e7 20 58  |=.F$:.#X%...". X|
00001090  25 3c 3e 30 20 f1 22 46  69 6c 65 20 65 78 69 73  |%<>0 ."File exis|
000010a0  74 73 20 21 22 3a e5 8d  74 68 47 0d 07 c6 0b 58  |ts !":..thG....X|
000010b0  25 3d ae 20 46 24 0d 07  d0 10 f1 23 58 25 2c 63  |%=. F$.....#X%,c|
000010c0  6f 75 72 73 65 24 0d 07  da 0f f1 23 58 25 2c 67  |ourse$.....#X%,g|
000010d0  6f 69 6e 67 24 0d 07 e4  10 f1 23 58 25 2c 74 6f  |oing$.....#X%,to|
000010e0  70 74 72 61 25 0d 07 ee  13 e3 41 25 3d 31 20 b8  |ptra%.....A%=1 .|
000010f0  20 74 6f 70 74 72 61 25  0d 07 f8 20 f1 23 58 25  | toptra%... .#X%|
00001100  2c 74 6f 70 74 72 61 24  28 41 25 29 2c 74 72 61  |,toptra$(A%),tra|
00001110  70 74 73 25 28 41 25 29  0d 08 02 05 ed 0d 08 0c  |pts%(A%)........|
00001120  10 f1 23 58 25 2c 74 6f  70 6a 6f 6b 25 0d 08 16  |..#X%,topjok%...|
00001130  13 e3 41 25 3d 31 20 b8  20 74 6f 70 6a 6f 6b 25  |..A%=1 . topjok%|
00001140  0d 08 20 20 f1 23 58 25  2c 74 6f 70 6a 6f 6b 24  |..  .#X%,topjok$|
00001150  28 41 25 29 2c 6a 6f 6b  70 74 73 25 28 41 25 29  |(A%),jokpts%(A%)|
00001160  0d 08 2a 05 ed 0d 08 34  0e f1 23 58 25 2c 74 69  |..*....4..#X%,ti|
00001170  6d 65 24 0d 08 3e 0d f1  23 58 25 2c 6e 75 6d 25  |me$..>..#X%,num%|
00001180  0d 08 48 10 e3 41 25 3d  31 20 b8 20 6e 75 6d 25  |..H..A%=1 . num%|
00001190  0d 08 52 13 f1 23 58 25  2c 73 74 61 6c 6c 25 28  |..R..#X%,stall%(|
000011a0  41 25 29 0d 08 5c 12 f1  23 58 25 2c 66 6f 72 6d  |A%)..\..#X%,form|
000011b0  24 28 41 25 29 0d 08 66  12 f1 23 58 25 2c 6e 61  |$(A%)..f..#X%,na|
000011c0  6d 65 24 28 41 25 29 0d  08 70 15 f1 23 58 25 2c  |me$(A%)..p..#X%,|
000011d0  74 72 61 69 6e 65 72 24  28 41 25 29 0d 08 7a 11  |trainer$(A%)..z.|
000011e0  f1 23 58 25 2c 61 67 65  25 28 41 25 29 0d 08 84  |.#X%,age%(A%)...|
000011f0  13 f1 23 58 25 2c 77 65  69 67 68 74 28 41 25 29  |..#X%,weight(A%)|
00001200  0d 08 8e 14 f1 23 58 25  2c 63 6f 75 72 73 65 24  |.....#X%,course$|
00001210  28 41 25 29 0d 08 98 14  f1 23 58 25 2c 6a 6f 63  |(A%).....#X%,joc|
00001220  6b 65 79 24 28 41 25 29  0d 08 a2 16 f1 23 58 25  |key$(A%).....#X%|
00001230  2c 73 70 6f 74 66 6f 72  6d 25 28 41 25 29 0d 08  |,spotform%(A%)..|
00001240  ac 11 f1 23 58 25 2c 6f  64 64 73 28 41 25 29 0d  |...#X%,odds(A%).|
00001250  08 b6 05 ed 0d 08 c0 08  d9 23 58 25 0d 08 ca 05  |.........#X%....|
00001260  e1 0d 08 d4 05 3a 0d 08  de 0b dd 20 f2 6c 6f 61  |.....:..... .loa|
00001270  64 0d 08 e8 15 e8 20 86  22 46 69 6c 65 6e 61 6d  |d..... ."Filenam|
00001280  65 20 3e 22 46 24 0d 08  f2 0f 58 25 3d 8e 46 24  |e >"F$....X%=.F$|
00001290  3a d9 23 58 25 0d 08 fc  24 e7 20 58 25 3d 30 20  |:.#X%...$. X%=0 |
000012a0  f1 22 46 69 6c 65 20 6e  6f 74 20 66 6f 75 6e 64  |."File not found|
000012b0  20 21 22 3a e5 8d 64 68  48 0d 09 06 0b 58 25 3d  | !":..dhH....X%=|
000012c0  8e 20 46 24 0d 09 10 10  e8 23 58 25 2c 63 6f 75  |. F$.....#X%,cou|
000012d0  72 73 65 24 0d 09 1a 0f  e8 23 58 25 2c 67 6f 69  |rse$.....#X%,goi|
000012e0  6e 67 24 0d 09 24 10 e8  23 58 25 2c 74 6f 70 74  |ng$..$..#X%,topt|
000012f0  72 61 25 0d 09 2e 13 e3  41 25 3d 31 20 b8 20 74  |ra%.....A%=1 . t|
00001300  6f 70 74 72 61 25 0d 09  38 20 e8 23 58 25 2c 74  |optra%..8 .#X%,t|
00001310  6f 70 74 72 61 24 28 41  25 29 2c 74 72 61 70 74  |optra$(A%),trapt|
00001320  73 25 28 41 25 29 0d 09  42 05 ed 0d 09 4c 10 e8  |s%(A%)..B....L..|
00001330  23 58 25 2c 74 6f 70 6a  6f 6b 25 0d 09 56 13 e3  |#X%,topjok%..V..|
00001340  41 25 3d 31 20 b8 20 74  6f 70 6a 6f 6b 25 0d 09  |A%=1 . topjok%..|
00001350  60 20 e8 23 58 25 2c 74  6f 70 6a 6f 6b 24 28 41  |` .#X%,topjok$(A|
00001360  25 29 2c 6a 6f 6b 70 74  73 25 28 41 25 29 0d 09  |%),jokpts%(A%)..|
00001370  6a 05 ed 0d 09 74 0e e8  23 58 25 2c 74 69 6d 65  |j....t..#X%,time|
00001380  24 0d 09 7e 0d e8 23 58  25 2c 6e 75 6d 25 0d 09  |$..~..#X%,num%..|
00001390  88 10 e3 41 25 3d 31 20  b8 20 6e 75 6d 25 0d 09  |...A%=1 . num%..|
000013a0  92 13 e8 23 58 25 2c 73  74 61 6c 6c 25 28 41 25  |...#X%,stall%(A%|
000013b0  29 0d 09 9c 12 e8 23 58  25 2c 66 6f 72 6d 24 28  |).....#X%,form$(|
000013c0  41 25 29 0d 09 a6 12 e8  23 58 25 2c 6e 61 6d 65  |A%).....#X%,name|
000013d0  24 28 41 25 29 0d 09 b0  15 e8 23 58 25 2c 74 72  |$(A%).....#X%,tr|
000013e0  61 69 6e 65 72 24 28 41  25 29 0d 09 ba 11 e8 23  |ainer$(A%).....#|
000013f0  58 25 2c 61 67 65 25 28  41 25 29 0d 09 c4 13 e8  |X%,age%(A%).....|
00001400  23 58 25 2c 77 65 69 67  68 74 28 41 25 29 0d 09  |#X%,weight(A%)..|
00001410  ce 14 e8 23 58 25 2c 63  6f 75 72 73 65 24 28 41  |...#X%,course$(A|
00001420  25 29 0d 09 d8 14 e8 23  58 25 2c 6a 6f 63 6b 65  |%).....#X%,jocke|
00001430  79 24 28 41 25 29 0d 09  e2 16 e8 23 58 25 2c 73  |y$(A%).....#X%,s|
00001440  70 6f 74 66 6f 72 6d 25  28 41 25 29 0d 09 ec 11  |potform%(A%)....|
00001450  e8 23 58 25 2c 6f 64 64  73 28 41 25 29 0d 09 f6  |.#X%,odds(A%)...|
00001460  05 ed 0d 0a 00 08 d9 23  58 25 0d 0a 0a 05 e1 0d  |.......#X%......|
00001470  0a 14 05 3a 0d ff                                 |...:..|
00001476
Horses.m0
Horses.m1
Horses.m2
Horses.m4
Horses.m5