From 026743a3a386f9448796a7e71be8994ac72a797d Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 8 Aug 2021 14:51:35 +0800 Subject: [PATCH] Fixs --- ZenGTP.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ZenGTP.py b/ZenGTP.py index 88eeb77..fe6e125 100644 --- a/ZenGTP.py +++ b/ZenGTP.py @@ -577,9 +577,16 @@ def gen_analyze(self, C=-1, interval=100): info+='info move %s visits %d winrate %d order %d pv %s ' % (analyz_response[i]["move"],analyz_response[i]["visits"],analyz_response[i]["winrate"],analyz_response[i]["order"], analyz_response[i]["pv"]) except ValueError as e: print(e) - #print('unknown error') - + #print('unknown error') + if self.ZenIsThinking() == -0x80000000: +# Print('ZenIsThinking()==-0x80000000') + # self.Strength = self.lastStrength + break + if self.analyzeStatus==0: + #Print('analyzeStatus==0') +# self.Strength = self.lastStrength + break if info!='' and ((self.ThinkInterval*thinkcount*100)%interval)==0: #info move K19 visits 2 winrate 5114 order 0 pv K19 L3 ReplyInfo(info) @@ -590,14 +597,6 @@ def gen_analyze(self, C=-1, interval=100): ret["sess"]=self.analyzeSess; #Print('') - if self.ZenIsThinking() == -0x80000000: -# Print('ZenIsThinking()==-0x80000000') - # self.Strength = self.lastStrength - break - if self.analyzeStatus==0: - #Print('analyzeStatus==0') -# self.Strength = self.lastStrength - break # if list[0][2]>=self.Strength: # Print('Stop gen_analyze >=Strength(%d)' % self.Strength) # self.Strength = self.lastStrength