home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / busi / bowlng.zip / BOWL1.DOC < prev    next >
Text File  |  1986-08-18  |  12KB  |  305 lines

  1. b/A.space1
  2. .PAGE
  3. .LINES60
  4. .space1
  5.                 BOWLING LEAGUE SECRETARY'S SYSTEM
  6.               PROGRAM DESCRIPTION/OPERATIONS MANUAL
  7.                           SEPTEMBER 1982
  8. .EJECT
  9. .space1
  10.                      TABLE OF CONTENTS
  11.      System Overview . . . . . . . . . . . . . . . . . . 1
  12.      File Descriptions . . . . . . . . . . . . . . . . . 2
  13.      Program Descriptions  . . . . . . . . . . . . . . .10
  14.      Setup and Operations  . . . . . . . . . . . . . . .14
  15.  
  16.  
  17.  
  18.    All questions about the system may be directed to:
  19.  
  20.           William W. Klaproth
  21.           1897 Joseph Drive
  22.           Moraga Ca.    94556
  23.           415/376-0708
  24.  
  25.           B/O GPC
  26.           Oakland Ca.
  27.           Tie 8/648-5337
  28. .eject
  29. .space1
  30. .TITLEA,3,     BOWLING LEAGUE SECRETARY'S SYSTEM.page3,78,#1                   
  31.   SYSTEM OVERVIEW
  32.  
  33.  
  34.      This system is comprised of twelve programs, representingover 1600 lines o
  35. f code.  The system is written in ADVANCED BASICfor a 64K IBM Personal Computer
  36.  with one or two disks and printer. 
  37.      The system is highly generalized, permitting initializationof most items i
  38. ncluding:
  39.          League Name
  40.          Team Configuration
  41.          Handicap basis
  42.          Schedule
  43.  
  44.      As distributed, the system can handle 18 teams, up to 5bowlers per team, a
  45. nd up to a 50 week season.  The 18 team limitis a function of the 80 character 
  46. print line width used to printschedules.  If this function is appropriately mod
  47. ified, or notused,
  48.  a much larger number of teams can be accommodated.  Theactual limit is a funct
  49. ion of diskette capacity, bowlers per team, and number of weeks.
  50.  
  51.      Programs are provided to initialize all master files, enterscores and prin
  52. t standings (weekly), as well as prepare Bookaverage listings, final team/bowle
  53. r standings, and display orprint individual team/bowler record sheets.
  54.  
  55.      The system is designed to be used on either a one or two diskdrive system.
  56.   Program selection is controlled by a master MENUprogram.  The program diskett
  57. e is assumed to be in the A drive. Except for the smallest leagues, you will ne
  58. ed to maintain all
  59. bowler files on the B drive.  In a single drive environment, DOSwill provide pr
  60. ompts to insert the appropriate diskette.  Justremember - Drive A = PROGRAMS;  
  61. Drive B = FILES.
  62. .eject
  63. .space1
  64.                       SUMMARY OF FILE USAGE
  65.  
  66.  *               
  67.    * File    1        2       3       4           5          6
  68.      *     
  69.        *   TEAMS.  BOWLERS.  TEAM.  BOWLER.  HISCORES.  SCHEDULE.
  70. Program  *  HDR      HDR      DET    .DET        DET       DET
  71. ---------- -----    ------   ----    -----     ------     ------
  72.  
  73. CREATE       C        C        C       C           
  74.  
  75. SCHEDULE                                                    C
  76.  
  77. CHANGE       U        U
  78.  
  79. SCORES       U        U        U       U          C
  80.  
  81. RECAP        I        I        I       I          I         I 
  82.  
  83. RECORDD      I        I        I       I
  84.  
  85. RECORDP      I        I        I       I
  86.  
  87. SORTFILE     I        I        I       I 
  88.  
  89. FINAL        I        I
  90.  
  91. PRINT        I        I
  92.  
  93. DETAIL       I                 I       I
  94.  
  95.      The Table above contains a summary of file creation andusage.  All bowling
  96.  files are Random Files, and are written inpacked binary format.  In the table 
  97. above, "C" indicates where afile is created, "U" where it is updated, and "I" w
  98. here it is used as
  99.  input.
  100.  
  101.      The following pages contain more detailed information on each file.  The f
  102. ormat column shows type of data representation:
  103.           
  104.               I = Integer string
  105.               S = Single precision value string
  106.               D = Double precision value string
  107.               A = Character string
  108. .eject
  109. .space1
  110.                  FILE DESCRIPTIONS
  111.  
  112. File # 1 - TEAMS.HDR   (Team Header File)
  113.  
  114. From To Lgth Format Name       Description                     
  115. ---- -- ---- ------ ---------  -----------                     
  116.   RECORD NUMBER 1 - LEAGUE HEADER
  117.  1    2   2    I    HDRID$     Header ID  (Value="00")
  118.  3   32  30    A    LEAGUE$    Name of League
  119. 33   34   2    I    WEEKS$     Number of Weeks
  120. 35   36   2    I    TEAMS$     Number of Teams
  121. 37   40   4                    Not Used
  122. 41   42   2    I    BWLPERTM$  Bowlers per Team
  123. 43   44   2    I    NXTID$     Next Avail. ID
  124. 45   46   2    I    HCPBASE$   Handicap Base
  125. 47   50   4    S    HCPPCNT$   Handicap %
  126. 51   64  14                    Not Used
  127.  
  128.   RECORD 2 THRU nn - TEAM HEADERS
  129.  1    2   2    I    TM$        Team Number
  130.  3   32  30    A    NAM$       Team Name
  131. 33   34   2    I    RCNT$      Number of Detail Records on File
  132. 35   36   2    I    GAM$       Team Games Bowled
  133. 37   40   4    S    PINS$      Total Team Pins
  134. 41   42   2    I    AVG$       Team Average
  135. 43   44   2    I    HIG$       High Team Game (Scratch)
  136. 45   46   2    I    HIS$       High Team Series (Scratch)
  137. 47   50   4    S    PTSW$      Total Team Points Won
  138. 51   54   4    S    PTSL$      Total Team Points Lost
  139. 55   56   2    I    B1ID$      ID Number of 1st Bowler
  140. 57   58   2    I    B2ID$      ID Number of 2nd Bowler
  141. 59   60   2    I    B3ID$      ID Number of 3rd Bowler
  142. 61   62   2    I    B4ID$      ID Number of 4th Bowler
  143. 63   64   2    I    B5ID$      ID Number of 5th Bowler
  144.  
  145.      Record #1 on this file is the league header, which containsthe variable da
  146. ta for the entire league.  The NXTID$ fieldindicates the next available bowler 
  147. ID and is used by the CHANGEprogram when adding new bowler records.  This field
  148.  cannototherwise b
  149. e updated.
  150.      Records 2 thru n contain Team header data.  RCNT$ is acontrol filed and in
  151. dicates the number of detail records on theTEAM.DET file.  There is one header 
  152. record per team.  Its      relative record address is the Team number + 1.
  153.      The ID numbers of bowlers assigned to each team are storedin the BxID$ fie
  154. lds which begin at position 55.  Bowlers can beshifted among teams by changing 
  155. these fields and the BTM$field in the BOWLERS.HDR record.  (See description for
  156.  file #2).     NOT
  157. E:  Total team pins (37-40) represents total pincount(including handicap).  If 
  158. scratch total pins is preferred, thelogic affecting this field may be found at 
  159. lines 2050-2180 in theSCORES program.
  160. .eject
  161.                     .space1
  162.                  FILE DESCRIPTIONS
  163.  
  164. File # 2 - BOWLERS.HDR   (Bowler Header File)
  165.  
  166. From To Lgth Format Name       Description                     
  167. ---- -- ---- ------ ---------  -----------                     
  168.  
  169.   1    2   2    I    BBO$       Bowler Number
  170.  3   32  30    A    BNAM$      Bowler Name
  171. 33   34   2    I    BRCNT$     Number of Detail Records on File
  172. 35   36   2    I    BGAM$      Total Games Bowled
  173. 37   40   4    S    BPINS$     Total Pins
  174. 41   42   2    I    BAVG$      Average
  175. 43   44   2    I    BHIG$      High Game (Scratch)
  176. 45   46   2    I    BHIS$      High Series (Scratch)
  177. 47   48   2    I    BHCP$      Handicap
  178. 49   50   2    I    BHIGH$     High Handicap Game
  179. 51   52   2    I    BHISH$     High Handicap Series
  180. 53   54   2    I    BTM$       Bowlers Team Number
  181. 55   56   2    I    GAM2$      Number of 200 Games
  182. 57   58   2    I    SER5$      Number of 500 Series
  183. 59   60   2    I    SER6$      Number of 600 Series
  184. 61   62   2    I    CURSER$    Current (Last) Series
  185. 63   64   2    I    AVGLSTYR$  Average Last Year
  186.  
  187.  
  188.      This file contains one record per bowler and is updated bythe SCORES progr
  189. am.  BHCP$ is initialized to 0 by CREATE andupdated with handicap only if 21 or
  190.  more games have been bowled. The current series field (CURSER$) is also used t
  191. o keep track ofcon
  192. secutive absences.
  193.      BTM$ indicates which team the bowler is assigned to.  For asubstitute, thi
  194. s field is 0.  Bowlers can easily be shifted amongteams and/or sub status by ch
  195. anging this field, as well as theBowler ID fields (pos 55-64) of the TEAMS.HDR 
  196. records.  Refer to
  197. the section on File Relationships later in this chapter foradditional informati
  198. on.
  199.      BRCNT$ is a control field and indicates the number of detailrecords on the
  200.  BOWLER.DET file..eject
  201.  .space1
  202.                  FILE DESCRIPTIONS
  203. File # 3 - TEAM.DET (Team Detail Records)
  204.  
  205. From To Lgth Format Name       Description                     
  206. ---- -- ---- ------ ---------  -----------                     
  207.  
  208.   1    2   2    I    DTM$       Team Number
  209.  3    4   2    I    TMO$       Month
  210.  5    6   2    I    TDAY$      Day
  211.  7    8   2    I    TG1$       Team Game 1 Score
  212.  9   10   2    I    TG2$       Team Game 2 Score
  213. 11   12   2    I    TG3$       Team Game 3 Score
  214. 13   14   2    I    TSER$      Team Series Score
  215. 15   16   2    I    DPTSW$     Team Points Won
  216.  
  217.  
  218.      This file stores the weekly detail records for each team. A randomizing ro
  219. utine is used to compute record addresses.  Up to50 weeks of detail records can
  220.  be stored for each team.  Game andseries scores stored in this file are handic
  221. ap scores.
  222. .eject
  223. .space1
  224.                  FILE DESCRIPTIONS
  225.  
  226. File # 4 - BOWLER.DET (Bowler Detail Records)
  227.  
  228. From To Lgth Format Name       Description                     
  229. ---- -- ---- ------ ---------  -----------                     
  230.  
  231.   1    2   2    I    DBO$       Bowler Number
  232.  3    4   2    I    BMO$       Month
  233.  5    6   2    I    BDAY$      Day
  234.  7    8   2    I    BG1$       Game 1 Score
  235.  9   10   2    I    BG2$       Game 2 Score
  236. 11   12   2    I    BG3$       Game 3 Score
  237. 13   14   2    I    BSER$      Series Score
  238. 15   16   2    I               Not Used
  239.  
  240.  
  241.      This file contain weekly bowler detail records.  Arandomizing routine is u
  242. sed to compute record address.  Up to 50weeks of scores can be stored for each 
  243. bowler.  All scoresrecorded in this file are scratch scores.
  244. .eject
  245. .space1
  246.                  FILE DESCRIPTIONS
  247.  
  248. File # 5 - HISCORES.DET (High Scores File)
  249.  
  250. From To Lgth Format Name       Description                     
  251. ---- -- ---- ------ ---------  -----------                     
  252.  
  253.   1    2   2    I    HBNO$      Bowler Number
  254.  3    4   2    I    HG1$       Game 1 Score
  255.  5    6   2    I    HG2$       Game 2 Score
  256.  7    8   2    I    HG3$       Game 3 Score
  257.  9   10   2    I    HSER$      Series Score
  258. 11   11   1    A    HFLG1$     Game 1 Flag
  259. 12   12   1    A    HFLG2$     Game 2 Flag
  260. 13   13   1    A    HFLG3$     Game 3 Flag
  261. 14   14   1    A    HFLGS$     Series Flag
  262. 15   16   2    I    HCNT$      Flag Count
  263.  
  264.  
  265.      This file is created by SCORES and processed by RECAP.  Onerecord is writt
  266. en for each bowler and contains the complete scoreand flags indicating the foll
  267. owing mentionable high scores:
  268.  
  269.           200+ game
  270.           500+ series
  271.           any game 50 pins or more above average
  272.  
  273.      The logic associated with this file is located between lines1020-1390 in t
  274. he SCORES program.  The actual determination ofwhich scores to highlight is a f
  275. unction of the RECAP program.
  276. .eject
  277. .space1
  278.                  File Descriptions
  279.  
  280. File # 6 - SCHEDULE.DET (Schedule File)
  281.  
  282. From To Lgth Format Name       Description                     
  283. ---- -- ---- ------ ---------  -----------                     
  284.  
  285.   1    1   1    A    STATUS$    Status (Reserved for future use
  286.  2    3   2    I    WEEK$      Week number
  287.  4    5   2    I    SMO$       Month
  288.  6    7   2    I    SDY$       Day
  289.  8   75  68    A    PRLINE$    Text line
  290.  
  291.  
  292.      This file is created at the begining of the season by theSCHEDULE program 
  293. and is processed weekly by RECAP.  A free formatis provided so that in addition
  294.  to team pairings, special messages can be entered.
  295.  
  296.        e.g.    DATE\ LANE  1:2    3:4    5:6    7:8
  297.                -----      -----  -----  -----  -----
  298.  
  299.                11/17       5-7    3-6    1-8    4-2
  300.                11/24      Happy Thanksgiving - No bowling
  301.                11/31       2-3    5-7    8-6    4-1
  302.                12/06      P O S I T I O N    R O U N D
  303. .eject
  304.  
  305.