further fix the bug

This commit is contained in:
2023-09-30 19:21:19 +08:00
parent 173902a9ab
commit 8206cbccfd

View File

@ -171,6 +171,7 @@ def ATest():
# check the output
print(lines)
total_round+=1
if len(lines)>0:
if lines[0]=='YOU WIN!\n':
win_round+=1
print("win rate: "+str(win_round/total_round),win_round,total_round)