]> git.sesse.net Git - stockfish/commit
Simplify kingRing
authorprotonspring <mike@whiteley.org>
Thu, 31 Oct 2019 15:01:33 +0000 (09:01 -0600)
committerStéphane Nicolet <cassio@free.fr>
Thu, 31 Oct 2019 16:47:23 +0000 (17:47 +0100)
commite8fca713424e814756e2db4a7195f69fdb669c2a
tree3d55b6f03a8510501818ec90a1ea3ee4d2ffa196
parent6f3796adaf44c48cf1353181d386a61a57859b67
Simplify kingRing

Simplify the king ring initialization and make it more regular, by just
moving the king square off the edges and using PseudoAttacks by king from
this new square.

There is a small functional difference from the previous master, as the
old master excludes the original ksq square while this patch always includes
the nine squares block (after moving the king from the edges). Additionally,
master does not adjust the kingRing down if we are on relative rank 8,
while this patch treats all of the edges the same.

STC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 13263 W: 2968 L: 2830 D: 7465
http://tests.stockfishchess.org/tests/view/5db872830ebc5902d1f388aa

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 72996 W: 11819 L: 11780 D: 49397
http://tests.stockfishchess.org/tests/view/5db899c20ebc5902d1f38b5e

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

Bench: 4959244
src/evaluate.cpp