1 #ifndef ZZGO_UCT_INTERNAL_H
2 #define ZZGO_UCT_INTERNAL_H
12 /* Internal UCT structures */
15 /* Internal engine state. */
26 struct uct_policy
*policy
;
28 struct playout_policy
*playout
;
31 #define UDEBUGL(n) DEBUGL_(u->debug_level, n)
34 typedef struct tree_node
*(*uctp_choose
)(struct uct_policy
*p
, struct tree_node
*node
, struct board
*b
, enum stone color
);
35 typedef struct tree_node
*(*uctp_descend
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, int parity
, bool allow_pass
);
36 typedef void (*uctp_prior
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, struct board
*b
, enum stone color
, int parity
);
37 typedef void (*uctp_update
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, enum stone color
, struct playout_amafmap
*amaf
, int result
);