def Estimate(self, target): rand_x = random.randrange(10) rand_y = random.randrange(5) if (rand_x < rand_y): rand = random.randint(1, 3) if (rand > 1): return ttf.estimate(target, 'WEREWOLF') else: target = self.myData.getMaxLikelyVillAll() if (target != None): return ttf.estimate(target, 'VILLAGER') return None
def Estimate(self, target): rand_x = random.randrange(10) rand_y = random.randrange(5) if (rand_x < rand_y): rand = random.randint(1, 10) if (rand > 7): return ttf.estimate(target, 'WEREWOLF') elif (rand == 8 and self.realSeer != None): return ttf.estimate(self.realSeer, 'SEER') else: t = self.myData.getMaxLikelyVillAll() if (t != None): return ttf.estimate(t, 'VILLAGER') return None
def Estimate(self,target): rand_x = random.randrange(10) rand_y = random.randrange(5) if(rand_x < rand_y): rand = random.randint(1,10) if(rand > 7): if(self.werewolf != None): t = self.werewolf else: t = target return ttf.estimate(t,'WEREWOLF') elif(rand == 8 and self.possessed != None): return ttf.estimate(self.possessed,'POSSESSED') else: t = self.myData.getMaxLikelyVillAll() if(t != None): return ttf.estimate(t,'VILLAGER') return None
def Estimate(self,target): rand_x = random.randrange(10) rand_y = random.randrange(5) if(rand_x < rand_y): rand = random.randint(1,10) #潜伏時 if(self.isStopCO): if(rand > 7): return ttf.estimate(target,'WEREWOLF') elif(rand == 8 and self.werewolf != None): if(self.werewolf in self.seerList): return ttf.estimate(self.werewolf,'SEER') else: t = self.myData.getMaxLikelyWolfAll() if(t != None): return ttf.estimate(t,'VILLAGER') #占いCO時 else: if(rand > 7): if(self.myBlack != None): t = self.myBlack else: t = target return ttf.estimate(t,'WEREWOLF') elif(rand == 8 and self.realSeer != None): return ttf.estimate(self.realSeer,'POSSESSED') else: t = self.myData.getMaxLikelyWolfAll() if(t != None): return ttf.estimate(t,'VILLAGER') return None