Main > Programming > Libraries >

Games::Baseball::Scorecard 0.03

Games::Baseball::Scorecard 0.03

Sponsored Links

Games::Baseball::Scorecard 0.03 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.34 MB
Platform: Any Platform
License: GPL (GNU General Public License)
Price:
Downloads: 732
Date added: 2006-07-31
Publisher: Chris Nandor

Games::Baseball::Scorecard 0.03 description

Games::Baseball::Scorecard is a Perl module.

SYNOPSIS

my $score = Games::Baseball::Scorecard->new($dir, $name, {
color => [ .4, .4, .4 ], # grey
fonts => [ # Myriad Condensed regular/bold
[ myriadrcrrl => 9 ],
[ myriadrcbrl => 14 ],
[ myriadrcrrl => 14 ],
[ myriadrcbrl => 22 ],
],
});

# fill initial scorecard out
$s->init({
scorer => Pudge,
date => 2004-10-24, 20:05-23:25,
at => Fenway Park, Boston,
temp => 48 clear,
wind => 7 to RF,
att => 35,001,
home => {
team => Boston Red Sox,
starter => 38, # jersey number
lineup => [
# [ num, position ],
[ 18, 8 ], # Damon, starting at CF
# ...
],
roster => {
# num => name
18 => Damon, Johnny,
38 => Schilling, Curt,
# ...
},
},
away => {
team => St. Louis Cardinals,
# ...
}
});

# draw the game
$s->inn; # new inning / end of last inning

$s->ab; # new at-bat
# works to full count
$s->pitches(qw(s b s b b f));
# struck out looking
$s->out(!K);

$s->ab;
# home run to left-center
$s->hit(4, lc);

# calculate/draw stats
$self->totals;

# finish the job
$s->generate;

# open final PDF
$s->pdfopen;

Games::Baseball::Scorecard is a frontend to a PDF scorecard written in Metapost by Christopher Swingley (http://www.frontier.iarc.uaf.edu/~cswingle/baseball/scorecards.php). That scorecard is drawn out, and has a nice API for actually drawing out the elements of the game: all the ball, strikes, outs, etc.

Being Metapost, it is laborious to do all this. So this module provides a nice frontend, that also keeps track of balls and strikes and hits and runs and outs and more, making input of the game quite simple and efficient.

This module does not include the entire API, but most of it. Patches and ideas welcome. Feel free to call output directly if you want to generate Metapost on your own, or to modify the $SCORECARD variable (which contains the base Metapost code), or the $TEX (single page) and $TEXD (duplex) TeX files.

I wont give a tutorial on scoring baseball games, or on Metapost, below. Seek other resources (Swingleys URL above has a nice tutorial on scoring baseball games, using the scorecard he designed, which is what were using here).

Games::Baseball::Scorecard 0.03 Screenshot

Advertisements

Games::Baseball::Scorecard 0.03 Keywords

Bookmark Games::Baseball::Scorecard 0.03

Hyperlink code:
Link for forum:

Games::Baseball::Scorecard 0.03 Copyright

WareSeeker periodically updates pricing and software information of Games::Baseball::Scorecard 0.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Games::Baseball::Scorecard 0.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
NetStats Baseball project consists of a simulation of major league baseball. Free Download
WWW::Baseball::NPB is a Perl module that fetches Japanese baseball games information. Free Download
Samba::LDAP is a Perl module to manage a Samba PDC with an LDAP Backend. Free Download
App::Manager is a Perl module for installing, managing and uninstalling software packages. Free Download
CVS Perl library is a Perl module which is is a wrapper around the CVS command with an object-oriented interface. Free Download
Games::Chess::Coverage::GD::Move is a Perl module to visualize movement. Free Download
Parallel::Workers::Shared is a simple Perl module. Free Download
Math::Logic::Predicate is a Perl module to manage and query a predicate assertion database. Free Download