def _beats(self, h, p):
        """ determine the empirically observed score of p playing opp (starting or not).
        If they never played, assume 0. """
        if (h, p) not in self.allResults:
            return 0
        else:
            hpgames, hscore = self.allResults[(h, p)][1:3]
            phgames, pscore = self.allResults[(p, h)][1:3]
            return (hscore - pscore) / float(hpgames + phgames)
dataset/ETHPy150Open pybrain/pybrain/pybrain/optimization/populationbased/coevolution/coevolution.py/Coevolution._beats/original