From 7e700bf244857c81e6538a3f868315fdf9987c23 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 2 Aug 2010 13:06:28 +0200 Subject: [PATCH] board_effective_handicap(): Remove invalid assertion --- tactics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tactics.c b/tactics.c index 507eacc..57c27b5 100644 --- a/tactics.c +++ b/tactics.c @@ -588,7 +588,9 @@ cfg_distances(struct board *b, coord_t start, int *distances, int maxdist) float board_effective_handicap(struct board *b, int first_move_value) { - assert(b->handicap != 1); + /* This can happen if the opponent passes during handicap + * placing phase. */ + // assert(b->handicap != 1); return (b->handicap ? b->handicap : 1) * first_move_value + 0.5 - b->komi; } -- 2.11.4.GIT