From 91ab12a2a40c4368a4d1893a37bc998b88360c5e Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Fri, 30 Mar 2012 23:55:56 +0200 Subject: [PATCH] board_effective_handicap: use first_move_value for h1 games In http://files.gokgs.com/games/2012/3/30/pachi2-bathory.sgf pachi thought it was leading up to the end even though first_move_value was 1. --- tactics/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tactics/util.c b/tactics/util.c index bcc196b..a17bbe0 100644 --- a/tactics/util.c +++ b/tactics/util.c @@ -95,7 +95,7 @@ board_effective_handicap(struct board *b, int first_move_value) * first_move_value is set on purpose to a value different * from the correct theoretical value (2*komi). */ if (!b->handicap) - return 7.5 - b->komi; + return b->komi == 0.5 ? 0.5 * first_move_value : 7.5 - b->komi; return b->handicap * first_move_value + 0.5 - b->komi; } -- 2.11.4.GIT