Tweak atomic pawn endgame value
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 22 Mar 2021 19:06:20 +0000 (20:06 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 22 Mar 2021 19:06:20 +0000 (20:06 +0100)
atomic STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 2650 W: 951 L: 839 D: 860
http://www.variantfishtest.org:6543/tests/view/60571eb36e23db669974eb07

atomic LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 5829 W: 1959 L: 1810 D: 2060
http://www.variantfishtest.org:6543/tests/view/60579b976e23db669974eb24

src/psqt.cpp

index 53d3f4e..658a827 100644 (file)
@@ -141,7 +141,7 @@ void init(const Variant* v) {
       {
           score -= make_score(0, (QueenValueEg - maxPromotion) / 100);
           if (v->blastOnCapture)
-              score += score * 3 / 2;
+              score += make_score(mg_value(score) * 3 / 2, eg_value(score));
       }
 
       // Scale slider piece values with board size