home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / c / cbs / CSB / Editor < prev    next >
Text File  |  1995-09-09  |  4KB  |  114 lines

  1.  
  2. Cricket.Docs.Editor / Fri 8th September 1995
  3.  
  4. WHY?
  5.  
  6.    Some things cannot be neatly expressed in a ball code. For example, a
  7. no-ball from which two leg-byes are taken before one of the batsmen is run
  8. out. 'n2' gives batsman credit instead of noballs; 'l2' is worse - bowler
  9. isn't penalised and the over will end up short, and we haven't started
  10. talking about the wicket.
  11.  
  12.    We all make mistakes. You think a leg-bye was scored, but when you look up
  13. from the screen/book, the umpire is looking at you as he crosses his arms
  14. below his waist - dead ball. Or the 'short run' signal from the square-leg
  15. umpire. Or... the list goes on.
  16.  
  17.    Say you forget to click 'Halt' at the end of a day's play?
  18.    Or get the next batsman in wrong?
  19.    Or the umpire changes his mind about a call?
  20.    Or you get to a match part-way through and want to record it all?
  21.  
  22.    All of these - and more - can be fixed using the Editor.
  23.  
  24. HOW?
  25.  
  26.    Here are some examples.
  27.  
  28.    "Edit->Area->option" means "Open the editor, select the current innings,
  29.                    select 'Area' and put the caret in 'option'."
  30.    "+= n" means "add n to the thing before the plus".
  31.    "-= n" means "take off n from the thing before the minus".
  32.    Click OK (inner) before you change area.
  33.    "OK" means "Click the outer OK button".
  34.  
  35. 1) One legbye recorded; should have been a dot-ball.
  36.  
  37.    Ball code: [already entered] l
  38.    Edit->score->legbyes -= 1
  39.    OK
  40.    Swap batsmen
  41.  
  42. 2) You click 'OK' by accident before entering the '1' ball code.
  43.  
  44.    Ball code: [already entered] ""
  45.    Edit->score->runs off the bat += 1
  46.        ->batting[current striker]->runs += 1
  47.        ->bowling[current bowler]->runs conceded += 1
  48.        ->fow[current]->partership += 1
  49.    
  50. 3) A no-ball is bowled. It goes past the 'keeper for two legbyes.
  51.  
  52.    Ball code: n2
  53.    Edit->batting[current striker]->runs -= 2
  54.        ->score->runs off bat -= 2
  55.               ->noballs += 2
  56.    OK
  57.  
  58. 4) A no-ball is bowled. It goes for two legbyes & then a runout happens.
  59.  
  60.    Ball code: w
  61.    Wicket window: run out (relevent batsman)
  62.              no runs scored.
  63.    Edit->score->noballs += 2
  64.              ->last wicket += 2
  65.        ->innings->balls this over -= 1
  66.        ->bowling[current bowler]->runs against += 2
  67.                        ->noballs bowled += 1
  68.                        ->overs bowled -= one ball (eg 4.3 => 4.2)
  69.        ->fow[the wicket that just fell]->partnership += 2
  70.    OK
  71.  
  72. 5) You get to a 1-innings match part-way through the 2nd innings - they are
  73.    42 for 3. A friendly scorer (paper & pencil) has been there all along. The
  74.    side which batted first was bowled out for 244.
  75.  
  76.    Run CSB, supply teamfiles, select the match type, choose the toss winner.
  77.    Enter the 'Start Innings' information for the first (finished) innings.
  78.  
  79.    Edit->[first innings]score->runs off the bat
  80.                     ->extras
  81.        ->innings->wickets down = 10
  82.                 ->change innings now = 1
  83.    OK
  84.  
  85.    Enter the 'Start Innings' information for the team batting second, but
  86.     enter the batsmen CURRENTLY at the crease.
  87.  
  88.    Edit->score-> extras/runs = 42
  89.        ->innings->wickets down = 3
  90.        ->batting[first man at crease]->all information, inc. BO
  91.                 [other man at crease]->all information, inc. BO
  92.    OK
  93.  
  94.    You are now in a position to score from the present position while you use
  95.    the Editor to enter the details of the first innings and those of the
  96.    first which have already transpired.
  97.  
  98. 6) You've mistakenly put Brown in as the batsman instead of White.
  99.    Brown's batting order is 5.
  100.  
  101.    Use the 'Swap' button so Brown is on strike.
  102.  
  103.    Edit->batting[Brown]->batting order = 0
  104.                   ->how out = ""
  105.        ->batting[White]->batting order = 5
  106.                       ->how out = "not out"
  107.        ->innings->facing batsman = {Click menu button to right of 'Innings
  108.                                     details'; choose "White";}
  109.    OK
  110.  
  111.    Note that this would still work if it was a few overs before you noticed
  112. 'Brown' was White; by altering the 'facing batsman' field, all details of the
  113. man in (who shouldn't be) are added to those of the new man (who should have
  114. been in all along).