Fuzz playtest
fuzzPlay 2D web games headlessly with random plausible inputs to find runtime errors, stuck states, and loops, returning explained, replayable scenarios for reproduction.
Instructions
Play the game headlessly with random but plausible input (movement keys held, action keys tapped) to find runtime errors, stuck states and back-and-forth loops. Each finding includes the explained error (kind, source-mapped file:line, hint) and repro: a scenario file that replays it exactly. Pass that file to run_scenarios to reproduce, then again after fixing to verify. The same seed gives the same inputs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | KeyboardEvent.code values to press. Default: arrows, WASD, Space, Enter, Z, X. | |
| root | No | Project root. Absolute path, or relative to the server's root. Default: the server's root. | |
| runs | No | Independent runs. Default 3. | |
| seed | No | Input seed; reuse it to repeat a run exactly. | |
| seconds | No | Simulated seconds of play per run. Default 60. |