mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove cap in kingDanger initialization
Passed STC http://tests.stockfishchess.org/tests/view/58fd53be0ebc59035df33eb5 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 52048 W: 9397 L: 9329 D: 33322 Passed LTC http://tests.stockfishchess.org/tests/view/58ff9e0a0ebc59035df33f5c LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 35382 W: 4650 L: 4549 D: 26183 Bench: 5872717 Closes #1087
This commit is contained in:
parent
e06a117d5e
commit
b948b037a5
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ namespace {
|
|||
// number and types of the enemy's attacking pieces, the number of
|
||||
// attacked and undefended squares around our king and the quality of
|
||||
// the pawn shelter (current 'score' value).
|
||||
kingDanger = std::min(820, ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them])
|
||||
kingDanger = ei.kingAttackersCount[Them] * ei.kingAttackersWeight[Them]
|
||||
+ 103 * ei.kingAdjacentZoneAttacksCount[Them]
|
||||
+ 190 * popcount(undefended)
|
||||
+ 142 * (popcount(b) + !!pos.pinned_pieces(Us))
|
||||
|
|
Loading…
Add table
Reference in a new issue