]> git.sesse.net Git - stockfish/commit
Correctly reset bestMoveChanges
authorbmc4 <bmc4@cin.ufpe.br>
Mon, 29 Nov 2021 17:51:35 +0000 (14:51 -0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 1 Dec 2021 17:22:44 +0000 (18:22 +0100)
commitc1f9a359e8e319d832ee5a55277dab996dd29d25
tree01f613dbd1b1dc4b03ddc9ae233c73f5c4109b44
parent95a2ac1e073a6f7c3af8aeef2fc4fe8cbd6650cf
Correctly reset bestMoveChanges

for searches not using time management (e.g. analysis, fixed node game play etc),
bestMoveChanges was not reset during search iterations. As LMR uses this quantity,
search was somewhat weaker.

Tested using fixed node playing games:
```
./c-chess-cli -each nodes=10000 option.Hash=16 -engine cmd=../Stockfish/src/fix -engine cmd=../Stockfish/src/master -concurrency 6 -openings file=../books/UHO_XXL_+0.90_+1.19.epd -games 10000
Score of Stockfish Fix vs Stockfish Master: 3187 - 3028 - 3785  [0.508] 10000

./c-chess-cli -each nodes=30000 option.Hash=16 -engine cmd=../Stockfish/src/fix -engine cmd=../Stockfish/src/master -concurrency 6 -openings file=../books/UHO_XXL_+0.90_+1.19.epd -games 10000
Score of Stockfish Fix vs Stockfish Master: 2946 - 2834 - 4220  [0.506] 10000
```

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

bench: 5061979
src/search.cpp