Skip to content

Commit

Permalink
Fixs
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator authored and Administrator committed Aug 8, 2021
1 parent b3ea699 commit 026743a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions ZenGTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 026743a

Please sign in to comment.