uct_leaf_node(): Fix node value debug print
authorPetr Baudis <pasky@ucw.cz>
Sun, 12 Aug 2012 12:18:15 +0000 (12 14:18 +0200)
committerPetr Baudis <pasky@ucw.cz>
Sun, 12 Aug 2012 12:18:15 +0000 (12 14:18 +0200)
uct/walk.c

index 5c2aadc..6a3e7d0 100644 (file)
@@ -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,