All the details to set up for a new season would be coded in data statements at the beginning of the programme ...... for example
Title of the competition
Number of rounds and number of teams in the competition
Team names
10 data AFL RECORD 1997
20 data 22,16
30 data ADELAIDE,BRISBANE,CARLTON,COLLINGWOOD,ESSENDON,FREEMANTLE,GEELONG,HAWTHORN,MELBOURNE,N MELBOURNE,PT ADELAIDE,RICHMOND,ST KILDA,SYDNEY,WEST COAST,W BULLDOGS
and read into the programme
160 restore 10:read title$
170 restore 20:read rounds:read teams
then placed in an array
480 dim tn$(teams),pl(teams),w(teams),d(teams),l(teams),pf(teams),pa(teams),pc(teams),cp(teams)
490 for k=1 to teams:read tn$(k):next k
500 print "Team P W D L Pf Pa Pc Cp"
510 for k=1 to teams:print tn$(k);" ";pl(k);w(k);d(k);l(k);pf(k);pa(k);pc(k);cp(k):next k
Initially, at set up, the league would look like:
Team P W D L Pf Pa Pc Cp
ADELAIDE 0 0 0 0 0 0 0 0
BRISBANE 0 0 0 0 0 0 0 0
CARLTON 0 0 0 0 0 0 0 0
COLLINGWOOD 0 0 0 0 0 0 0 0
ESSENDON 0 0 0 0 0 0 0 0
FREEMANTLE 0 0 0 0 0 0 0 0
GEELONG 0 0 0 0 0 0 0 0
HAWTHORN 0 0 0 0 0 0 0 0
MELBOURNE 0 0 0 0 0 0 0 0
N MELBOURNE 0 0 0 0 0 0 0 0
PT ADELAIDE 0 0 0 0 0 0 0 0
RICHMOND 0 0 0 0 0 0 0 0
ST KILDA 0 0 0 0 0 0 0 0
SYDNEY 0 0 0 0 0 0 0 0
WEST COAST 0 0 0 0 0 0 0 0
W BULLDOGS 0 0 0 0 0 0 0 0
As the competition progressed, the match details were entered and saved and the subroutine was called to sort the results in decending order ...... championship points being the main criteria, followed by percentage allowing the correct array position for each of the variables
The programme was not written in Dark Basic and I have have no idea whatsoever on how to convert it ...... all I know is it would take much time and effort if at all possible
Hope this helps
LANG MEY YER LUM REEK
Progress is like a wheelbarrow. If you don't keep pushing it, it stops