Prior map: Add bool[] consider array to denote uninteresting map locations
[pachi.git] / uct / prior.h
blob53b123265f47f9d47891397aa2134f9f3d4c6bdc
1 #ifndef ZZGO_UCT_PRIOR_H
2 #define ZZGO_UCT_PRIOR_H
4 #include "move.h"
5 #include "uct/tree.h"
7 struct tree;
8 struct tree_node;
9 struct uct;
10 struct board;
12 struct prior_map {
13 struct board *b;
14 enum stone to_play;
15 int parity;
16 /* [board_size2(b)] array, move_stats are the prior
17 * values to be assigned to individual moves;
18 * move_stats.value is not updated. */
19 struct move_stats *prior;
20 /* [board_size2(b)] array, whether to compute
21 * prior for the given value. */
22 bool *consider;
25 void uct_prior(struct uct *u, struct tree_node *node, struct prior_map *map);
27 #endif