Skip to content

Box Score Class Basketball

Christian Wendt edited this page Nov 2, 2022 · 2 revisions

Documentation of all variables for Box Score Class

Holds information for a weeks box score.
Also see Box Player Class!

H2H Points BoxScore Variables

winner: string # HOME or AWAY
home_team: Team
home_score: int
home_projected: int # if it is not the current week this will be -1
away_team: Team
away_score: int
away_projected: int # if it is not the current week this will be -1
home_lineup: List[BoxPlayer]
away_lineup: List[BoxPlayer]

H2H Category BoxScore Variables

winner: string # HOME or AWAY
home_team: Team
home_wins: int
home_ties: int
home_losses: int
home_stats: dict # example {'PTS': {'value': 88.0, 'result': 'LOSS'}, 'BLK': {'value': 1.0, 'result': 'TIE'} }
away_team: Team
away_wins: int
away_ties: int
away_losses: int
away_stats: int # example {'AST': {'value': 14.0, 'result': 'LOSS'}, 'FG%': {'value': 0.50793651, 'result': 'WIN'}}
home_lineup: List[BoxPlayer]
away_lineup: List[BoxPlayer]