From be2b9357d91b29fea0cfd74aa2ac443160777d7c Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Tue, 12 Jun 2018 00:39:01 -0400 Subject: [PATCH] Parsing options fix --- Client/OpenBench.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Client/OpenBench.py b/Client/OpenBench.py index 03f74f9..fb38003 100644 --- a/Client/OpenBench.py +++ b/Client/OpenBench.py @@ -166,13 +166,15 @@ def getCutechessCommand(data, scalefactor): inc = round(inc * scalefactor, 2) tc = str(start) + '+' + str(inc) - # Find Threads for the Dev Engine + # Find Threads / Options for the Dev Engine tokens = data['test']['dev']['options'].split(' ') devthreads = int(tokens[0].split('=')[1]) + devoptions = ' option.'.join(['']+tokens) - # Find Threads for the Base Engine + # Find Threads / Options for the Base Engine tokens = data['test']['base']['options'].split(' ') basethreads = int(tokens[0].split('=')[1]) + baseoptions = ' option.'.join(['']+tokens) # Finally, output the time control for the user print ('ORIGINAL :', data['test']['timecontrol'])