Small changes to work with python2

This commit is contained in:
AndyGrant committed 2018-06-23 19:18:47 -04:00
1 parent 46c970d37d
commit 90598b8db9
1 file changed
+3 -1
+3 -1
View File
@@ -1,3 +1,5 @@
from __future__ import print_function
import ast, argparse, time, sys, platform, multiprocessing, hashlib import ast, argparse, time, sys, platform, multiprocessing, hashlib
import shutil, subprocess, requests, zipfile, os, math, json import shutil, subprocess, requests, zipfile, os, math, json
@@ -188,7 +190,7 @@ def getCutechessCommand(data, scalefactor):
' -srand ' + str(int(time.time())) + ' -srand ' + str(int(time.time())) +
' -resign movecount=3 score=400' ' -resign movecount=3 score=400'
' -draw movenumber=40 movecount=8 score=10' ' -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' ' -games 1000'
' -recover' ' -recover'
' -wait 10' ' -wait 10'