stats
Manage game statistics
Currently tracks:
- Possession
- Number of goals scored
- Pass accuracy
- Shot accuracy
Stats Objects
class Stats(object)
Keep track of game statistics
__init__
| __init__()
Initializes the possession, pass accuracy and shot accuracy
get_possession
| get_possession()
Return a tuple containing the current possesion (between 0 and 1) for each team
It is rounded to 2 decimal places and their sum is guaranteed to be 1
get_pass_acc
| get_pass_acc()
Return a tuple containing the current pass accuracy (between 0 and 1) for each team
It is rounded to 2 decimal places
get_shot_acc
| get_shot_acc()
Return a tuple containing the current shot accuracy (between 0 and 1) for each team
It is rounded to 2 decimal places