Repository navigation
[rpg-character] Ship a roster of every named character and the combination count - #1034
Merged
Merged
Conversation
…ation count - characters.png and CHARACTERS.md show all 65 presets, with each one's default pieces and code. - demo/characters.html shows the same roster live, built from the element's presets and labels, and the main demo links to it. - scripts/roster.mjs regenerates the image and the list, and recomputes the combination count from the code registry. - The README gains "Named characters" and "How many characters are there?" sections, with the formula: 60,890,117,571,360,000 different-looking characters, 66 million from a seed alone, and 2.4 x 10^20 possible codes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PfFvVQhHTESEgN7TuVPB8U
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 this touches
Only rpg-character. It adds docs, demo and a script, with no runtime code changes.
characters.png: all 65 named characters (presets), rendered by the real element and labeled. It ships with the package.CHARACTERS.md: the image plus a table of every character: label,presetvalue, default pieces and code. It also has a "How many characters?" summary.demo/characters.html: the same roster live. It is built from the element'spresetsand the haxProperties labels, so new presets appear automatically. The main demo links to it from "Character types".scripts/roster.mjs: regeneratescharacters.pngandCHARACTERS.mdagainstyarn start. It recomputes the combination count fromcodeSlotsandposeArt, so the number stays current as options are added.The count
Every visual choice is independent, so the count is a product. Each factor is the number of different ways that part can be drawn, after taking the render rules into account:
hat="random"Checks
yarn test: 91/91.node scripts/precheck.mjs: PASSED. eslint is clean onroster.mjs.demo/characters.htmlwas checked in a real browser: 65 characters and no errors.Generated by Claude Code