From f5c5090c333a935ec9289f1f3b03179feaab8a81 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 8 Nov 2011 11:47:02 +0200 Subject: [PATCH] record_local_sequence(): Cut off local sequence at pass moves --- uct/walk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uct/walk.c b/uct/walk.c index 0d5ac6d..c4cdd8d 100644 --- a/uct/walk.c +++ b/uct/walk.c @@ -248,7 +248,8 @@ record_local_sequence(struct uct *u, struct tree *t, struct board *endb, /* ...and record the sequence. */ int di0 = di; - while (di < dlen && (di == di0 || descent[di].node->d < u->tenuki_d)) { + while (di < dlen && !is_pass(node_coord(descent[di].node)) + && (di == di0 || descent[di].node->d < u->tenuki_d)) { enum stone color = (di - di0) % 2 ? stone_other(seq_color) : seq_color; double rval; if (u->local_tree_eval != LTE_EACH) -- 2.11.4.GIT