Remove condition for pawn threats
authorprotonspring <mike@whiteley.org>
Thu, 26 Jul 2018 07:34:14 +0000 (09:34 +0200)
committerStéphane Nicolet <cassio@free.fr>
Thu, 26 Jul 2018 07:34:22 +0000 (09:34 +0200)
commit2660a9145ef23bb51daa4aa35ff502c5f935c9aa
tree549460b329f94e1e3646802ae083153160dbe6bd
parenta4eda3056ef7f6f69ae15925255621cb32443de9
Remove condition for pawn threats

It appears as though removing squares that are already attacked
by our pawns can be removed.

STC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 51242 W: 11503 L: 11440 D: 28299
http://tests.stockfishchess.org/tests/view/5b58b5a40ebc5902bdb88f52

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 35246 W: 6063 L: 5966 D: 23217
http://tests.stockfishchess.org/tests/view/5b58f8e20ebc5902bdb8959b

How to continue after this patch: there is now a slight semantic
overlap between the ThreatByPawnPush and the ThreatBySafePawn bonuses,
so hand-tuning either of these, or both at the same time, is natural.

Closes https://github.com/official-stockfish/Stockfish/pull/1702

Bench 4734881
src/evaluate.cpp