From a6f6c573e77ff71e4aab292c9bceb19c2b9aed59 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 14 Feb 2010 02:32:15 +0100 Subject: [PATCH] playout_elo_choose(): Pass when no moves remain in the probdist --- playout/elo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playout/elo.c b/playout/elo.c index 39d4210..92f76e8 100644 --- a/playout/elo.c +++ b/playout/elo.c @@ -126,7 +126,7 @@ playout_elo_choose(struct playout_policy *p, struct board *b, enum stone to_play } /* TODO: FEAT_CONTIGUITY support. */ /* Pick a move. */ - coord_t c = probdist_pick(pd); + coord_t c = pd->total >= 0.01 ? probdist_pick(pd) : pass; /* Repair the damage. */ if (!is_pass(b->ko.coord)) board_gamma_update(b, b->ko.coord, to_play); -- 2.11.4.GIT