Skip to content

feat(tutorial): make the steps hints that open on click, and give every stage one - #116

Merged
Rn86222 merged 6 commits into
mainfrom
feat/collapsible-steps
Nov 20, 2026
Merged

Rn86222 merged 6 commits into
mainfrom
feat/collapsible-steps

Conversation

@Rn86222

@Rn86222 Rn86222 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

With no explainer at the exhibition, a player stuck on stages 2 to 5 had nothing to turn to: those stages had no steps, and stage 5's only clue sat in its goal. The steps are now the hints, closed until the player asks for them, and the goals keep no explicit hints.

  • Hints: stages 2 to 5 each get a step that tells how to build the circuit (stage 2: Not on B, then And with A; stage 3: two "ON when only A is ON", one wired the other way round, joined by Or; stage 4: C with And, S with Xor; stage 5: the two adders and the Or joining their carries, moved out of the goal and completed). Each matches the stage's solution in stages.ts.
  • Opening and closing: from stage 2, the steps are closed at first and open by clicking their heading. While closed, a note under the heading says to open them when stuck, as "Steps" alone did not say they hold the way to build the circuit; clicking the note opens them too. Stage 1's steps teach how to use the editor rather than the circuit, so they are always shown.
  • Stage 6: its last step, on playing and hexadecimal, is no hint and stage 7's goal relies on it, so it moves to the goal, followed by the note on the table.

Testing

  • npx vitest run (308 tests), npx tsc -p . and npx biome check src pass. The existing tests check that the new texts mark the same values and controls in both languages and name only real pins, parts and titles. Opening and closing is drawn by React, which the tests do not cover.
  • In the browser: stage 1's steps, opening stage 2's steps by the heading and by the note, the hints of stages 3 and 5, and stage 6's goal.

🤖 Generated with Claude Code

Rn86222 and others added 6 commits November 21, 2026 03:50
…e goals free of hints

The steps are now the hints. Stages 2 to 5 had none, so a player stuck
there had nothing to turn to; each now has one that tells how to build
the circuit. Stage 5's goal told how to join the two adders, which
moves to its step along with the Or it left out. Stage 6's last step,
on playing and hexadecimal, is not a hint and stage 7 relies on it, so
it moves to the goal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The steps are closed at first, so that a player sees the hints only when
asking for them. The first stage's steps stay open, as they teach how to
use the editor rather than how to build the circuit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s table note next to the table

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the circuit

"Steps" alone did not tell a stuck player that the closed section holds
the way to build the circuit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… no hints

Closing them offered the note for a stuck player, which does not fit
steps that teach how to use the editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea9c22c
Status: ✅  Deploy successful!
Preview URL: https://ddcfa9fa.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev
Branch Preview URL: https://feat-collapsible-steps.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev

View logs

@Rn86222
Rn86222 merged commit 5b46535 into main Nov 20, 2026
2 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