Skip to content

Commit

Permalink
Remove cap from space score contribution and increase bonus
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Stefano80 authored and zamar committed Apr 17, 2017
1 parent 1454831 commit 06175c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/evaluate.cpp
Expand Up @@ -720,10 +720,9 @@ namespace {

// ...count safe + (behind & safe) with a single popcount.
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();

return make_score(bonus * weight * weight / 18, 0);
return make_score(bonus * weight * weight / 16, 0);
}


Expand Down

0 comments on commit 06175c6

Please sign in to comment.