From b3ad8214ea0c08a4b3b317db31eef56a70e39e5b Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 15 Dec 2010 12:11:01 +0100 Subject: [PATCH] UCT treepool_setup(): Fix finding best move --- uct/walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/walk.c b/uct/walk.c index 9203d26..648717b 100644 --- a/uct/walk.c +++ b/uct/walk.c @@ -263,7 +263,7 @@ treepool_setup(struct uct_playout_callback *upc, struct board *b, struct tree_no double i_val = treepool_node_value(u, upc->tree, parity, ni); if (i_val > best_val) { - best = node; + best = ni; best_val = i_val; } } -- 2.11.4.GIT