middle_ladder_walk(): Fix not noticing ladders that skim corners at the edges
[pachi/json.git] / tactics / 1lib.h
blobaf8f938f7fd64ae7a5baf551f0f9c8c4aa9e1af9
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;
11 /* Examine given group in atari, suggesting suitable moves for player
12 * @to_play to deal with it (rescuing or capturing it). */
13 /* ladder != NULL implies to always enqueue all relevant moves. */
14 void group_atari_check(unsigned int alwaysccaprate, struct board *b, group_t group, enum stone to_play,
15 struct move_queue *q, coord_t *ladder, int tag);
17 #endif