Repository navigation
Darts: a second aiming control with two sweeping lines - #373
Merged
Merged
Conversation
An upright line sweeps across the board and a tap (or Space/Enter)
stops it; a level line then sweeps and a second tap stops it, and the
dart flies to where they cross, with the same release scatter as the
drag control. A switch above the board ("Aim: Drag / Two lines") changes
the control at once, in every mode and the daily, and is kept in prefs.
The lines move at an even speed (E.sweep) from a random start each
time, 1.15 board radii each side in 1.3 s: a 45 ms late tap is about
0.08 off, close to the drag control's wobble. Lines are clipped to the
round board.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VoRrYWfb9CHLaEtJPXc4HH
Contributor
Author
|
Diff review: the new control lives entirely beside the old one. |
This was referenced Oct 20, 2026
Closed
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.
Closes #372
What changed (
www/games/darts/index.html,tools/test.js)sweep(u), an even back-and-forth from -1 to 1.SCATTERas before. A badge above the board switches between Drag and Two lines at once, mid-turn too; it is saved inprefs.aim(default drag, so nobody's game changes). The daily shows it as well.Proof
node tools/test.js: 4211 checks green. With main'sdarts/index.htmland the new tests: 6 failures (sweep, reach, saved switch, tap/Space path, switch in the daily, and the check count).tools/browser-check.sh: 36 of 36 pages.Not tested