4 ms·
I love plaintextsports for baseball already. Baseball is a game that serializes to text very well (and radio) vs other sports. Bringing it to the terminal is
by naet 1y ago
I love plaintextsports for baseball already. Baseball is a game that serializes to text very well (and radio) vs other sports. Bringing it to the terminal is cool too.
- nonethewiser 1y agoYeah Im just now realizing how the baseball scoring conventions are basically a DSL for a baseball game. There is a standardized way for expressing what happens in a game. I wonder if this has been leveraged in any interesting programs. here is an example inning: K | 6-3 | BB | 2B (RBI, R1-H) | F8
- 72736379 1y agoThere's a standardized way to express what is happening in the game too- you'll often hear on the radio and television broadcasts the play that just happened using numbered positions on the field. 1 is pitcher, 2 is catcher, 3 is first baseman, 4 is second, 5 is third, 6 is shortstop, etc. so you'll hear something like "6-4-3 double play" which means the ball was fielded by the shortstop (6), thrown to the second baseman (4) for the first out, then to the first baseman (3) for the second one. Makes it easy to visualize the game if listening on the radio.
- hoistbypetard 1y agoWhen I coach my youth teams, I always list their positions by number. I derive some minor benefit from doing that, but I'm also hoping that by having them learn the position numbers, it will make it easier for them to enjoy audio broadcasts of baseball games. There's a special kind of fun in listening to those.
- nonethewiser 1y agoI think we are saying the same thing. This is the same as scoring the game they are just saying it out loud. Maybe my example didnt pick the most illustrative details.
- aidenn0 1y agoHow do you differentiate a swinging strike-out from a looking strike-out when you can't turn the K upside down?
- royskee 1y agoUnicode FTW: "𝼃"
- dmoy 1y agoBy upside down you mean backwards, yea? So... ꓘ
- aidenn0 1y agoYes it's a 180 degree rotation.
- brewdad 1y agoI suppose you could do K(S) or K(L) pretty easily and without any specially coded characters. Or Unicode as another poster suggested.
- HansardExpert 1y agoAs non-MLB watcher, I have only a passing knowledge of the game why does it matter if the strike-out is swinging or not? To use a Cricket analogy you don't differentiate if or what the stroke was at the time they were LBW, stumped, bowled caught out.
- Jeremy1026 1y agoIt doesn't really matter. But it's a datapoint that, say a batter has a lot of strike outs looking, they may have a poor sense of the strike zone. Or if a batter has a high swinging strike out rate then it says that their pitches are deceptive and have a lot of movement.
- aidenn0 1y agoIt doesn't matter any more or less than if an out was a line-out, fly out, or ground-ball thrown to first.
- cwyers 1y agoRetrosheet is a project which reconstructs historical baseball games from old newspaper accounts, scorescards purchased at estate sales, and other means. They actually have an ASCII scorecard format: https://www.retrosheet.org/eventfile.htm https://www.retrosheet.org/eventfile.htm Originally to parse these out people used MS-DOS utilities written by the guy who made the Diamond Mind Baseball game. There's a more modern set of utilities called Chadwick now so you don't have to use DOS.