Merge pull request #50 from lemonsqueeze/can_countercap
[pachi.git] / montecarlo / internal.h
blobe82623178f278b47bd22fb442dd1ca9eda4c77ec
1 #ifndef PACHI_MONTECARLO_INTERNAL_H
2 #define PACHI_MONTECARLO_INTERNAL_H
4 #include "debug.h"
5 #include "move.h"
7 struct playout_policy;
9 /* Internal MonteCarlo structures */
12 /* Internal engine state. */
13 struct montecarlo {
14 int debug_level;
15 int gamelen;
16 floating_t resign_ratio;
17 int loss_threshold;
18 struct joseki_dict *jdict;
19 struct playout_policy *playout;
22 #define MCDEBUGL(n) DEBUGL_(mc->debug_level, n)
25 /* Per-move playout statistics. */
26 struct move_stat {
27 int games;
28 int wins;
31 void board_stats_print(struct board *board, struct move_stat *moves, FILE *f);
33 #endif