Beispiel #1
0
    def __init__(self, nplayers, num):
        ParentTally.__init__(self, nplayers)
        self._nplayers = nplayers
        self._num = num

        self.mwins = [0] * nplayers
        self.sscore = [0] * (2 * (nplayers - 1) * num + 1)
        self.swins = [0] * ((nplayers - 1) * num + 1)
Beispiel #2
0
    def __init__(self, nplayers, num):
        ParentTally.__init__(self, nplayers)
        self._nplayers = nplayers
        self._num = num

        self.mwins = [0] * nplayers
        self.sscore = [0] * (2*(nplayers-1)*num + 1)
        self.swins = [0] * ((nplayers-1) * num + 1)
Beispiel #3
0
 def __init__(self, rounds, players):
     ParentTally.__init__(self, rounds)
     self.pairs = dict()
     for p in players:
         self.pairs[p] = 0
Beispiel #4
0
 def __init__(self, rounds, players):
     ParentTally.__init__(self, rounds)
     self.pairs = dict()
     for p in players:
         self.pairs[p] = 0