Skip to content

Generating plausible Strat-O-Matic cards from MLB data

License

Notifications You must be signed in to change notification settings

mbutler/strat-o-rama

Repository files navigation

strat-o-rama

DISCLAIMER: I am not affiliated with Strat-O-Matic Media, LLC. The cards and statistics generated by this application are not compatible with the official Strat-O-Matic game and are for academic purposes only.

PROPOSITION: Using the formulas found on Bruce Bundy's site, and data from Baseball Reference, try to create plausible SOM cards.

INSTRUCTIONS: Download or clone this repository. Navigate to the directory and run

npm install

If there are no errors, run the app file, passing in a player's name as an argument. Note: The name must be spelled and capitalized exactly as it is in the json files or on Baseball Reference. E.g.:

node app "Kris Bryant"

A pdf will be generated with that player's stats interpreted into plausible results. The card will not be the same as the official card, but should have a relatively accurate distribution of at-bat outcomes.

If a pitcher's name is supplied, a pitcher's card will be generated. If you'd prefer to output the pitcher's batting card instead, just pass in the optional -b flag. E.g.:

node app "Jake Arrieta" -b

You can also generate an entire team at once. Pass in the team's capitalized three-letter abbreviation as found on Baseball Reference and it will create a directory with each player in it. E.g.:

node app "CHC"

If you'd like to generate cards for a different year, modify the CSV names in the config.js file. You'll need to download four CSV files from Baseball Reference. Standard pitching, standard batting, standard fielding, and batting pitching. Place these CSV files in the same directory as the app.

No Warranty

"As-Is". The Software is provided "as is," with all faults, defects and errors, and without warranty of any kind.

No Liability. Licensor does not warrant that the Software will be free of bugs, errors, viruses or other defects, and Licensor shall have no liability of any kind for the use of or inability to use the software, the software content or any associated service.

About

Generating plausible Strat-O-Matic cards from MLB data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published