Skip to content
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

Fix draw-by-repetition detection #42

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Fix draw-by-repetition detection #42

merged 1 commit into from
Aug 27, 2024

Conversation

bsamseth
Copy link
Owner

It would not count pre-root moves in the detection, meaning it only found repetitions in-search. This should hopefully cause a lot less draw-by-repetition in play tests, and less/no drawing in won positions.

@bsamseth bsamseth force-pushed the bug/draw-by-repetition branch 2 times, most recently from 8b302a5 to 4a93656 Compare August 24, 2024 09:28
It would not count pre-root moves in the detection, meaning it only
found repetitions in-search. This should hopefully cause a _lot_ less
draw-by-repetition in play tests, and less/no drawing in won positions.

Edit: Still a lot of draw-by-repetition in play tests. But spot-checking
them, they all make sense. Positions are entirely equal, and the side
with slightly less control semi-forces the repetition with checks. Time
will show if this still draws won positions. We probably get a lot of
repetition because the evaluation is so simple, and nobody knows how to
make progress in early endgames.
@bsamseth bsamseth force-pushed the bug/draw-by-repetition branch from 4a93656 to 3d0da07 Compare August 25, 2024 07:20
@bsamseth
Copy link
Owner Author

Testing with adjudication shows no difference. Without adjudication, this does make a significant difference.

Elo   | 22.45 +- 9.78 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | 2.96 (-2.94, 2.94) [0.00, 5.00]
Games | N: 2480 W: 772 L: 612 D: 1096
Penta | [65, 256, 479, 334, 106]
https://openbench.samseth.xyz/test/3/

@bsamseth bsamseth merged commit 8349c34 into main Aug 27, 2024
2 checks passed
@bsamseth bsamseth deleted the bug/draw-by-repetition branch August 27, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant