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

PBP Code Book #28

Open
gabed99 opened this issue Jun 10, 2024 · 0 comments
Open

PBP Code Book #28

gabed99 opened this issue Jun 10, 2024 · 0 comments

Comments

@gabed99
Copy link

gabed99 commented Jun 10, 2024

I couldn't find a way to upload this. If there's a better way to post it, let me know.

'eventId'

'periodDescriptor'
'maxRegulationPeriods' -> always 3
'number' = [1:5]
'periodType' = ['REG','OT','SO']

'timeInPeriod' = in clock format [20:00]
'timeRemaining' = in clock format [20:00]
'situationCode' = [Home Goalie count][Home Player count][Away Player count][Away Goalie count] e.g. 1551 to start the game (I didn't yet verify if home is first)
'homeTeamDefendingSide' = [left, right] -> is the home team's goal (-89,0) = left or (89,0) = right?
'typeCode'/'typeDescKey' = event info
502 = 'faceoff', 503 = 'hit', 504 = 'giveaway', 505 = 'goal', 506 = 'shot-on-goal', 507 = 'missed-shot', 508 = 'blocked-shot', 509 = 'penalty', 516 = 'stoppage', 520 = 'period-start', 521 = 'period-end', 523 = 'shootout-complete', 524 = 'game-end', 525 = 'takeaway', 535 = 'delayed-penalty', 537 = 'failed-shot-attempt'
'sortOrder' = order of events (?)

'details'
'xCoord', 'yCoord' = [-100:100][-43:43] event coordinates
'zoneCode' = [O, N, D]
'typeCode' = [MIN, PS, BEN, MAT, MAJ, MIS, GAM] - penalty type
'awayScore', 'homeScore' = current score
'awaySOG', 'homeSOG' = current shots on goal

     'shotType' = wrist, tip-in, snap, slap, poke, backhand, bat, deflected, wrap-around, between-legs, cradle
     'playerId', 'shootingPlayerId', 'blockingPlayerId', 'goalieInNetId', 'winningPlayerId', 'losingPlayerId', 'committedByPlayerId', 'drawnByPlayerId', 'servedByPlayerId', 'hittingPlayerId', 'hitteePlayerId', 'scoringPlayerId', 'assist1PlayerId', 'assist2PlayerId' = players involved in event (obviously not always present)
      'scoringPlayerTotal', 'assist1PlayerTotal', 'assist2PlayerTotal' = how many G and A each player has

     'eventOwnerTeamId' = team owning event [1:30, 52:55] 

NJD,1
NYI,2
NYR,3
PHI,4
PIT,5
BOS,6
BUF,7
MTL,8
OTT,9
TOR,10
ATL, 11
CAR,12
FLA,13
TBL,14
WSH,15
CHI,16
DET, 17
NSH,18
STL,19
CGY,20
COL,21
EDM,22
VAN,23
ANA,24
DAL,25
LAK,26
PHX, 27
SJS,28
CBJ,29
MIN,30
WPG,52
ARI,53
VGK,54
SEA,55

'reason', 'secondaryReason' = details about event:

above-crossbar
blocked
chlg-hm-goal-interference
chlg-hm-missed-stoppage
chlg-hm-off-side
chlg-league-goal-interference
chlg-league-missed-stoppage
chlg-league-off-side
chlg-vis-goal-interference
chlg-vis-missed-stoppage
chlg-vis-off-side
clock-problem
goalie-puck-frozen-played-from-beyond-center
goalie-stopped-after-sog
goalpost
hand-pass
high-and-wide-left
high-and-wide-right
high-stick
hit-crossbar
hit-left-post
hit-right-post
home-timeout
ice-problem
icing
net-dislodged-by-goaltender
net-dislodged-defensive-skater
net-dislodged-offensive-skater
objects-on-ice
official-injury
offside
other-block
over-net
player-equipment
player-injury
premature-substitution
puck-frozen
puck-in-benches
puck-in-crowd
puck-in-netting
puck-in-penalty-benches
referee-or-linesman
rink-repair
short
skater-puck-frozen
switch-sides
teammate-blocked
tv-timeout
video-review
visitor-timeout
wide-left
wide-of-net
wide-right

'descKey', 'duration' = penalty info:

game-misconduct-head-coach 0
ps-covering-puck-in-crease 0
ps-goalkeeper-displaced-net 0
ps-holding-on-breakaway 0
ps-hooking-on-breakaway 0
ps-net-displaced 0
ps-slash-on-breakaway 0
ps-throwing-object-at-puck 0
ps-tripping-on-breakaway 0
abuse-of-officials 2
bench 2
boarding 2
broken-stick 2
charging 2
clipping 2
closing-hand-on-puck 2
cross-checking 2
delaying-game 2
delaying-game-bench 2
delaying-game-bench-face-off-violation 2
delaying-game-equipment 2
delaying-game-face-off-violation 2
delaying-game-puck-over-glass 2
delaying-game-smothering-puck 2
delaying-game-unsuccessful-challenge 2
elbowing 2
embellishment 2
goalie-leave-crease 2
goalie-participation-beyond-center 2
high-sticking 2
holding 2
holding-the-stick 2
hooking 2
illegal-check-to-head 2
illegal-stick 2
instigator 2
interference 2
interference-bench 2
interference-goalkeeper 2
kneeing 2
playing-without-a-helmet 2
puck-thrown-forward-goalkeeper 2
roughing 2
roughing-removing-opponents-helmet 2
slashing 2
throwing-equipment 2
too-many-men-on-the-ice 2
tripping 2
unsportsmanlike-conduct 2
unsportsmanlike-conduct-bench 2
high-sticking-double-minor 4
spearing-double-minor 4
boarding 5
charging 5
checking-from-behind 5
cross-checking 5
elbowing 5
fighting 5
interference 5
kneeing 5
slashing 5
spearing 5
abuse-of-officials 10
abusive-language 10
aggressor 10
game-misconduct 10
instigator-misconduct 10
misconduct 10
match-penalty 15

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