Repository navigation
feat(tutorial): add the stopwatch stage - #107
Merged
Merged
Conversation
Stage 9 counts MM:SS, one second a time step while Start is ON, from four digits chained by Carry into Up: "One decimal digit" for M1 and S1, and a base-6 digit for M10 and S10. The base-6 digit is built like stage 8 but is not a stage of its own, so a stage can now hand over parts that no stage of the list builds. It starts with four Displays in a row with a colon, each fed by a 7seg below it, and is checked over 3604 time steps, through a pause and from 59:59 back to 00:00. Every stage now checks that the parts it hands over work and carry no display. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esponsive - The four numerals and the colon go side by side on one Display, from 7segs in column-major order joined by an Aggregate with the gaps and colon of one Const. The stage is lower, with its outputs closer together, so the first view no longer draws it small; a test now keeps every stage within a size. - Start is OFF only after 59:59 has gone back to 00:00, so the goal and play mode agree on time step 3600. - The step number field goes to a step only on Enter or when left, as every step up to it is simulated, and selects its text when clicked. - Check says it is checking and cannot be pressed again while a long check runs. - Wide tables scroll on their own, and the parts handed over without a stage are tied to their ids by type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a jump - The step field reads full-width digits, waits for the input method before Enter goes to the step, selects its text after the click, and goes no further than step 10000, as every step up to it is simulated and kept. - A check still waiting when the stage is reset or left is cancelled. - The Japanese first step of the stopwatch says, as the English does, that a base-6 digit carries after 5 as decimal does after 9. - The stopwatch's 7seg positions and display columns are each defined once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wide screens - The goals of stages 8 and 9 say what Check sees while it switches Up or Start, instead of listing time step numbers. - The stopwatch step on Count names which output each part goes to, and its goal also shows the steps around 01:00. - The column of stage texts grows with the screen, from 300 up to 400 wide, so that long texts and tables of many columns fit where there is room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At 1440 wide, 22% left the column barely wider than before, short of the stopwatch's goal table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with
|
| Latest commit: |
3ea608c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3438ad9b.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
| Branch Preview URL: | https://feat-stopwatch-stage.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
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
Stage 9 is the goal of the tutorial: a stopwatch that counts MM:SS on a display.
Testing
npx vitest run(271 tests),npx tsc -p .andnpx biome check srcpass. New tests cover:🤖 Generated with Claude Code