Computers: September 2005 Archives
Games::Baseball::Scorecard produces PDF scorecards (based on the work by Christopher Swingley) for baseball games, and can fill them out.
See the example scorecard I generated for tonight's A's/Sox game, which as you can see, was won when Manny was hit by a pitch in the bottom of the 10th. And here's the input script.
I wanted to just have it fill out lineups etc. for me, so I could score by hand, but I figured I might as well flush out the rest of the API. As much as possible, the stats etc. are figured out for you, so you only have to do the minimal necessary to score a game.
See the example scorecard I generated for tonight's A's/Sox game, which as you can see, was won when Manny was hit by a pitch in the bottom of the 10th. And here's the input script.
I wanted to just have it fill out lineups etc. for me, so I could score by hand, but I figured I might as well flush out the rest of the API. As much as possible, the stats etc. are figured out for you, so you only have to do the minimal necessary to score a game.
Games::Baseball::Scorecard produces PDF scorecards (based on the work by Christopher Swingley) for baseball games, and can fill them out.
See the example scorecard I generated for tonight's A's/Sox game, which as you can see, was won when Manny was hit by a pitch in the bottom of the 10th. And here's the input script.
I wanted to just have it fill out lineups etc. for me, so I could score by hand, but I figured I might as well flush out the rest of the API. As much as possible, the stats etc. are figured out for you, so you only have to do the minimal necessary to score a game.
See the example scorecard I generated for tonight's A's/Sox game, which as you can see, was won when Manny was hit by a pitch in the bottom of the 10th. And here's the input script.
I wanted to just have it fill out lineups etc. for me, so I could score by hand, but I figured I might as well flush out the rest of the API. As much as possible, the stats etc. are figured out for you, so you only have to do the minimal necessary to score a game.
Games-Baseball-Scorecard-0.02 has been released. Download it from the CPAN or SF.net.
(Note: it may take time for the release to propagate to the various download mirrors.)
Changes:
(Note: it may take time for the release to propagate to the various download mirrors.)
Changes:
0.02 Fri Sep 16 23:47:38 2005Posted using release by brian d foy.
- run actual test
- clean up internal path handling
- add home_away() method for switching which is active team
- adds 'lefties' key for init() method, an array of which pitchers
are lefites
- add Wind game info
- switch order of K and BB in stats to be more consistent with
box scores I am comparing against
- handle more than three batters for each position, up to six extra
total
- fix small bug in pitches()
- add LABEL argument to hit()
- small layout fixes
- add play_ball() method, a way of keeping score entirely in
text, insetad of calling methods directly (see example2.plx)
Regarding the previous journal entry, and the "if I get a 480p game (for PS2), I'll make sure to calibrate it, later," I got one, and I did fix it. Settings were same as for DVD 480p/full screen. I should probably calibrate for normal screen while I am at it.
So I am watching one of the best tennis matches I've seen in a long time on the USA network on DirecTV. Agassi vs. Blake. Blake wins first two sets 6-3. Agassi wins next two, 6-3. Tied 4-4 in the fifth.
Then they decide to stop showing it on USA and switch to CBS. Except it is not on CBS, "Rock Star" is. (Incidentally, some chick was getting booted off the show, and she and these other dudes and chicks -- bandmates? -- were totally crying, which is about as un-rock as it gets.)
And the worst part of it is that USA went away to show LAW AND ORDER SVU RERUNS. Freaking *RERUNS*.
What probably happened is that on the east coast they decided to switch to CBS, but on the west coast they didn't, and I get a local (west coast) CBS feed, and the national (default: east coast) USA feed.
But so do millions of other DirecTV viewers.
Amateruish idiots.
Then they decide to stop showing it on USA and switch to CBS. Except it is not on CBS, "Rock Star" is. (Incidentally, some chick was getting booted off the show, and she and these other dudes and chicks -- bandmates? -- were totally crying, which is about as un-rock as it gets.)
And the worst part of it is that USA went away to show LAW AND ORDER SVU RERUNS. Freaking *RERUNS*.
What probably happened is that on the east coast they decided to switch to CBS, but on the west coast they didn't, and I get a local (west coast) CBS feed, and the national (default: east coast) USA feed.
But so do millions of other DirecTV viewers.
Amateruish idiots.
I've added some new use Perl; editors. They are jesse, Robrt, brian_d_foy, rjbs, davorg, and 2shortplanks. We basically doubled the number of editors. Thanks very much to everyone who volunteered, and also to the already existing editors, especially our regularly posting editors ziggy, rafael, and KM.
During discussion about inadequate enforcement of infractions in professional sports, it was noted that in the NBA, they call everything (well, except for travelling), but the fouls are still committed. Obviously, this is because the penalty for the foul is insufficiently high to encourage the participants to NOT foul.
So my idea: get rid of all free throws. A shooting foul becomes a scoring foul. You foul me on a two-point shot? I get two points. On a three? I get three.
Take away the very point of the foul, and they won't foul anymore. This won't disrupt the game like ejections or timed suspensions (like hockey) would do; they would merely remove the reason for fouling.
A friend noted he likes that the ability to shoot from the line is part of the game, and offered one point, plus the shots. I counter: the points, plus one shot.
Also, when a team gets over the foul limit, you could give automatic one point + one shot, or two points. Or two points and one shot. Any of those is fine with me.
If they did this, I maybe could watch basketball again.
So my idea: get rid of all free throws. A shooting foul becomes a scoring foul. You foul me on a two-point shot? I get two points. On a three? I get three.
Take away the very point of the foul, and they won't foul anymore. This won't disrupt the game like ejections or timed suspensions (like hockey) would do; they would merely remove the reason for fouling.
A friend noted he likes that the ability to shoot from the line is part of the game, and offered one point, plus the shots. I counter: the points, plus one shot.
Also, when a team gets over the foul limit, you could give automatic one point + one shot, or two points. Or two points and one shot. Any of those is fine with me.
If they did this, I maybe could watch basketball again.
People who bitch all the time about things they really don't comprehend at all get boring after awhile.