Skip initiative bonus for drop games
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 2 Nov 2018 19:08:36 +0000 (20:08 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 3 Nov 2018 18:33:17 +0000 (19:33 +0100)
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

src/evaluate.cpp

index ce9aafe..8ef9136 100644 (file)
@@ -861,7 +861,7 @@ namespace {
   Score Evaluation<T>::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<KING>(WHITE) || !pos.count<KING>(BLACK) ? 0