struct feature: Pack down; 24 bits is enough for payload
[pachi.git] / tactics / 1lib.h
blob9899caacea6065ed2c9780eb0005ad580a383ef9
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, int tag);
24 #endif