mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Simplify shelter: always do strength and danger
This check of pawns before subtracting danger can be removed. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 21174 W: 4361 L: 4239 D: 12574 http://tests.stockfishchess.org/tests/view/5b00b9f90ebc5914abc12680 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 56980 W: 8377 L: 8309 D: 40294 http://tests.stockfishchess.org/tests/view/5b00ca750ebc5914abc12683 Closes https://github.com/official-stockfish/Stockfish/pull/1607 Bench: 4746692
This commit is contained in:
parent
fd4585ef07
commit
335dc2d021
1 changed files with 2 additions and 2 deletions
|
@ -234,8 +234,8 @@ Value Entry::evaluate_shelter(const Position& pos, Square ksq) {
|
||||||
int d = std::min(f, ~f);
|
int d = std::min(f, ~f);
|
||||||
|
|
||||||
safety += ShelterStrength[d][ourRank];
|
safety += ShelterStrength[d][ourRank];
|
||||||
if (ourRank || theirRank)
|
safety -= StormDanger[ourRank && (ourRank == theirRank - 1) ? BlockedByPawn : UnBlocked]
|
||||||
safety -= StormDanger[ourRank && (ourRank == theirRank - 1) ? BlockedByPawn : UnBlocked][d][theirRank];
|
[d][theirRank];
|
||||||
}
|
}
|
||||||
|
|
||||||
return safety;
|
return safety;
|
||||||
|
|
Loading…
Add table
Reference in a new issue