From 5ed44d13065e80e2948b3b05156184daffde8a06 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 30 Dec 2012 14:54:43 +0100 Subject: [PATCH] Store some more tourney params in tourney file The hash and threads settings, as well as ponder and book options are now also saved in the tourney file, so that tournaments can be played in parallel where these parameters differ, and no mess up can occur on restarting a touney after doing something else. --- backend.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 52e8097..25134bf 100644 --- a/backend.c +++ b/backend.c @@ -10063,7 +10063,15 @@ WriteTourneyFile (char *results, FILE *f) fprintf(f, "-loadPositionFile \"%s\"\n", appData.loadPositionFile); fprintf(f, "-loadPositionIndex %d\n", appData.loadPositionIndex); fprintf(f, "-rewindIndex %d\n", appData.rewindIndex); + fprintf(f, "-usePolyglotBook %s\n", appData.usePolyglotBook ? "true" : "false"); + fprintf(f, "-polyglotBook %s\n", appData.polyglotBook); + fprintf(f, "-bookDepth %d\n", appData.bookDepth); + fprintf(f, "-bookVariation %d\n", appData.bookStrength); fprintf(f, "-discourageOwnBooks %s\n", appData.defNoBook ? "true" : "false"); + fprintf(f, "-defaultHashSize %d\n", appData.defaultHashSize); + fprintf(f, "-defaultCacheSizeEGTB %d\n", appData.defaultCacheSizeEGTB); + fprintf(f, "-ponderNextMove %s\n", appData.ponderNextMove ? "true" : "false"); + fprintf(f, "-smpCores %d\n", appData.smpCores); if(searchTime > 0) fprintf(f, "-searchTime \"%d:%02d\"\n", searchTime/60, searchTime%60); else { -- 1.7.0.4