From 1c153a58ada81e19c9bc31f172d7f7be636866fe Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 10 Feb 2010 03:37:57 +0100 Subject: [PATCH] zzgo -t: Bail out if the user specified TT_TOTAL period (unsupported for now) --- zzgo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zzgo.c b/zzgo.c index f3cbdeb..bb0f74e 100644 --- a/zzgo.c +++ b/zzgo.c @@ -108,6 +108,16 @@ int main(int argc, char *argv[]) exit(1); } ti_default.ignore_gtp = true; + /* Check for unsupported combinations. */ + assert(ti_default.period != TT_NULL); + if (ti_default.dim == TD_GAMES && ti_default.period == TT_TOTAL) { + fprintf(stderr, "%s: Spreading fixed simulations# over the whole game is not supported\n", argv[0]); + exit(1); + } + if (ti_default.dim == TD_WALLTIME && ti_default.period == TT_TOTAL) { + fprintf(stderr, "%s: Spreading fixed time over the whole game without GTP time_left aid is not supported for now\n", argv[0]); + exit(1); + } break; case 'u': testfile = strdup(optarg); -- 2.11.4.GIT