From 5ebe953fd3079dd6fabd623026292431b3e8c20f Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 12 Aug 2012 14:18:15 +0200 Subject: [PATCH] uct_leaf_node(): Fix node value debug print --- uct/walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/walk.c b/uct/walk.c index 5c2aadc..6a3e7d0 100644 --- a/uct/walk.c +++ b/uct/walk.c @@ -236,7 +236,7 @@ uct_leaf_node(struct uct *u, struct board *b, enum stone player_color, if (UDEBUGL(7)) fprintf(stderr, "%s*-- UCT playout #%d start [%s] %f\n", spaces, n->u.playouts, coord2sstr(node_coord(n), t->board), - tree_node_get_value(t, parity, n->u.value)); + tree_node_get_value(t, -parity, n->u.value)); struct uct_playout_callback upc = { .uct = u, -- 2.11.4.GIT