]> git.sesse.net Git - stockfish/commit - src/search.cpp
Simplify statScore initialization
authorMichael Chaly <Vizvezdenec@gmail.com>
Fri, 24 Mar 2023 04:45:22 +0000 (07:45 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 25 Mar 2023 08:22:25 +0000 (09:22 +0100)
commit1b5738e0c958ac8d3d140a3d182b85f8c0c0cd2c
tree55cb1a01b24b0c78b08184da991d9ba04e38c27f
parentb973e40e45d75c3b3391141d149d4186494d4652
Simplify statScore initialization

This patch simplifies initialization of statScore to "always set it up to 0" instead of setting it up to 0 two plies deeper.
Reason for why it was done in previous way partially was because of LMR usage of previous statScore which was simplified long time ago so it makes sense to make in more simple there.

Passed STC:
https://tests.stockfishchess.org/tests/view/641a86d1db43ab2ba6f7b31d
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 115648 W: 30895 L: 30764 D: 53989
Ptnml(0-2): 368, 12741, 31473, 12876, 366

Passed LTC:
https://tests.stockfishchess.org/tests/view/641b1c31db43ab2ba6f7d17a
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 175576 W: 47122 L: 47062 D: 81392
Ptnml(0-2): 91, 17077, 53390, 17141, 89

closes https://github.com/official-stockfish/Stockfish/pull/4460

bench 5081969
src/search.cpp