-
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
Don't score as an immediate draw 2-fold repetitions of the root position (fixes #948) #1126
Closed
Conversation
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
mcostalba
reviewed
May 27, 2017
src/position.cpp
Outdated
@@ -1103,7 +1103,7 @@ bool Position::is_draw(int ply) const { | |||
// repeats once earlier but after or at the root, or repeats twice | |||
// strictly before the root. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be updated.
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position. This gives correct scores for moves in the MultiPV > 1 mode. Fixes official-stockfish#948 (see it for the detailed description of the bug). LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b ELO: 0.38 +-1.7 (95%) LOS: 66.8% Total: 40000 W: 5166 L: 5122 D: 29712 STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 94622 W: 17059 L: 17064 D: 60499 LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61259 W: 7965 L: 7897 D: 45397 Bench: 6599721
OK, I've updated the comment. |
SapphireBrand
pushed a commit
to SapphireBrand/Stockfish
that referenced
this pull request
Jun 7, 2017
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position. This gives correct scores for moves in the MultiPV > 1 mode. Fixes official-stockfish#948 (see it for the detailed description of the bug). LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b ELO: 0.38 +-1.7 (95%) LOS: 66.8% Total: 40000 W: 5166 L: 5122 D: 29712 STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 94622 W: 17059 L: 17064 D: 60499 LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61259 W: 7965 L: 7897 D: 45397 Bench: 6599721 Closes official-stockfish#1126
SapphireBrand
pushed a commit
to SapphireBrand/Stockfish
that referenced
this pull request
Jun 8, 2017
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position. This gives correct scores for moves in the MultiPV > 1 mode. Fixes official-stockfish#948 (see it for the detailed description of the bug). LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b ELO: 0.38 +-1.7 (95%) LOS: 66.8% Total: 40000 W: 5166 L: 5122 D: 29712 STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 94622 W: 17059 L: 17064 D: 60499 LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61259 W: 7965 L: 7897 D: 45397 Bench: 6599721 Closes official-stockfish#1126
SapphireBrand
pushed a commit
to SapphireBrand/Stockfish
that referenced
this pull request
Jun 9, 2017
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position. This gives correct scores for moves in the MultiPV > 1 mode. Fixes official-stockfish#948 (see it for the detailed description of the bug). LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b ELO: 0.38 +-1.7 (95%) LOS: 66.8% Total: 40000 W: 5166 L: 5122 D: 29712 STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 94622 W: 17059 L: 17064 D: 60499 LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61259 W: 7965 L: 7897 D: 45397 Bench: 6599721 Closes official-stockfish#1126
atumanian
pushed a commit
to atumanian/Stockfish
that referenced
this pull request
Jan 24, 2018
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position. This gives correct scores for moves in the MultiPV > 1 mode. Fixes official-stockfish#948 (see it for the detailed description of the bug). LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b ELO: 0.38 +-1.7 (95%) LOS: 66.8% Total: 40000 W: 5166 L: 5122 D: 29712 STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 94622 W: 17059 L: 17064 D: 60499 LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 61259 W: 7965 L: 7897 D: 45397 Bench: 6599721 Closes official-stockfish#1126
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the current version a search stops when the current position is the same as any position earlier in the search stack, including the root position but excluding positions before the root. The new version makes an exception for repeating the root position.
This gives correct scores for moves in the MultiPV > 1 mode.
Fixes #948 (see it for the detailed description of the bug).
Idea by @saproj (see the original PR - #925)
LTC: http://tests.stockfishchess.org/tests/view/587910bc0ebc5915193f754b
ELO: 0.38 +-1.7 (95%) LOS: 66.8%
Total: 40000 W: 5166 L: 5122 D: 29712
STC: http://tests.stockfishchess.org/tests/view/5922e6230ebc59035df34a50
LLR: 2.94 (-2.94,2.94) [-3.00,1.00]
Total: 94622 W: 17059 L: 17064 D: 60499
LTC: http://tests.stockfishchess.org/tests/view/59273a000ebc59035df34c03
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 61259 W: 7965 L: 7897 D: 45397
Bench: 6599721