From 1171e7439a3a61ed1785e925a7d18481442dfff9 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 14 Feb 2010 00:28:04 +0100 Subject: [PATCH] board_gamma_update(): Export function --- board.c | 2 +- board.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board.c b/board.c index ed7dbb1..f8e6212 100644 --- a/board.c +++ b/board.c @@ -396,7 +396,7 @@ board_print(struct board *board, FILE *f) /* Update the probability distribution we maintain incrementally. */ -static void +void board_gamma_update(struct board *board, coord_t coord, enum stone color) { #ifdef BOARD_GAMMA diff --git a/board.h b/board.h index 5cc1445..2b5a1cc 100644 --- a/board.h +++ b/board.h @@ -297,6 +297,8 @@ static group_t board_get_atari_neighbor(struct board *b, coord_t coord, enum sto /* Adjust symmetry information as if given coordinate has been played. */ void board_symmetry_update(struct board *b, struct board_symmetry *symmetry, coord_t c); +/* Force re-compute of a probability distribution item. */ +void board_gamma_update(struct board *b, coord_t coord, enum stone color); /* Returns true if given coordinate has all neighbors of given color or the edge. */ static bool board_is_eyelike(struct board *board, coord_t *coord, enum stone eye_color); -- 2.11.4.GIT