Tweak atomic pawn value
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 8 Mar 2021 18:23:34 +0000 (19:23 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 8 Mar 2021 18:23:34 +0000 (19:23 +0100)
atomic STC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 14941 W: 5277 L: 5004 D: 4660
http://www.variantfishtest.org:6543/tests/view/60432e216e23db669974e9f5

atomic LTC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 1915 W: 676 L: 575 D: 664
http://www.variantfishtest.org:6543/tests/view/6045d4176e23db669974ea0b

src/psqt.cpp

index 5904a06..a3aaca8 100644 (file)
@@ -141,7 +141,7 @@ void init(const Variant* v) {
       {
           score -= make_score(0, (QueenValueEg - maxPromotion) / 100);
           if (v->blastOnCapture)
-              score += score;
+              score += score * 3 / 2;
       }
 
       // Scale slider piece values with board size
@@ -239,7 +239,7 @@ void init(const Variant* v) {
                   psq[pc][s] += make_score(1000, 1000);
           }
           if (v->blastOnCapture)
-              psq[pc][s] += make_score(40, 0) * r;
+              psq[pc][s] += make_score(40, 0) * (r - v->maxRank / 2);
           psq[~pc][rank_of(s) <= v->maxRank ? flip_rank(s, v->maxRank) : s] = -psq[pc][s];
       }
       // pieces in pocket