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 = []
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