Repository navigation
feat: 'Answer with coin pictures' option for US currency worksheets - #37
Merged
Merged
Conversation
Sidebar checkbox (#coinAnswers, shown only for the US currency type) that turns subtraction and make-change answers into a write-in row of coin pictures — one of each denomination with a x ___ box — so the child shows the answer as a coin combination. - Bills ($1/$5) join the row at Grade 3+ (subtraction reaches $9.99 there); Grade 2 stays coins-only. - Answer key fills the boxes with the fewest-coins breakdown (greedy, optimal for US denominations) and notes any combination with the correct total is correct; worksheet gets a one-line instruction. - genMixed strips coinAnswers (sets it false) so a checkbox left checked while the control is hidden can't change mixed-review output. - coinSVG/billSVG gain an optional scale param (row uses 0.55) so the default 12-problem sheet keeps its footprint. - Easy difficulty unaffected (count-only, as before). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
What
Adds Option A + C from the coin-visual discussion: a sidebar checkbox — Answer with coin pictures — visible only when the US currency worksheet type is selected. When on, subtraction (
$a − $b =) and make-change problems replace the blank answer line with a write-in row of coin pictures: one of each denomination followed by a× ___box, so the child expresses the answer as a coin combination.Total: $______) so the child computes the difference first, then represents it in coins.genMixedstripscoinAnswers— the checkbox is invisible on mixed review, so a stale checked state can't change mixed output (WYSIWYG).coinSVG/billSVGgain an optionalscaleparam (row renders at 0.55×, viewBox untouched) to keep the default 12-problem sheet compact.Docs (same-PR rule)
CHANGELOG.md— Unreleased → Added entry. No TYPE_META change, so the wizard needs nothing (it reads TYPE_META live).Testing
node --check generator.js app.js(the CI gate) passes.Notes (non-blocking)
🤖 Generated with Claude Code