From 90598b8db99d0de23eaab4c1ff302972f5b21a07 Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Sat, 23 Jun 2018 19:18:47 -0400 Subject: [PATCH] Small changes to work with python2 --- Client/OpenBench.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Client/OpenBench.py b/Client/OpenBench.py index c5b70b1..8df3b72 100644 --- a/Client/OpenBench.py +++ b/Client/OpenBench.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import ast, argparse, time, sys, platform, multiprocessing, hashlib import shutil, subprocess, requests, zipfile, os, math, json @@ -188,7 +190,7 @@ def getCutechessCommand(data, scalefactor): ' -srand ' + str(int(time.time())) + ' -resign movecount=3 score=400' ' -draw movenumber=40 movecount=8 score=10' - ' -concurrency ' + str(math.floor(THREADS / max(devthreads, basethreads))) + + ' -concurrency ' + str(int(math.floor(THREADS / max(devthreads, basethreads)))) + ' -games 1000' ' -recover' ' -wait 10'