]> git.sesse.net Git - stockfish/commit
Allow RQ through pieces. Bench: 3415326 (#2153)
author31m059 <37052095+31m059@users.noreply.github.com>
Fri, 17 May 2019 11:38:23 +0000 (07:38 -0400)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Fri, 17 May 2019 11:38:23 +0000 (13:38 +0200)
commitbf6b647a1afd0bfa25ee627622824a3ecb666c5d
tree44c4f73acdf99f4b9d46b80225fa695749766750
parent2985a6b5d7be8b813da528886ff11265bfac449b
Allow RQ through pieces. Bench: 3415326 (#2153)

We evaluate defended and unsafe squares for a passed pawn push based on friendly and enemy rooks and queens on the passed pawn's file. Prior to this patch, we further required that these rooks and queens be able to directly attack the passed pawn. However, this restriction appears unnecessary and worth almost exactly 0 Elo at LTC.

The simplified code allows rooks and queens to attack/defend the passed pawn through other pieces of either color.

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 29019 W: 6488 L: 6381 D: 16150
http://tests.stockfishchess.org/tests/view/5cdcf7270ebc5925cf05d30c

LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 54224 W: 9200 L: 9133 D: 35891
http://tests.stockfishchess.org/tests/view/5cddc6210ebc5925cf05eca3

Bench: 3415326
src/evaluate.cpp