Playout: rave -> amaf
[pachi.git] / playout.h
blob4d20b34e759a69d907f4ba66beba383c2d7748ef
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);
11 /* Record of the random playout - for each intersection:
12 * S_NONE: This move was never played
13 * S_BLACK: This move was played by black first
14 * S_WHITE: This move was played by white first
16 struct playout_amafmap {
17 enum stone *map; // [b->size2]
21 /* 1: starting_color wins, 0: starting_color loses
22 * -1: superko inside the game tree */
23 int play_random_game(struct board *b, enum stone starting_color, int gamelen, struct playout_amafmap *amafmap, playout_policeman policeman, void *policy);
25 #endif