From 55a3f65685d495c7dd00806851e2b9d8c3c6e010 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 4 Apr 2010 00:57:44 +0200 Subject: [PATCH] uct_genmoves(): Slight declarations reorder --- uct/slave.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uct/slave.c b/uct/slave.c index 1891fc2..313cf8f 100644 --- a/uct/slave.c +++ b/uct/slave.c @@ -178,10 +178,11 @@ uct_genmoves(struct engine *e, struct board *b, struct time_info *ti, enum stone /* Continue the Monte Carlo Tree Search. */ bool keep_looking; - coord_t best_coord; int base_playouts = u->t->root->u.playouts; - int played_games = uct_search(u, b, ti, color, u->t, &keep_looking); + 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); char *reply = uct_getstats(u, b, best_coord, keep_looking); -- 2.11.4.GIT