1 #ifndef ZZGO_UCT_INTERNAL_H
2 #define ZZGO_UCT_INTERNAL_H
13 /* Internal UCT structures */
16 /* Internal engine state. */
24 bool playout_amaf
, playout_amaf_nakade
;
26 int playout_amaf_cutoff
;
36 struct uct_policy
*policy
;
38 struct playout_policy
*playout
;
39 struct uct_prior
*prior
;
42 #define UDEBUGL(n) DEBUGL_(u->debug_level, n)
45 typedef struct tree_node
*(*uctp_choose
)(struct uct_policy
*p
, struct tree_node
*node
, struct board
*b
, enum stone color
);
46 typedef struct tree_node
*(*uctp_descend
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, int parity
, bool allow_pass
);
47 typedef void (*uctp_prior
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, struct board
*b
, enum stone color
, int parity
);
48 typedef void (*uctp_update
)(struct uct_policy
*p
, struct tree
*tree
, struct tree_node
*node
, enum stone node_color
, enum stone player_color
, struct playout_amafmap
*amaf
, float result
);