Exemplo n.º 1
0
 def setUp(self):
     """All methods beginning with substring 'test' will be executed.
     """
     self.klass = dice.D20
     self.d = dice.D20()
Exemplo n.º 2
0
 def __init__(self, num):
     for _ in range(num):
         self.append(dice.D20())
Exemplo n.º 3
0
 def run(self, iteration_num):
     hand_list = []
     for _ in range(iteration_num):
         hand_list.append(dice.D20())
     return hand_list
Exemplo n.º 4
0
 def roll(cls, iteration_num):
     hand_list = []
     for _ in range(iteration_num):
         hand_list.append(dice.D20())
     return cls(hand_list) # point of this is to plug in
Exemplo n.º 5
0
 def crawl(cls, iteration_num):
     hand_list = []
     for _ in range(iteration_num):
         hand_list.append(dice.D20())
     return hand_list