home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
c
/
cbs
/
CSB
/
!CSB
next >
Wrap
Text File
|
1996-04-10
|
15KB
|
249 lines
CSB: Cricket Scorebook; a powerful cricket scoring & stats program.
Please see Readme file for license conditions.
### Introduction ############################################################
CSB is a replacement for the standard paper-and-pencil scorebook. It has
the advantage over this type of scorebook that it keeps track of both teams,
can provide instant, detailed statistics, and doesn't make mistakes when runs
and wickets start flowing fast.
I wrote CSB after scoring for a cricket team for a season and discovering
that scoring is intricate and time-consuming work. I decided to write a
program that would do all the work from a minimal human input, leaving me
more time to watch the cricket. As the program grew in complexity, I added a
statistics section and separated out the part of the program dealing with
team creation.
### Please Note #############################################################
CSB needs RISC OS 3.10 or above. To look nice, it needs 3D interface
sprites (bumper arrows that slab, round radio icons, tick-y option icons and
especially those nice 'gright', 'pgright' menu button icons). CSB will grab
memory as it requires it; running without the Laws loaded uses 208k.
### Basic Usage #############################################################
To use CSB, you will first need to create two teams using the !MakeTeam
software, discussed elsewhere. Run CSB and click on its icon to display the
setup window. Drag the team files to the icons at the top of the window. You
can enter details of umpires and so on if you wish; you can change these
later if you wish (note that you CANNOT change the 'toss won by' field).
Select the match type you require and click OK.
The 'Start innings' window will appear; this will return at (guess) the
start of each innings. You need to fill in all three fields using the menu
icons - note that you will not be able to select the team to bat if it is
obvious. When you click OK, the timers will start, so only do this as the
batsmen step onto the field (if you want to be really accurate).
The 'Ball by ball' window will appear; this is CSB's main window. The name
of the facing batsman is shown; click 'Swap' to force the batsmen to change
ends. This is a completely 'free' operation, used for example when the
batsmen cross before one of them is caught.
Below the batsman's name is the bowler of the current over; use the menu
icon under the 'Swap' button to choose this.
Below the bowler's name is a writable icon. This is where you record each
delivery using a system of ball codes; click the window's toggle size icon to
see a list. So, for a 'dot ball' (ie. nothing happens) just press return, or
click 'OK'. You will see that 'Over 1 ball 1' has become 'Over 1 ball 2'. So,
to record some runs, just type the number scored & press return (or click
'OK'). For extras, enter 'n', 'x', 'b', or 'l' as appropriate and then the
number. If you make a mistake, see 'The Editor' below.
A simple character typed on its own (eg. 'l') will be interpreted as one
extra (eg. 1 leg bye), EXCEPT FOR no-balls: 'n' means simply that, a no-ball.
'n1' is different - the striker gets credit & the batsmen swap ends. Think
about it.
To the right of the 'OK' button is a clump of three buttons. 'Draw' and
'Declaration' are pretty straight-forward, but 'Halt' is possibly worthy of
comment. A click here will change the text displayed to 'Start', and pause
the timers (batsmen minutes at crease, innings length, partnership length &
so on). This is for tea intervals, drinks breaks, nights in 2+ day matches
and so on. Click again to restart.
I haven't mentioned wickets yet; here we go. If a wicket falls or a
batsman retires, type 'w', irespective of which batter is out and of any runs
scored. The 'Batsman dismissed' window is displayed. Choose how the batsman
was out and, if necessary, /which/ batsman was out. If the batsman was run
out and runs were completed beforehand, type the number in the icon next to
the 'Run out' radio icon. If runs were completed before another type of
dismissal, see 'The Editor' below. You may enter a comment on the dismissal
if you wish; select the next batsman if there is one and click 'OK'.
If a batter retires, you need to choose the 'retired hurt' option (under
'other') and use the Editor to change his 'how out' to 'retired hurt, out'.
If you click on a code in the 'Ball codes' box, the letter will be entered
in the writable - try it and see.
### The File Submenu ########################################################
Clicking MENU on the 'Ball by ball' window opens the CSB main menu.
Opening the 'File' submenu enables you to access a standard save box, a
standard(-ish) fileinfo window and the print menu. CSB can produce two types
of printout: a match summary and an innings summary. You need to have run
!Printers to print from CSB.
### The Match Submenu #######################################################
The 'Match' submenu contains five entries (one shaded) which mimic the
buttons in the main window, and another entry below a dotted line which opens
the CSB editor - see later.
### Extra Features - Clocks & Scoreboards ###################################
Examination of the 'Scoreboards' & 'Timing' submenus will reveal four
entries, each of which opens a window. These can be toggled from the keyboard
('^' means CTRL) or using the menus. The clock and small scoreboard can be
moved around by dragging them; if you drag the timer display it will move.
The timer is included for fun - I'm not sure what you could use this for
(possibly time off field). Click the green button to start the timer (hours
and minutes - cricket's a slow game!), the red to halt it and the 'oo:oo'
button to reset.
### Extra Features - Miscellaneous ##########################################
Choosing 'Quick entry' from the main menu or pressing CTRL-Q will toggle
the 'Quick entry' window (where do I get these names from). Click a number to
enter it as a ball code. The window can be moved around by dragging the small
icon above the '1' & '2' buttons. Using this in combination with the 'Ball
codes' box can eliminate the keyboard altogether (eg. click on "z wides : xz"
and then '2' to enter the code 'x2' - two wides run).
In some (most) forms of cricket, a certain number of overs need to be
bowled in the last hour; after these expire the match ends. If a result has
not been reached, the match is drawn. To impose such an overs limit, open the
'Countdown' submenu from the main menu and type in the limit. This number
INCLUDES the current over - you can check this from the large scoreboard.
### Statistics & Comments ###################################################
Following 'Statistics' from the main or iconbar menus leads to the
Statistics submenu (duh...). Choosing one of the first three options opens a
statistics window (double duh...). From the top:
The 'Match' option reveals the 'Match Information' (eh?) window containing
match info (toss, umpires etc.), the result (if available), and a
fall-of-wicket table. Click 'Partnerships' to display a nice bar chart of
partnerships (not shaded like the BBC's one though). 'Print' prints a match
summary. Click MENU to choose the innings whose stats are being displayed.
The 'Batting' option reveals a batting summary. Click 'Print' to print the
innings, or MENU to choose the innings whose stats are being displayed. Any
'not out's are displayed in red. Click on a player's name to display a player
batting summary, both for the match & previous career.
The 'Bowling' option reveals a bowling summary. Click 'Print' to print the
innings, or MENU to choose the innings whose stats are being displayed. Click
on a player's name to display a player bowling summary, both for the match &
previous career. Note that if more than seven bowlers are used, their names
will not be displayed. This will change when I alter the window from using
loads of icons to a non-auto redrawn one.
The fourth entry on the 'Statistics' submenu leads to the 'Comments'
submenu. Click 'Display' to open the 'Comments' window. This is where CSB
wil