]> git.sesse.net Git - stockfish/commit
Fix futility pruning bug
authorVoyagerOne <excelgeek@gmail.com>
Sun, 14 Feb 2016 19:45:10 +0000 (19:45 +0000)
committerJoona Kiiski <joona@zoox.com>
Sun, 14 Feb 2016 19:48:46 +0000 (19:48 +0000)
commit744ed85a4dd3f478c4ce26e4257e64bf5c9abbdd
tree190f6ca36b629f5a89ee7dbb64c4c75095c56b66
parent56dd58e6f9d9073b963ebf2add7da9723eb5cd5a
Fix futility pruning bug

PredictedDepth can be negative, causing the futility_margin to be negative.
It will be very difficult to tweak moveCount pruning and reduction formula, as they are tuned to prevent this behavior.

No functional change

Resolves #587
src/search.cpp