Enable extinction evaluation for losers chess
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 13 Jun 2020 18:38:27 +0000 (20:38 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 13 Jun 2020 18:38:27 +0000 (20:38 +0200)
losers STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 315 W: 188 L: 92 D: 35
http://www.variantfishtest.org:6543/tests/view/5ee4d0a06e23db104fb88b3b

losers LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 415 W: 225 L: 130 D: 60
http://www.variantfishtest.org:6543/tests/view/5ee4df9e6e23db104fb88b4d

src/evaluate.cpp

index a30d93c..2bf903f 100644 (file)
@@ -972,7 +972,7 @@ namespace {
                                         1000000 / (500 + PieceValue[EG][pt])) / (denom * denom)
                             * (pos.extinction_value() / VALUE_MATE);
             }
-            else if (pos.extinction_value() == VALUE_MATE && !pos.count<KING>(Us))
+            else if (pos.extinction_value() == VALUE_MATE)
                 score += make_score(5000, pos.non_pawn_material(Us)) / pos.count<ALL_PIECES>(Us);
     }