]> git.sesse.net Git - stockfish/commit
Use stronglyProtected
author31m059 <37052095+31m059@users.noreply.github.com>
Sat, 15 Dec 2018 06:55:25 +0000 (01:55 -0500)
committerStéphane Nicolet <cassio@free.fr>
Sun, 16 Dec 2018 09:04:49 +0000 (10:04 +0100)
commit7240a90bf9be3f39f3ca4f34921dd644c5cebb3a
tree564181e5dcf95bca17adc1818e897055115aec74
parent64a6138d3736babad0f0d9758e3d0e5475f477dd
Use stronglyProtected

~stronglyProtected is quite similar to ~attackedBy[Them][PAWN] & ~attackedBy2[Them],
the only difference appears to be that the former includes squares attacked twice
by both sides. The resulting logic is simpler, and the change appears to be at least
Elo-neutral at both STC and LTC.

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 35924 W: 7978 L: 7885 D: 20061
http://tests.stockfishchess.org/tests/view/5c14a5c00ebc5902ba11ed72

LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 37078 W: 6125 L: 6030 D: 24923
http://tests.stockfishchess.org/tests/view/5c14ae880ebc5902ba11eed8

Bench: 3646542
src/evaluate.cpp