mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Simplify space formula
STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 16868 W: 3260 L: 3132 D: 10476 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 16910 W: 2381 L: 2255 D: 12274 bench: 6663531
This commit is contained in:
parent
b3525fa9ea
commit
8abb98455f
1 changed files with 2 additions and 3 deletions
|
@ -703,10 +703,9 @@ namespace {
|
|||
|
||||
// ...count safe + (behind & safe) with a single popcount
|
||||
int bonus = popcount((Us == WHITE ? safe << 32 : safe >> 32) | (behind & safe));
|
||||
int weight = pos.count<KNIGHT>(Us) + pos.count<BISHOP>(Us)
|
||||
+ pos.count<KNIGHT>(Them) + pos.count<BISHOP>(Them);
|
||||
int weight = pos.count<ALL_PIECES>(Us);
|
||||
|
||||
return make_score(bonus * weight * weight * 2 / 11, 0);
|
||||
return make_score(bonus * weight * weight / 22, 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue