]> git.sesse.net Git - stockfish/commit - src/syzygy/tbprobe.cpp
Fix a rare case of wrong TB ranking
authorJ. Oster <osterj165@googlemail.com>
Mon, 14 Jun 2021 15:28:30 +0000 (17:28 +0200)
committerJ. Oster <osterj165@googlemail.com>
Mon, 14 Jun 2021 15:28:30 +0000 (17:28 +0200)
commit4c4e104cadceae678668f1738b5ca6296b2b4ef8
tree01d7da80622d8306e64d716bc2e312e8e9f1871b
parent900f249f596417b35129f1dc357cd5392018e575
Fix a rare case of wrong TB ranking
of a root move leading to a 3-fold repetition.
With this small fix a draw ranking and thus a draw score is being applied.
This works for both, ranking by dtz or wdl tables.

Fixes https://github.com/official-stockfish/Stockfish/issues/3542

(No functional change without TBs.)
Bench: 4877339
src/syzygy/tbprobe.cpp