STC crazyhouse
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 7305 W: 3696 L: 3490 D: 119
http://35.161.250.236:6543/tests/view/
5b8a5c546e23db0fbab0dd0f
int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b), pos.max_rank()) : 0;
int d = std::min(f, ~f);
- safety += ShelterStrength[d][ourRank];
+ // higher weight for pawns on second rank and missing shelter in drop variants
+ safety += ShelterStrength[d][ourRank] * (1 + (pos.captures_to_hand() && ourRank <= RANK_2));
safety -= (ourRank && (ourRank == theirRank - 1)) ? BlockedStorm[theirRank]
: UnblockedStorm[d][theirRank];
}