Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix rare crash on HT collisions
Due to a race, or even a collision (single threaded), the he.eval can be wrong. And so we cannot deduce that we are not in check by trusting this value. And, of course, doing a null move in check is a disaster, the opponent will capture our king, and the engine crashes soon after. Hopefully Demolito is now ready for 176 threads in TCEC without crashes :)
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters