1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 17:49:35 +00:00

Remove cap from space score contribution and increase bonus

STC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 58462 W: 10615 L: 10558 D: 37289

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 65061 W: 8539 L: 8477 D: 48045

It is worth noting that an attempt to only increase the bonus passed STC but failed LTC, and
an attempt to remove the cap without increasing the bonus is still running at STC, but will probably fail after more than 100k.

Bench: 6188591

Closes #1063
This commit is contained in:
Stefano80 2017-04-17 09:17:41 -07:00 committed by Joona Kiiski
parent 1454831220
commit 06175c6055

View file

@ -720,10 +720,9 @@ namespace {
// ...count safe + (behind & safe) with a single popcount. // ...count safe + (behind & safe) with a single popcount.
int bonus = popcount((Us == WHITE ? safe << 32 : safe >> 32) | (behind & safe)); int bonus = popcount((Us == WHITE ? safe << 32 : safe >> 32) | (behind & safe));
bonus = std::min(16, bonus);
int weight = pos.count<ALL_PIECES>(Us) - 2 * ei.pe->open_files(); int weight = pos.count<ALL_PIECES>(Us) - 2 * ei.pe->open_files();
return make_score(bonus * weight * weight / 18, 0); return make_score(bonus * weight * weight / 16, 0);
} }