From f6c5f45b2d04402df0f29f5b2010585e9ee8fa87 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 4 Apr 2010 01:03:07 +0200 Subject: [PATCH] uct_search(): Update u->played_own here --- uct/slave.c | 1 - uct/uct.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/slave.c b/uct/slave.c index 313cf8f..e50d03f 100644 --- a/uct/slave.c +++ b/uct/slave.c @@ -180,7 +180,6 @@ uct_genmoves(struct engine *e, struct board *b, struct time_info *ti, enum stone bool keep_looking; int base_playouts = u->t->root->u.playouts; int played_games = uct_search(u, b, ti, color, u->t, &keep_looking); - u->played_own += played_games; coord_t best_coord; uct_search_best(u, b, color, pass_all_alive, played_games, base_playouts, &best_coord); diff --git a/uct/uct.c b/uct/uct.c index cd24470..cd705cc 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -739,6 +739,7 @@ uct_search(struct uct *u, struct board *b, struct time_info *ti, enum stone colo if (UDEBUGL(0)) uct_progress_status(u, t, color, games); + u->played_own += games; return games; } -- 2.11.4.GIT