Repository navigation
Drills: retry, skip the review, and a shuffled order - #462
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
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
resetCurrentDrill, which nothing called and which started every drill from the normal opening position (wrong for endgames).src/lib/drillOrder.ts). Before, it always began at the first position (King-Pawn has 600, and the 8-pawns one always came first).drill_retried,drill_review_skipped.replayadded 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
npx tsc --noEmit,npm run lint, and all 672 tests pass.🤖 Generated with Claude Code