-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlapping comparison in syzygy #415
Conversation
official-stockfish#394 Credit and thanks to syzygy1 and lantonov !
So, did I get this right? v = value without ep capture being considered The correct logic is: If you can confirm this, then I'm happy to approve this patch. |
@joona |
Joona's logic is correct. See also my explanation in #394. |
Below is the RdM's explanation for "cursed win" and "cursed loss" in syzygy which are indeed connected with the 50-move rule. "Anyway, this is all not a problem for my tablebases. If the engine wants to ignore the 50-move rule for tablebase positions, it can ignore the 50-move rule when using my tablebases. This is because my tablebases do not store a draw by the 50-move rule as a draw, but as a "cursed win" or "cursed loss". The engine can simply treat "cursed wins" as real wins and "cursed losses" as real losses. Or it can honor the 50-move rule and treat both of them as draws. Or it can bluff and treat cursed wins by the engine as wins and cursed losses as draws." So, RdM's explanation for what this patch does: "This is part of en passant handling. v1 is the DTZ score after the en passant capture, v is the DTZ score of the position assuming no ep is possible (the tables don't store en passant positions). The code then takes the "best" of v and v1 (unless the position without ep is stalemate!). is indeed correctly understood by Joona who describes it more clearly. I wanted to test this patch on the framework but it does not test syzygy at present. Another option is to find positions close to endgame that include en passant moves and test with or w/o the patch. |
Okay, thx for everybody for their explanations. I approve this patch. |
v = value without ep capture being considered v1 = value of the ep capture The correct logic is: if without e.p. capture we are losing, and the value of e.p is either draw, or win or "loss, but 50 move rule saves us", then we should use the value of ep capture. Credit and thanks to syzygy1 and lantonov ! No functional change (except with syzygy bases) Resolves official-stockfish#415 Resolves official-stockfish#394
Tweak NMP verification search for giveaway chess
Fix for issue
#394
Credit and thanks to syzygy1 and lantonov !