From b1af2dcc565fcae50d37153384290c48ef6dc298 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 24 Sep 2009 03:43:38 +0200 Subject: [PATCH] uct_leaf_node(): Commented-out debug print on expanding --- uct/uct.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uct/uct.c b/uct/uct.c index 3f888e3..6fdb123 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -88,9 +88,11 @@ uct_leaf_node(struct uct *u, struct board *b, enum stone player_color, char *spaces) { enum stone next_color = stone_other(node_color); - if (n->u.playouts >= u->expand_p) + if (n->u.playouts >= u->expand_p) { + // fprintf(stderr, "expanding %s (%p ^-%p)\n", coord2sstr(n->coord, b), n, n->parent); tree_expand_node(t, n, b, next_color, u->radar_d, u->policy, (next_color == player_color ? 1 : -1)); + } if (UDEBUGL(7)) fprintf(stderr, "%s*-- UCT playout #%d start [%s] %f\n", spaces, n->u.playouts, coord2sstr(n->coord, t->board), n->u.value); -- 2.11.4.GIT