示例#1
0
 def setUp(self):
     """All methods beginning with substring 'test' will be executed.
     """
     self.klass = dice.D20
     self.d = dice.D20()
示例#2
0
 def __init__(self, num):
     for _ in range(num):
         self.append(dice.D20())
示例#3
0
 def run(self, iteration_num):
     hand_list = []
     for _ in range(iteration_num):
         hand_list.append(dice.D20())
     return hand_list
示例#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
示例#5
0
 def crawl(cls, iteration_num):
     hand_list = []
     for _ in range(iteration_num):
         hand_list.append(dice.D20())
     return hand_list