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

Starting GameDay display #4

Merged
merged 13 commits into from
May 12, 2021
Merged

Starting GameDay display #4

merged 13 commits into from
May 12, 2021

Conversation

andschneider
Copy link
Collaborator

Created a heat map display for the current batter. It doesn't correctly size itself based on the terminal, see issue #3,

Also did a refactor on how the layouts/TUI rendering code is structured. Should be easier to add components going forward now.

Trying to figure out a nice way to handle API errors. I would to split them into request errors and parsing errors
Super nested data to get out, but it seems to be working...
Created a struct and cleaned up the parsing. Broke out the rendering into its own file. Will be rolling out this pattern as I go.
and fixed a clippy warning
Displays the pitcher name, batter name, and balls, strikes, and outs.

Need to add:
- base runners
- current inning
- pitch result (ball, strike, foul, hit, ect)
@andschneider andschneider merged commit 5ac610a into main May 12, 2021
@andschneider andschneider deleted the heatmap branch May 12, 2021 05:00
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.

1 participant