fix the bug of improve stoping
This commit is contained in:
@ -124,8 +124,9 @@ def ATest():
|
||||
fn.close()
|
||||
print(lines)
|
||||
total_round+=1
|
||||
if lines[0]=='YOU WIN!\n':
|
||||
win_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)
|
||||
|
||||
#input("Press Enter to continue...")
|
||||
|
Reference in New Issue
Block a user