Skip initiative for losers chess
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 24 Apr 2020 08:42:11 +0000 (10:42 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 24 Apr 2020 08:42:11 +0000 (10:42 +0200)
losers STC
LLR: -2.96 (-2.94,2.94) [0.00,10.00]
Total: 25738 W: 11803 L: 11530 D: 2405
http://www.variantfishtest.org:6543/tests/view/5e9613ea6e23db4f73614cd7

losers LTC
LLR: -2.96 (-2.94,2.94) [0.00,10.00]
Total: 12249 W: 5537 L: 5456 D: 1256
http://www.variantfishtest.org:6543/tests/view/5e9b0cf66e23db36d55f299c

src/evaluate.cpp

index 62a6e05..50692b9 100644 (file)
@@ -999,7 +999,7 @@ namespace {
     Value eg = eg_value(score);
 
     // No initiative bonus for extinction variants
-    if (pos.extinction_value() != VALUE_NONE || pos.captures_to_hand() || pos.connect_n())
+    if (pos.extinction_value() != VALUE_NONE || pos.must_capture() || pos.captures_to_hand() || pos.connect_n())
       return SCORE_ZERO;
 
     int outflanking = !pos.count<KING>(WHITE) || !pos.count<KING>(BLACK) ? 0