Skip to content

Drills: retry, skip the review, and a shuffled order - #462

Merged
ashtonanderson merged 1 commit into
mainfrom
claude/drill-retry-shuffle
Dec 3, 2026
Merged

ashtonanderson merged 1 commit into
mainfrom
claude/drill-retry-shuffle

Conversation

@ashtonanderson

Copy link
Copy Markdown
Member

From a player's feedback on Discord: reviews of long drills take a while, there was no way to retry a drill, and re-adding drills always started from the same place, so a large endgame category never got past its first few positions.

What changes

  • Retry: a Retry button during a drill, after it ends, and in the review window. It plays the same position again from the start and keeps the drill number. It replaces resetCurrentDrill, which nothing called and which started every drill from the normal opening position (wrong for endgames).
  • Skip review: the analysis notification on the drills page has a "Skip review" button. It stops the analysis and shows the drill's moves on the board with live analysis, plus Retry, Review (runs the full analysis if wanted after all) and Next Drill. Next Drill no longer runs the analysis before moving on.
    • A review still running stops when the drill is retried or left, so it can't open a stale review window.
    • A drill is logged to the backend once, even if its review is asked for after a skip.
  • Shuffled order: the queue is played in a random order, each drill once before any repeats (src/lib/drillOrder.ts). Before, it always began at the first position (King-Pawn has 600, and the 8-pawns one always came first).
  • New PostHog events: drill_retried, drill_review_skipped.
  • replay added to the Material Symbols subset (its test caught it).

Why reviews are slow

A short drill reviewed in about 5 s, since background analysis keeps up while you play. The wait grows with long drills played quickly: endgame drills have no move limit, and each position gets a depth-18 Stockfish pass over every legal move. The depth is unchanged here; skipping is the fast path.

Checks

  • Tried on the local dev server: random first position, Retry mid-drill and from the review, Skip review then Review, Next Drill.
  • npx tsc --noEmit, npm run lint, and all 672 tests pass.

🤖 Generated with Claude Code

From a player's feedback on Discord:

- Retry: plays the same drill again from its start, during a drill,
  after it ends, and from its review. Replaces resetCurrentDrill, which
  nothing called and which started every drill from the opening position.
- Skip review: the analysis notification's button stops the review and
  shows the drill's moves on the board, with Retry, Review (the analysis,
  if wanted after all) and Next Drill. Next Drill no longer runs the
  analysis first. A review left running stops when the drill is retried
  or left, and a drill is logged to the backend once.
- Order: the queue is played in a shuffled order, each drill once before
  any comes again (src/lib/drillOrder.ts). It used to start at the same
  place every time, so a category of 600 endgames began with the same
  few.

New events: drill_retried and drill_review_skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
maia-platform-frontend Ready Ready Preview Dec 3, 2026 11:48pm UTC

Request Review

@ashtonanderson
ashtonanderson merged commit 0d954da into main Dec 3, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 6e00db21 Deployed Dec 3, 2026 by vercel[bot]
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