Repository navigation
feat: describe the basic parts, and write a bit as ON or OFF everywhere - #98
Merged
Merged
Conversation
…the side panel A visitor who knows no logic cannot tell what And or Xor does from the name. Each gate now has a one-line summary in English and Japanese, and a truth table computed by running its definition, so it always matches how the part behaves. A stage lists its parts this way below Check, and the side panel opens the same description from an info button on each part that has one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The truth tables and the check's messages said オン and オフ in Japanese while the nodes in play mode said ON and OFF. One function now labels a bit for all of them. From the review: OR is described as on when at least one input is on, so it is not read as XOR; a stage lists the parts it lets the player use; a part with no inputs gets no divider; the info button and its popover are announced as a dialog; and tests cover parts that get no table and asking any part for one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They sat right above tables and next to nodes that say ON and OFF, so the same value read two ways. 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: |
e8355ae
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://727c60be.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
| Branch Preview URL: | https://feat-part-descriptions.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
A visitor who knows nothing about logic cannot tell what And or Xor does from its name. This PR adds short descriptions of the basic parts and shows them where the parts are chosen.
Not in this PR
The other parts (Input, Output, Const, Aggregate, Decompose, Broadcast, AndN, OrN, FlipFlop, Display, 7seg) have no description yet. Most of them need an idea taught first, such as bit width or time steps, so each will be described together with the stage that introduces it. Parts a table cannot show will need examples instead, which will be added then.
Testing
npx vitest run(178 tests),npx tsc -p .andnpx biome check srcpass. New tests cover:🤖 Generated with Claude Code