From e5c6fb5260cde951cf078afa6d5b79e0d81fd722 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 14 Apr 2011 18:31:12 +0200 Subject: [PATCH] can_countercapture(): Export interface --- tactics/1lib.c | 5 +---- tactics/1lib.h | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tactics/1lib.c b/tactics/1lib.c index 87ebb32..fc659ad 100644 --- a/tactics/1lib.c +++ b/tactics/1lib.c @@ -49,10 +49,7 @@ capturable_group(struct board *b, enum stone capturer, coord_t c, return can_play_on_lib(b, g, to_play); } -/* For given atari group @group owned by @owner, decide if @to_play - * can save it / keep it in danger by dealing with one of the - * neighboring groups. */ -static bool +bool can_countercapture(struct board *b, enum stone owner, group_t g, enum stone to_play, struct move_queue *q, int tag) { diff --git a/tactics/1lib.h b/tactics/1lib.h index af8f938..ebdb3b8 100644 --- a/tactics/1lib.h +++ b/tactics/1lib.h @@ -8,6 +8,13 @@ struct move_queue; + +/* For given atari group @group owned by @owner, decide if @to_play + * can save it / keep it in danger by dealing with one of the + * neighboring groups. */ +bool can_countercapture(struct board *b, enum stone owner, group_t g, + enum stone to_play, struct move_queue *q, int tag); + /* Examine given group in atari, suggesting suitable moves for player * @to_play to deal with it (rescuing or capturing it). */ /* ladder != NULL implies to always enqueue all relevant moves. */ -- 2.11.4.GIT