Code Monkey home page Code Monkey logo

strat-o-rama's Introduction

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.

strat-o-rama's People

Contributors

mbutler avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.