can_countercapture(): Export interface
[pachi/pachi-r6144.git] / tactics / 1lib.h
blobebdb3b86d80a36c993eeb2f2578e406339bc5cb5
1 #ifndef ZZGO_TACTICS_1LIB_H
2 #define ZZGO_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, int tag);
24 #endif