From 76301cea6df247e7d9ebb37a49fcc38059b8c107 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 16 Feb 2009 00:54:39 +0100 Subject: [PATCH] UCB1AMAF: Fix hinting when doing AMAF updates --- uct/policy/ucb1amaf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index a98e3ce..cfcda68 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -306,6 +306,8 @@ ucb1amaf_update(struct uct_policy *p, struct tree *tree, struct tree_node *node, struct board bb; bb.size = 9+2; fprintf(stderr, "%s<%lld> -> %s<%lld> [%d %d => %d]\n", coord2sstr(node->coord, &bb), node->hash, coord2sstr(ni->coord, &bb), ni->hash, map->map[ni->coord], color, result); #endif + if (p->descend != ucb1_descend) + ni->hints |= NODE_HINT_NOAMAF; /* Rave, different update function */ if (b->both_colors) { update_node_amaf(p, ni, map->map[ni->coord] == color ? result : !result); } else if (map->map[ni->coord] == color) { -- 2.11.4.GIT