From: Fabian Fichter Date: Fri, 2 Nov 2018 19:08:36 +0000 (+0100) Subject: Skip initiative bonus for drop games X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4761e353534686c1bb329ec141aaa9afdf47c26e;p=fairystockfish.git Skip initiative bonus for drop games shogi ELO: 23.49 +-33.7 (95%) LOS: 91.5% Total: 400 W: 208 L: 181 D: 11 euroshogi ELO: 18.26 +-33.5 (95%) LOS: 85.8% Total: 400 W: 203 L: 182 D: 15 minishogi ELO: -6.08 +-33.0 (95%) LOS: 35.9% Total: 400 W: 184 L: 191 D: 25 crazyhouse STC LLR: 2.97 (-2.94,2.94) [-10.00,5.00] Total: 1980 W: 993 L: 940 D: 47 http://35.161.250.236:6543/tests/view/5bdca2176e23db7639060c5a --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index ce9aafe..8ef9136 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -861,7 +861,7 @@ namespace { Score Evaluation::initiative(Value eg) const { // No initiative bonus for extinction variants - if (pos.extinction_value() != VALUE_NONE) + if (pos.extinction_value() != VALUE_NONE || pos.captures_to_hand()) return SCORE_ZERO; int outflanking = !pos.count(WHITE) || !pos.count(BLACK) ? 0