From 02e782f18643aa3e45997e620f65167d6408e74d Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Fri, 13 May 2011 19:38:24 +0200 Subject: [PATCH] Dynamic komi: fix linear_permove() when pondering --- uct/dynkomi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/dynkomi.c b/uct/dynkomi.c index 4f8ad02..dce50c4 100644 --- a/uct/dynkomi.c +++ b/uct/dynkomi.c @@ -57,7 +57,7 @@ static floating_t linear_permove(struct uct_dynkomi *d, struct board *b, struct tree *tree) { struct dynkomi_linear *l = d->data; - enum stone color = stone_other(tree->root_color); + enum stone color = d->uct->pondering ? tree->root_color : stone_other(tree->root_color); int lmoves = l->moves[color]; if (b->moves >= lmoves) return 0; -- 2.11.4.GIT