CLOP + cutechess cli
Posted: Fri Jan 06, 2012 12:16 am
it seems for me that there is something wrong with the new script of cutechess_cli.py sending the results outcome to CLOP:
# Convert Cutechess-cli's result into W/L/D
# Note that only one game should be played
result = -1
for line in output.splitlines():
if line.startswith('Finished game'):
if line.find(": 1-0") != -1:
result = clop_seed % 2
elif line.find(": 0-1") != -1:
result = (clop_seed % 2) ^ 1
elif line.find(": 1/2-1/2") != -1:
result = 2
break
if result == 0:
print 'W'
elif result == 1:
print 'L'
elif result == 2:
print 'D'
if i right understand is the tuning engine that win/lose/draw against opponents, but when i looked the pgn file there is outcome if my engine is WIN then its send L , if its losed its send a W, so that is complete wrong and the tuning values wrong too.
wich side is WIN or LOSE please ?
should that not be like this
if line.startswith('Finished game'):
if line.find(": 0-1") != -1:
result = clop_seed % 2
elif line.find(": 1-0") != -1:
result = (clop_seed % 2) ^ 1
elif line.find(": 1/2-1/2") != -1:
result = 2
# Convert Cutechess-cli's result into W/L/D
# Note that only one game should be played
result = -1
for line in output.splitlines():
if line.startswith('Finished game'):
if line.find(": 1-0") != -1:
result = clop_seed % 2
elif line.find(": 0-1") != -1:
result = (clop_seed % 2) ^ 1
elif line.find(": 1/2-1/2") != -1:
result = 2
break
if result == 0:
print 'W'
elif result == 1:
print 'L'
elif result == 2:
print 'D'
if i right understand is the tuning engine that win/lose/draw against opponents, but when i looked the pgn file there is outcome if my engine is WIN then its send L , if its losed its send a W, so that is complete wrong and the tuning values wrong too.
wich side is WIN or LOSE please ?
should that not be like this
if line.startswith('Finished game'):
if line.find(": 0-1") != -1:
result = clop_seed % 2
elif line.find(": 1-0") != -1:
result = (clop_seed % 2) ^ 1
elif line.find(": 1/2-1/2") != -1:
result = 2