Пример #1
0
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
Пример #2
0
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
Пример #3
0
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples
Пример #4
0
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples