Pass adjudication settings from the server. Allow defaults
This commit is contained in:
1 parent
2f9508f533
commit
aa3e43b125
6 files changed
+121
-43
No files matched your search
+6
-3
@@ -48,7 +48,7 @@ from itertools import combinations_with_replacement
|
||||
TIMEOUT_HTTP = 30 # Timeout in seconds for HTTP requests
|
||||
TIMEOUT_ERROR = 10 # Timeout in seconds when any errors are thrown
|
||||
TIMEOUT_WORKLOAD = 30 # Timeout in seconds between workload requests
|
||||
CLIENT_VERSION = '4' # Client version to send to the Server
|
||||
CLIENT_VERSION = '5' # Client version to send to the Server
|
||||
|
||||
SYZYGY_WDL_PATH = None # Pathway to WDL Syzygy Tables
|
||||
BASE_GAMES_PER_CORE = 32 # Typical games played per-thread
|
||||
@@ -783,10 +783,13 @@ def build_cutechess_command(arguments, workload, dev_name, base_name, nps):
|
||||
dev_options = ' option.'.join([''] + dev_options.split())
|
||||
base_options = ' option.'.join([''] + base_options.split())
|
||||
|
||||
win_adj = ['', '-resign ' + workload['test']['win_adj' ]][workload['test']['win_adj' ] != 'None']
|
||||
draw_adj = ['', '-draw ' + workload['test']['draw_adj']][workload['test']['draw_adj'] != 'None']
|
||||
|
||||
book_name = workload['test']['book']['name']
|
||||
variant = ['standard', 'fischerandom']['FRC' in book_name.upper()]
|
||||
|
||||
flags = '-repeat -recover -resign %s -draw %s '
|
||||
flags = '-repeat -recover %s %s '
|
||||
flags += '-srand %d -variant %s -concurrency %d -games %d '
|
||||
flags += '-engine dir=Engines/ cmd=./%s proto=uci %s%s name=%s '
|
||||
flags += '-engine dir=Engines/ cmd=./%s proto=uci %s%s name=%s '
|
||||
@@ -805,7 +808,7 @@ def build_cutechess_command(arguments, workload, dev_name, base_name, nps):
|
||||
time_control = scale_time_control(workload, nps)
|
||||
|
||||
args = (
|
||||
'movecount=3 score=400', 'movenumber=40 movecount=8 score=10',
|
||||
win_adj, draw_adj,
|
||||
int(time.time()), variant, concurrency, games,
|
||||
dev_name, time_control, dev_options, dev_name.rstrip('.exe'),
|
||||
base_name, time_control, base_options, base_name.rstrip('.exe'),
|
||||
|
||||
Reference in new issue
Block a user