Skip to content

docs: grade every DEEPEST problem, swap weak unpublished positions, published-by column - #32

Merged
osick merged 1 commit into
mainfrom
docs/deepest-quality
Sep 13, 2026
Merged

osick merged 1 commit into
mainfrom
docs/deepest-quality

Conversation

@osick

@osick osick commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Every position shown is graded as a chess problem. Weaknesses: the solution begins with a capture (2a); the side to move is in check in the diagram (2b); the diagram has no legal last move (3), 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.
  • Weak unpublished showcase positions are swapped for the best-ranked cleaner unique position of the same material and depth the tablebase offers (replaced_from keeps 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.
  • Index tables in DEEPEST.md and the booklet gain a published by column (Sheglow (1998), Abdurahmanovic & Becker (2006)).
  • DEEPEST.json/.md/.tex/.pdf regenerated (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-op
  • tests/repo/test_deepest_render.py (88): index column present in both outputs, notes on cards and booklet entries, staleness checks pass
  • make booklet builds; note and index pages checked visually; make lint clean

🤖 Generated with Claude Code

https://claude.ai/code/session_01DFQB6YogM3gaauunTfMuxW

…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
@osick
osick merged commit 2dacb6f into main Sep 13, 2026
7 checks passed
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