mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Count all weak squares in the king ring with a single popcount
Passed STC: LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 26966 W: 4993 L: 4745 D: 17228 http://tests.stockfishchess.org/tests/view/599e798a0ebc5916ff64aa8c and LTC: LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 39570 W: 5104 L: 4857 D: 29609 http://tests.stockfishchess.org/tests/view/599ee5230ebc5916ff64aabe Bench: 5965302
This commit is contained in:
parent
5ef94eb970
commit
92c39522b1
1 changed files with 2 additions and 2 deletions
|
@ -439,8 +439,8 @@ namespace {
|
||||||
// the quality of the pawn shelter (current 'score' value).
|
// the quality of the pawn shelter (current 'score' value).
|
||||||
kingDanger = kingAttackersCount[Them] * kingAttackersWeight[Them]
|
kingDanger = kingAttackersCount[Them] * kingAttackersWeight[Them]
|
||||||
+ 102 * kingAdjacentZoneAttacksCount[Them]
|
+ 102 * kingAdjacentZoneAttacksCount[Them]
|
||||||
+ 201 * popcount(kingOnlyDefended)
|
+ 191 * popcount(kingOnlyDefended | undefended)
|
||||||
+ 143 * (popcount(undefended) + !!pos.pinned_pieces(Us))
|
+ 143 * !!pos.pinned_pieces(Us)
|
||||||
- 848 * !pos.count<QUEEN>(Them)
|
- 848 * !pos.count<QUEEN>(Them)
|
||||||
- 9 * mg_value(score) / 8
|
- 9 * mg_value(score) / 8
|
||||||
+ 40;
|
+ 40;
|
||||||
|
|
Loading…
Add table
Reference in a new issue