Chadwick
Software for Baseball Game Scoring and Record-Keeping
Theodore Turocy
Copyright © 2008 Theodore Turocy
Table of Contents
1.
Introduction
1.1.
Objectives of the project
1.2.
Contacting the developers
1.3.
About this documentation
1.4.
Acknowledgements
2.
Command-line tools
2.1.
cwevent: Expanded event descriptor
2.1.1.
Result batters and pitchers (fields 10-17)
2.1.2.
Pinch-hit flag (field 31)
2.1.3.
Event type code (field 34)
2.1.4.
Sacrifice flags and eras (fields 36, 38, 39)
2.1.5.
Plays on runners (fields 58-65)
2.1.6.
Fielding errors (fields 51-57)
2.1.7.
Fielding credits (fields 88-95)
2.2.
cwgame: Game information extractor
2.2.1.
How scored (field 24)
2.2.2.
Pitches entered (field 25)
2.2.3.
Temperature (field 26)
2.2.4.
Wind direction (field 27)
2.2.5.
Wind speed (field 28)
2.2.6.
Field condition (field 29)
2.2.7.
Precipitation (field 30)
2.2.8.
Sky (field 31)
2.3.
cwsub: Player substitution descriptor
2.4.
Command-line options
3.
The Chadwick Library
3.1.
CWScorebook
-- A collection of games
3.1.1.
Creating and destroying
3.1.2.
Reading and writing
3.1.3.
Manipulating games
3.2.
file
3.3.
CWGame
-- Play-by-play for a game
3.3.1.
Creating and destroying
3.3.2.
Reading and writing
3.3.3.
General game information
3.3.4.
The starting lineup
3.3.5.
Play-by-play events
3.3.6.
Substitutions
3.3.7.
Data lines
3.3.8.
Comment lines
3.4.
CWGameIterator
-- Keeping track of the state of a game
3.5.
CWLeague
-- League definition file
3.5.1.
Creating and destroying
3.5.2.
Reading and writing
3.5.3.
Roster manipulation
3.6.
parse
3.7.
CWRoster
-- Team rosters
List of Tables
2-1.
Field numbers for
cwevent
2-2.
Extended field numbers for
cwevent
2-3.
Primary event type codes
2-4.
Field numbers for
cwgame
2-5.
Numeric codes for how scored field.
2-6.
Numeric codes for pitches entered field.
2-7.
Numeric codes for wind direction field.
2-8.
Numeric codes for field condition field.
2-9.
Numeric codes for precipitation field.
2-10.
Numeric codes for sky field.
2-11.
Field numbers for
cwsub
2-12.
Common command-line options and their effects
Next
Introduction