Crumple Zone: Crash Test Dummy Simulator
README.md
crashSession test suite
Drives crashSession.session against a stand-in CrashRig (records every request, never spawns a car) with a
controllable clock and a memory-store ladder, so it never touches the live rig or a real player's progress:
- Set-up: the screen is shown and the idle rig is prepared with the default set-up; edits are debounced into one prepare and the speed clamps to 10..120; RUN TEST prepares first and runs once the rig is ready with that set-up; another player's set-up is followed; a locked pick is refused with a LOCKED toast naming the step; the shot list keeps 2..4 cameras; loading a protocol copies its set-up and prepares.
- Results: a matching result passes the active protocol (saved, reward unlocked, PASSED toast); an invalid
run is credited to nothing and its toast reads "Run invalid: <note>. Run it again."; the auto replay with
no recording falls back to the results with the camera on
all; NEXT TEST resets the rig;destroycleans up.
It leaves the real crash, cameras and replay to playing the game (or crashSession/examples/sessionDemo).
Run with zero tests run crashSession (edit mode).