From ba97adebf5d15fa4a43728cccc59f9a0160d047e Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 2 Oct 2009 15:55:13 +0200 Subject: [PATCH] uct_prior(): Consider pass --- uct/prior.c | 1 + uct/tree.c | 1 + 2 files changed, 2 insertions(+) diff --git a/uct/prior.c b/uct/prior.c index 2518651..80f130c 100644 --- a/uct/prior.c +++ b/uct/prior.c @@ -92,6 +92,7 @@ uct_prior_one(struct uct *u, struct tree_node *node, struct prior_map *map, coor void uct_prior(struct uct *u, struct tree_node *node, struct prior_map *map) { + uct_prior_one(u, node, map, pass); foreach_point(map->b) { if (!map->consider[c]) continue; diff --git a/uct/tree.c b/uct/tree.c index a1eeb63..44b5816 100644 --- a/uct/tree.c +++ b/uct/tree.c @@ -366,6 +366,7 @@ tree_expand_node(struct tree *t, struct tree_node *node, struct board *b, enum s map.prior = calloc(board_size2(b) + 1, sizeof(*map.prior)); map.prior++; map.consider = calloc(board_size2(b) + 1, sizeof(*map.consider)); map.consider++; struct move pm = { .color = color }; + map.consider[pass] = true; foreach_point(b) { if (board_at(b, c) != S_NONE) continue; -- 2.11.4.GIT