Use negative piece values for codrus
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 31 Dec 2020 10:51:46 +0000 (11:51 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 31 Dec 2020 10:51:46 +0000 (11:51 +0100)
codrus STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 181 W: 143 L: 38 D: 0
http://www.variantfishtest.org:6543/tests/view/5feda3686e23db221d9e97d8

codrus LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 244 W: 175 L: 69 D: 0
http://www.variantfishtest.org:6543/tests/view/5feda5176e23db221d9e97dd

src/psqt.cpp

index 0dac600..3b6405b 100644 (file)
@@ -173,8 +173,7 @@ void init(const Variant* v) {
                                   std::max(QueenValueEg - PieceValue[EG][pt], VALUE_ZERO) / 20);
 
       // For antichess variants, use negative piece values
-      if (   v->extinctionValue == VALUE_MATE
-          && v->extinctionPieceTypes.find(ALL_PIECES) != v->extinctionPieceTypes.end())
+      if (v->extinctionValue == VALUE_MATE)
           score = -make_score(mg_value(score) / 8, eg_value(score) / 8 / (1 + !pi->sliderCapture.size()));
 
       // Determine pawn rank