Exemplo n.º 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 = []
Exemplo n.º 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 = []
Exemplo n.º 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
Exemplo n.º 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