]> git.sesse.net Git - stockfish/commit
Simplify stats assignment for Pv nodes
authorMichael Chaly <Vizvezdenec@gmail.com>
Tue, 11 Apr 2023 16:53:36 +0000 (19:53 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 12 Apr 2023 18:45:34 +0000 (20:45 +0200)
commitacb0d204d56e16398c58822df2cc60b90ef1ae85
tree20e134e292a4971777301a920f98627bdb996610
parent9829bceda90d025a5f5d7c04457902413e367041
Simplify stats assignment for Pv nodes

This patch is a simplification of my recent elo gainer.
Logically the Elo gainer didn't make much sense and this patch simplifies it into smth more logical.
Instead of assigning negative bonuses to all non-first moves that enter PV nodes
we assign positive bonuses in full depth search after LMR only for moves that
will result in a fail high - thus not assigning positive bonuses
for moves that will go to pv search - so doing "almost" the same as we do in master now for them.
Logic differs for some other moves, though, but this removes some lines of code.

Passed STC:
https://tests.stockfishchess.org/tests/view/642cf5cf77ff3301150dc5ec
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 409320 W: 109124 L: 109308 D: 190888
Ptnml(0-2): 1149, 45385, 111751, 45251, 1124

Passed LTC:
https://tests.stockfishchess.org/tests/view/642fe75d20eb941419bde200
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 260336 W: 70280 L: 70303 D: 119753
Ptnml(0-2): 99, 25236, 79528, 25199, 106

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

Bench:  4286815
src/search.cpp