docs: grade every DEEPEST problem, swap weak unpublished positions, published-by column - #32
Merged
Merged
Conversation
…published by" column Three weaknesses are detected for every position shown: the solution begins with a capture, the side to move is in check in the diagram, and the diagram has no legal last move -- decided exactly for one retraction (quiet moves, uncaptures of any piece, unpromotions with or without capture; en passant not retracted). Ranking, best first: flawless, check only, capture only, both; an illegal diagram is never offered as a replacement. An unpublished showcase position with a weakness is swapped for the best-ranked cleaner unique position of the same material and depth the tablebase offers (`replaced_from` keeps the original FEN); published positions stay, their sibling is chosen the same way. Result: 60 positions replaced; 121 of 234 still carry a weakness because nothing cleaner exists at that depth (33 in check, 20 capture, 66 both, 2 illegal: KQBBvk and KRBBvk, each a double check by queen/rook and bishop that no last move can produce, and each the only unique position at its depth). A remaining weakness is stated in a Note on the card and in the booklet. The index tables gain a "published by" column (`Sheglow (1998)`). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DFQB6YogM3gaauunTfMuxW
This file contains hidden or 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
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.
Summary
replaced_fromkeeps the original); published positions stay, their sibling is chosen the same way. Result: 60 positions replaced; 121 of 234 still carry a weakness because nothing cleaner exists at that depth (33 in check, 20 capture, 66 both, 2 illegal: KQBBvk and KRBBvk, double checks by queen/rook plus bishop that no last move can produce, each the only unique position at its depth). A remaining weakness is stated in a Note on the card and in the booklet.Sheglow (1998),Abdurahmanovic & Becker (2006)).published_problems.py, 12 minutes against~/tb).Test plan
tests/repo/test_published_problems.py(13): first-move capture and check detection; the exact last-move test on an immobile-white construct, its legal variant, opposite check, an uncapture-only case and an unpromotion; ranking and notes; published-by formatting; replacement of a weak entry; illegal candidates skipped on the FEN alone; second run is a no-optests/repo/test_deepest_render.py(88): index column present in both outputs, notes on cards and booklet entries, staleness checks passmake bookletbuilds; note and index pages checked visually;make lintclean🤖 Generated with Claude Code
https://claude.ai/code/session_01DFQB6YogM3gaauunTfMuxW