Montecarlo: Swap suicide and superko checks
[pachi.git] / playout.h
blobd56f5a4ba034343a058190f8cf3a6b35f1a55c2b
1 #ifndef ZZGO_PLAYOUT_H
2 #define ZZGO_PLAYOUT_H
4 struct board;
5 struct move;
6 enum stone;
9 typedef coord_t (*playout_policeman)(void *playout_policy, struct board *b, enum stone my_color);
12 /* 1: m->color wins, 0: m->color loses
13 * -2 superko inside the game tree (NOT at root, that's simply invalid move)
14 * -3 first move is multi-stone suicide */
15 int play_random_game(struct board *b, struct move *m, int gamelen, playout_policeman policeman, void *policy);
17 #endif