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

Add support for parsing replays under the com tag #1

Open
rippinrobr opened this issue Feb 10, 2019 · 0 comments
Open

Add support for parsing replays under the com tag #1

rippinrobr opened this issue Feb 10, 2019 · 0 comments

Comments

@rippinrobr
Copy link
Owner

Here's what a replay line looks like followed by a description of what each field represents

com,"replay,inning,Batter ID,Batter Team ID,Umpire ID,Ballpark ID,Reason,Reversed,Initiator,Team,Type 
Code"

   Inning: inning in which the replay occurred
   Batter ID: batter for the replay instance (not necessarily the player involved in the replay)
   Batter Team ID: the team at bat for the replay
   Umpire ID: crew chief�s ID
   Ballpark ID: the ballpark in which the game was played
   Reason (home run replay only):
      O - Over the fence
      F - Fair/foul
      I - Fan interference
   Reversed: Y or N
   Initiator: I (home run instant replay, 2008-13), U (umpire, 2014-present), M (manager, 2014-present)
   Team: team which challenged (only for M initiator)
   Type code:
     Code,Desc
     H,Home run
     G,Grounds rule
     N,Fan interference
     S,Boundary call
     C,Force play
     A,Tag play
     O,Fair/foul (outfield)
     T,Trap play (outfield)
     I,Hit by pitch
     M,Timing play
     B,Touching a base
     R,Passing runners
     K,Record keeping
     L,Multiple issues
     P,Home plate collision
     X,Other

I need to parse this data out into it's own struct and table, treat it as if it was the equivalent of a sub or com record. It is represented as a com in the input file as of now.

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

No branches or pull requests

1 participant