From f782c3b39fc9b4a26c73795c73f02a028c3feeab Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 21 Jan 2011 22:52:49 +0100 Subject: [PATCH] 2lib check_group_atari() -> can_atari_group(), export Conflicts: tactics/2lib.c --- tactics/2lib.c | 6 +++--- tactics/2lib.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tactics/2lib.c b/tactics/2lib.c index de488bf..f1f1709 100644 --- a/tactics/2lib.c +++ b/tactics/2lib.c @@ -57,7 +57,7 @@ miai_2lib(struct board *b, group_t group, enum stone color) } void -check_group_atari(struct board *b, group_t group, enum stone owner, +can_atari_group(struct board *b, group_t group, enum stone owner, enum stone to_play, struct move_queue *q, int tag, bool use_def_no_hopeless) { @@ -167,7 +167,7 @@ group_2lib_check(struct board *b, group_t group, enum stone to_play, struct move if (use_miaisafe && miai_2lib(b, group, color)) return; - check_group_atari(b, group, color, to_play, q, tag, use_def_no_hopeless); + can_atari_group(b, group, color, to_play, q, tag, use_def_no_hopeless); /* Can we counter-atari another group, if we are the defender? */ if (to_play != color) @@ -185,7 +185,7 @@ group_2lib_check(struct board *b, group_t group, enum stone to_play, struct move } if (board_group_info(b, g2).libs != 2) continue; - check_group_atari(b, g2, color, to_play, q, tag, use_def_no_hopeless); + can_atari_group(b, g2, color, to_play, q, tag, use_def_no_hopeless); }); } foreach_in_group_end; } diff --git a/tactics/2lib.h b/tactics/2lib.h index 5ab46fb..844fe41 100644 --- a/tactics/2lib.h +++ b/tactics/2lib.h @@ -9,6 +9,7 @@ struct move_queue; +void can_atari_group(struct board *b, group_t group, enum stone owner, enum stone to_play, struct move_queue *q, int tag, bool use_def_no_hopeless); void group_2lib_check(struct board *b, group_t group, enum stone to_play, struct move_queue *q, int tag, bool use_miaisafe, bool use_def_no_hopeless); #endif -- 2.11.4.GIT