Exemple #1
0
    def get_injuries(cls, file):
        positions = ["QB1", "QB2", "RB1", "RB2", "RB3", "RB4", "WR1", "WR2", "WR3", "WR4", "TE1", "TE2"]
        list_of_statuses = []
        for x in range(6031, 6034):
            list_of_statuses.append(bin(ord(file[x]))[2:])
        for x in range(6292, 6295):
            list_of_statuses.append(bin(ord(file[x]))[2:])

        cls.injuries = status_parser(list_of_statuses, positions, cls.team_list)
Exemple #2
0
    def get_conditions(cls, file):
        positions = [
            "QB1",
            "QB2",
            "RB1",
            "RB2",
            "RB3",
            "RB4",
            "WR1",
            "WR2",
            "WR3",
            "WR4",
            "TE1",
            "TE2",
            "C",
            "LG",
            "RG",
            "LT",
            "RT",
            "RE",
            "NT",
            "LE",
            "ROLB",
            "RILB",
            "LILB",
            "LOLB",
            "RCB",
            "LCB",
            "FS",
            "SS",
        ]
        list_of_statuses = []
        for x in range(6034, 6042):
            list_of_statuses.append(bin(ord(file[x]))[2:])
        for x in range(6295, 6303):
            list_of_statuses.append(bin(ord(file[x]))[2:])

        cls.conditions = status_parser(list_of_statuses, positions, cls.team_list)