Skip to content

docs(parts): describe every intrinsic part, and how to set its pins - #109

Merged
Rn86222 merged 4 commits into
mainfrom
docs/part-descriptions-display-7seg-andn-orn
Nov 20, 2026
Merged

Rn86222 merged 4 commits into
mainfrom
docs/part-descriptions-display-7seg-andn-orn

Conversation

@Rn86222

@Rn86222 Rn86222 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

AndN, OrN, 7seg, Display, Input and Output had no description, so the free mode's side panel showed no info button for them, and nothing told how to set the pins whose bit widths the player chooses.

  • Every intrinsic part is described. The messages' type now requires a description for each part type, so a part added later cannot be left without one.
    • AndN: "ON only when every bit of In is 1." OrN: "ON when any bit of In is 1."
    • 7seg: it turns the 4-bit In into the shape of a hexadecimal character; Out is a 28-bit picture 4 pixels wide and 7 high, with 1 for the character; the gear button sets its pixel order. It does not say where to connect Out, as Out can also be joined with others by an Aggregate, as in the stopwatch stage.
    • Display: while playing, it shows Pixels one bit per pixel, 1 black and 0 white, from the highest digit at the top left, row by row or column by column; the gear button sets the resolution and the pixel order.
    • Input and Output: each adds an input or output to the component it is placed in, which becomes a pin on the left or right where that component is placed as a part.
  • Pins whose bit width the player sets (Decompose, Aggregate, Broadcast, AndN and OrN) get a note under the description, made from the part's definition: the number in the pin is its number of bits, and it is changed by clicking the pin while editing, changing the field and pressing "Apply". Where pins can be split, each field added with "Add" becomes another pin. In Japanese the note says ビット数 rather than ビット幅, as Decompose and Aggregate are offered in stage 6, before stage 8 introduces ビット幅.
  • The other descriptions end with a full stop, as some now have several sentences. Decompose's now says which pins the digits go to, like Aggregate's.

Not in this PR

  • And, Or, Not and Xor are described by what they do with one bit; they work bit by bit on wider values. Their descriptions are shown from stage 1, before ビット is taught.
  • FlipFlop's "0 at the first time step" is written as a single 0 for any bit width.

Testing

  • npx vitest run (280 tests), npx tsc -p . and npx biome check src pass. New tests cover which pins get a note, and when it tells how to add pins.
  • In the browser, in English and Japanese:
    • the info popovers of the new parts, Decompose and Broadcast show the texts above and fit the 280-wide popover
    • stage 6's available parts show the notes under Decompose and Aggregate

🤖 Generated with Claude Code

Rn86222 and others added 4 commits November 20, 2026 21:39
AndN, OrN, 7seg, Display, Input and Output had no description, so the
side panel showed no info button for them. Every intrinsic part now has
one, which the messages' type requires. A part whose pin widths the
player sets also tells that the number in the pin is its bit count, that
clicking the pin changes it, and where pins can be added. The
descriptions end with a full stop, as some now have several sentences,
and Decompose's mirrors Aggregate's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Add" only adds a field, and the pin comes with "Apply", which the note
left out; pins can be clicked only while editing. Input's value is not
always changed by a click on it, as a wide value has an edit button.
The Japanese Input and Output texts no longer read as the part the
player placed, and Decompose's reads more naturally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Out can also be joined with others by an Aggregate before a Display, as
the stopwatch stage does.

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

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

Copy link
Copy Markdown

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

Latest commit: df3f409
Status: ✅  Deploy successful!
Preview URL: https://a8c428b6.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev
Branch Preview URL: https://docs-part-descriptions-displ.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev

View logs

@Rn86222
Rn86222 merged commit ba45638 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