예제 #1
0
 def __init__(self, num):
     self._num = num
     
     schema_in = [1] * 2**len(num)
     schema_out = []
     r = len(num) - 1
     while r >= 0:
         schema_out.append(2**r)
         r -= 1
     schema_out.append(1)
     Composite.__init__(self, schema_in, schema_out)
예제 #2
0
    def __init__(self, num):
        self._num = num

        schema_in = [1] * 2**len(num)
        schema_out = []
        r = len(num) - 1
        while r >= 0:
            schema_out.append(2**r)
            r -= 1
        schema_out.append(1)
        Composite.__init__(self, schema_in, schema_out)
예제 #3
0
    def __init__(self, nplayers, num, tie, threshold=1, subgroups=None):
        self._num = num
        self._tie = tie
        self._threshold = threshold

        schema_in = [nplayers]
        schema_out = [1] * nplayers
        Composite.__init__(self, schema_in, schema_out)

        if subgroups != None:
            self._original = False
            self._subgroups = subgroups
        else:
            self._original = True
            self._subgroups = dict()
예제 #4
0
파일: rrgroup.py 프로젝트: Arzar/aligulac
    def __init__(self, nplayers, num, tie, threshold=1, subgroups=None):
        self._num = num
        self._tie = tie
        self._threshold = threshold

        schema_in = [nplayers]
        schema_out = [1] * nplayers
        Composite.__init__(self, schema_in, schema_out)

        if subgroups != None:
            self._original = False
            self._subgroups = subgroups
        else:
            self._original = True
            self._subgroups = dict()
예제 #5
0
파일: mslgroup.py 프로젝트: Arzar/aligulac
 def __init__(self, num):
     self._num = num
     Composite.__init__(self, [1]*4, [1]*4)
예제 #6
0
 def __init__(self, schema_in, schema_out):
     Composite.__init__(self, schema_in, schema_out)
예제 #7
0
 def __init__(self, num):
     self._num = num
     Composite.__init__(self, [1] * 4, [1] * 4)
예제 #8
0
파일: team.py 프로젝트: Arzar/aligulac
 def __init__(self, schema_in, schema_out):
     Composite.__init__(self, schema_in, schema_out)