From fbbbbf01c5880c31af41cd6a4b1adb3e0f8517bb Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 8 Sep 2018 15:01:43 +0200 Subject: [PATCH] No initiative bonus for extinction variants STC giveaway LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 1451 W: 646 L: 539 D: 266 http://35.161.250.236:6543/tests/view/5b8bfc716e23db0fbab0dd3a STC extinction LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 2590 W: 1273 L: 1140 D: 177 http://35.161.250.236:6543/tests/view/5b93c8af6e23db0fbab0dd66 --- src/evaluate.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e9307df..0e14191 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -847,6 +847,10 @@ namespace { template Score Evaluation::initiative(Value eg) const { + // No initiative bonus for extinction variants + if (pos.extinction_value() != VALUE_NONE) + return SCORE_ZERO; + int outflanking = !pos.count(WHITE) || !pos.count(BLACK) ? 0 : distance(pos.square(WHITE), pos.square(BLACK)) - distance(pos.square(WHITE), pos.square(BLACK)); -- 1.7.0.4