uct_leaf_node(): Fix node value debug print
[pachi.git] / tactics / 1lib.h
bloba9a002441fa876e506a8a822d43d50ed67e26247
1 #ifndef PACHI_TACTICS_1LIB_H
2 #define PACHI_TACTICS_1LIB_H
4 /* One-liberty tactical checks (i.e. dealing with atari situations). */
6 #include "board.h"
7 #include "debug.h"
9 struct move_queue;
12 /* For given atari group @group owned by @owner, decide if @to_play
13 * can save it / keep it in danger by dealing with one of the
14 * neighboring groups. */
15 bool can_countercapture(struct board *b, enum stone owner, group_t g,
16 enum stone to_play, struct move_queue *q, int tag);
18 /* Examine given group in atari, suggesting suitable moves for player
19 * @to_play to deal with it (rescuing or capturing it). */
20 /* ladder != NULL implies to always enqueue all relevant moves. */
21 void group_atari_check(unsigned int alwaysccaprate, struct board *b, group_t group, enum stone to_play,
22 struct move_queue *q, coord_t *ladder, bool middle_ladder, int tag);
24 #endif