-
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 #394
Comments
Correct, it should be "v1 >= 0 || v1 < -100". 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!). The probing code of my private engine has the same typo / bug. |
official-stockfish#394 Credit and thanks to syzygy1 and lantonov !
Yes, 100 should be changed to -100: |
Thank you! But does Joonas explanation of the logic here |
I already gave an explanation on github.
To: official-stockfish/Stockfish Stockfish@noreply.github.com Thank you! But does Joonas explanation of the logic here |
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 syzygy. |
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
Fix pawn evaluation for horde with inverse colors
git-svn-id: file:///home/petero/vc/svnrepos/texel/trunk@545 4abc0a36-5a1e-4bec-8e7d-414f7125f69d
Clang found this.
which doesn't seem entirely intentional.
The text was updated successfully, but these errors were encountered: