All prompts › Simulations & physics
Vehicles that wrap, collide, explode and restart
What it tests: State management: wrap-around movement, collision detection between moving objects, an explosion effect, then a clean full reset of the simulation loop.
Prompt length: 6,661 characters, roughly 1,670 tokens (estimate). Set a large context in your runner so the prompt and a long answer both fit. · Side-by-side outputs of local models (results pages linked in the repo README) ↗
Vehicle Collision & Restart Simulation **Goal:** Create a simulation demonstrating object movement, boundary wrapping, collision detection, simple visual effects, and state management for restarting the simulation loop. …
The source has no licence that allows copying, so only a short excerpt is shown here. The full prompt is one click away at the source.
How to grade it
Several vehicles move and wrap at the edges; a collision triggers an explosion at the contact point; once the explosion ends, the whole simulation resets and starts again, repeatedly, without leftover particles or doubled loops.
Scorecard tick what the model got right: 0/3
Runs in your browser; nothing is saved or sent.
Where models usually fail
The reset starts a second requestAnimationFrame loop each time, so it speeds up after every crash; collisions while wrapping across edges go unnoticed; the explosion never ends.
Running it
Made for local models via llama.cpp or KoboldCpp; the repo has a runner and side-by-side result pages.
Source
- Author
- David Harris (GitHub @electricazimuth)
- From
- LocalLLM_VisualCodeTest
- Exact file or post
- https://github.com/electricazimuth/LocalLLM_VisualCodeTest/blob/7e7004885221fafb8b1de360cacc2b8281cf934a/code_prompts/vehicles.md
- Licence
- No license file (all rights reserved)
- How we use it
- Excerpt only: open the full prompt at the source
Testing a local model? Check first whether it fits your hardware with Can I run this LLM?