Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We can never have bestValue == -VALUE_INFINITE at the end of move loop because if no legal move exists we detect it with previous condition on !moveCount, if a legal move exists we never prune it due to futility pruning condition: bestValue > VALUE_MATED_IN_MAX_PLY So this code never executes, as I have also verified directly. Issue reported by Joona. No functional change.
- Loading branch information