Bonus for advanced pieces in atomic
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 3 Mar 2021 19:39:49 +0000 (20:39 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 3 Mar 2021 19:39:49 +0000 (20:39 +0100)
atomic STC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 2361 W: 814 L: 708 D: 839
http://www.variantfishtest.org:6543/tests/view/603e83ab6e23db669974e9b6

atomic LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2720 W: 904 L: 796 D: 1020
http://www.variantfishtest.org:6543/tests/view/603ec8a26e23db669974e9bb

src/psqt.cpp

index c9e7d59..fd2b6d6 100644 (file)
@@ -238,6 +238,8 @@ void init(const Variant* v) {
               if (f == FILE_A && (r == RANK_1 || r == v->maxRank))
                   psq[pc][s] += make_score(1000, 1000);
           }
+          if (v->blastOnCapture)
+              psq[pc][s] += make_score(5, 0) * r;
           psq[~pc][rank_of(s) <= v->maxRank ? flip_rank(s, v->maxRank) : s] = -psq[pc][s];
       }
       // pieces in pocket