This script will take a JSON file of player data - scraped from Basketball Reference using simplescraper.io and evaluate it against a list of teams containing 10 drafted players each.
Only the top three Front Court (SG or PG) and the top two Back Court (PF, SF or C) are included in your team score
There's also a side pot for each teams Sixth Man which has it's own leaderboard at the bottom
Scores are calculated using the following multipliers
Stat | Multiplier |
---|---|
Points | 1 |
Rebounds | 1.5 |
Assists | 1.5 |
Steals | 2 |
Blocks | 2 |
Turnovers | -2 |
Use yarn install
to install all dependencies, yarn stats
to get a fresh copy of the data from stats.nba.com and yarn start
to run the calculation and generate index.html