From ed3132068eb624f5d953ef61ac3fe5a05e93ff4e Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 7 Mar 2010 23:04:14 +0100 Subject: [PATCH] UCT GJ_MINGAMES: Rewrite condition --- uct/uct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/uct.c b/uct/uct.c index 1d1d2b1..498915f 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -613,7 +613,7 @@ uct_search(struct uct *u, struct board *b, struct time_info *ti, enum stone colo * time pressure but the tree is going to be just too messed * up otherwise - we might even play invalid suicides or pass * when we mustn't. */ - if (ctx->t->root->u.playouts < GJ_MINGAMES) + if (i < GJ_MINGAMES) continue; best = u->policy->choose(u->policy, ctx->t->root, b, color, resign); -- 2.11.4.GIT