def _globalScore(self, p):
        """ The average score over all evaluations for a player. """
        if p not in self.allOpponents:
            return 0.
        scoresum, played = 0., 0
        for opp in self.allOpponents[p]:
            scoresum += self.allResults[(p, opp)][2]
            played += self.allResults[(p, opp)][1]
            scoresum -= self.allResults[(opp, p)][2]
            played += self.allResults[(opp, p)][1]
        # slightly bias the global score in favor of players with more games (just for tie-breaking)
        played += 0.01
        return played / scoresum
dataset/ETHPy150Open pybrain/pybrain/pybrain/optimization/populationbased/coevolution/coevolution.py/Coevolution._globalScore/swapped operands of `/`