Skip to content

Commit

Permalink
Count all weak squares in the king ring with a single popcount
Browse files Browse the repository at this point in the history
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
  • Loading branch information
snicolet authored and mcostalba committed Aug 26, 2017
1 parent 5ef94eb commit 92c3952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Expand Up @@ -439,8 +439,8 @@ namespace {
// the quality of the pawn shelter (current 'score' value).
kingDanger = kingAttackersCount[Them] * kingAttackersWeight[Them]
+ 102 * kingAdjacentZoneAttacksCount[Them]
+ 201 * popcount(kingOnlyDefended)
+ 143 * (popcount(undefended) + !!pos.pinned_pieces(Us))
+ 191 * popcount(kingOnlyDefended | undefended)
+ 143 * !!pos.pinned_pieces(Us)
- 848 * !pos.count<QUEEN>(Them)
- 9 * mg_value(score) / 8
+ 40;
Expand Down

0 comments on commit 92c3952

Please sign in to comment.