Skip to content

fix: write part tables in ON and OFF everywhere, and say how a Const's value is set - #114

Merged
Rn86222 merged 3 commits into
mainfrom
fix/const-description
Nov 20, 2026
Merged

Rn86222 merged 3 commits into
mainfrom
fix/const-description

Conversation

@Rn86222

@Rn86222 Rn86222 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Part tables: the truth tables of built-in parts (And, Or, False and so on, in the ⓘ and under "Available parts") followed the stage, so they turned to 1 and 0 from stage 4. Their texts and the editor still say ON and OFF, and the same part showed ON and OFF in the free mode and stages 1 to 3. They now always write ON and OFF, as the editor shows a one-bit value.
    • Only the tables of the stages' circuits (the goal table, and the circuits handed over from earlier stages) write 1 and 0 from stage 4, as they are read as numbers. Stage 4's text and the legend under the goal table now name these tables, instead of "the tables".
  • Const: "Always outputs the value written in it" did not say where the value is written, that it takes effect only on "Apply", or how many bits the output has. The description now says all three, and stage 7's step says "the value set in its box".
  • The English pin notes call the pin editor's inputs "boxes", as the stage texts do.

Not in this PR

  • Showing the legend under the tables of handed-over circuits too. From stage 5, "Available parts" puts a built-in part's table (ON and OFF) next to a handed-over circuit's table (1 and 0), and only the legend under the goal table tells why.

Testing

  • npx vitest run (308 tests), npx tsc -p . and npx biome check src pass. Which notation a table uses is drawn by React, which the tests do not cover.
  • In the browser: "Available parts" and the ⓘ of Or in stage 5, the legend, and the Const description in stage 7.

🤖 Generated with Claude Code

Rn86222 and others added 3 commits November 21, 2026 02:08
…how many bits it has

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A part's table followed the stage, so it turned to 1 and 0 from stage 4
while its text and the editor still say ON and OFF, and the same part
showed differently in the free mode. Only the stage tables, which are
read as numbers, now write 1 and 0, and stage 4 and the legend say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…value set in its box

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: 6496f7f
Status: ✅  Deploy successful!
Preview URL: https://3544fda8.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev
Branch Preview URL: https://fix-const-description.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev

View logs

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