From 6c0a944e7e1eee6c7aa64a1850c0eb9cef96b334 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 8 Feb 2011 13:06:33 +0100 Subject: [PATCH] tree_node_dump(): Include criticality --- uct/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uct/tree.c b/uct/tree.c index 797065c..28b7e1e 100644 --- a/uct/tree.c +++ b/uct/tree.c @@ -195,11 +195,12 @@ tree_node_dump(struct tree *tree, struct tree_node *node, int l, int thres) children++; /* We use 1 as parity, since for all nodes we want to know the * win probability of _us_, not the node color. */ - fprintf(stderr, "[%s] %f %% %d [prior %f %% %d amaf %f %% %d]; hints %x; %d children <%"PRIhash">\n", + fprintf(stderr, "[%s] %f %% %d [prior %f %% %d amaf %f %% %d crit %f]; hints %x; %d children <%"PRIhash">\n", coord2sstr(node->coord, tree->board), tree_node_get_value(tree, 1, node->u.value), node->u.playouts, tree_node_get_value(tree, 1, node->prior.value), node->prior.playouts, tree_node_get_value(tree, 1, node->amaf.value), node->amaf.playouts, + tree_node_criticality(tree, node), node->hints, children, node->hash); /* Print nodes sorted by #playouts. */ -- 2.11.4.GIT