Crumple Zone: Crash Test Dummy Simulator
README.md
unlockLadder test suite
Checks unlockLadder.ladder on a memory store (never a real player's progress):
- Levels and unlocks: level 1 → count + 1 as steps pass, the start set plus each passed step's reward,
unlockedBy, and the filled-inindex/reward/goal. - Goals and credit: the built-in
runkind and a custom one, an unknown kind never passing;credittries open unpassed steps in order, saves a met goal with the extra info, saves nothing for a failed one, tries the active step first (a re-pass isalready, no new unlocks), and credits nothing to a locked step. - Storage: done and prefs land under
<id>/done/and<id>/prefs/in the store and a new ladder on the same store reads them back. - README first example, run as written.
Run with zero tests run unlockLadder (edit mode).