Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logs to contain total points for players WIP #483

Closed
wants to merge 2 commits into from

Conversation

jdabapo
Copy link
Contributor

@jdabapo jdabapo commented Mar 25, 2025

Add a proof of concept for total points for a player after making a shot, Could be expanded to fouls, asts, rbs, and other countable stats. This is somewhat linked to PR #482, because there would be a decent amount of copy and paste needed for this to happen in the PlayByPlayLogger.ts in terms of changing types

image
updated
image

@jdabapo jdabapo changed the title init commit: add proof of concept for logs with "It's good!" add proof of concept for logs with "It's good!" Mar 25, 2025
@jdabapo jdabapo changed the title add proof of concept for logs with "It's good!" Update logs to contain total points for players WIP Mar 25, 2025
Comment on lines +20 to +21
pidTotalPts: number;
pidAstTotalAst: number | undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory we don't need to pass the values here because stats are already being sent to the box score UI, so the UI already has all the stats for all players. Not sure how easy it is to access, but that would probably be cleaner than manually passing them in everywhere. lmk if you need help figuring that out.

And related to what I said in the other PR about game sim stuff not being well abstracted... this would be a great feature in the other sports too, but sadly will require some special work for each sport.

@jdabapo
Copy link
Contributor Author

jdabapo commented Mar 29, 2025

edit: moved comment to PR #484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants