Leapers are stronger in drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 21 Dec 2020 15:11:34 +0000 (16:11 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 21 Dec 2020 15:11:34 +0000 (16:11 +0100)
shogi STC
LLR: -2.96 (-2.94,2.94) [0.00,10.00]
Total: 7387 W: 3678 L: 3674 D: 35
http://www.variantfishtest.org:6543/tests/view/5fde3b356e23db221d9e95ba

shogi LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2718 W: 1423 L: 1282 D: 13
http://www.variantfishtest.org:6543/tests/view/5fdf23cc6e23db221d9e95ca

crazyhouse STC
LLR: -2.97 (-2.94,2.94) [0.00,10.00]
Total: 3783 W: 1818 L: 1864 D: 101
http://www.variantfishtest.org:6543/tests/view/5fde471c6e23db221d9e95c2

crazyhouse LTC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 2116 W: 1055 L: 1003 D: 58
http://www.variantfishtest.org:6543/tests/view/5fe05d9f6e23db221d9e961f

src/psqt.cpp

index e85c423..0dac600 100644 (file)
@@ -139,7 +139,7 @@ void init(const Variant* v) {
           constexpr int lc = 5;
           constexpr int rm = 5;
           constexpr int r0 = rm + RANK_8;
-          int r1 = rm + (v->maxRank + v->maxFile) / 2;
+          int r1 = rm + (v->maxRank + v->maxFile - 2 * v->capturesToHand) / 2;
           int leaper = pi->stepsQuiet.size() + pi->stepsCapture.size();
           int slider = pi->sliderQuiet.size() + pi->sliderCapture.size() + pi->hopperQuiet.size() + pi->hopperCapture.size();
           score = make_score(mg_value(score) * (lc * leaper + r1 * slider) / (lc * leaper + r0 * slider),