@staticmethod
    def score_history(my_history, opponent_history, score_map):
        a = 0
        for i, weight in [(-1, 16), (-2, 4), (-3, 1)]:
            plays = (my_history[i], opponent_history[i])
            a += weight * score_map[plays]
        return a
Implements the Nydegger formula A = 16 a_1 + 4 a_2 + a_3
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/strategies/axelrod_first.py/Nydegger.score_history