LLM Test Prompts

All prompts › Simulations & physics

Real-time traffic simulation of a small town

Simulations & physicshardbuild testPrompt in Germansingle-file HTMLsimulationGerman

What it tests: A road network with intersections, vehicles routing to destinations, signals or priority rules, emergent jams, and user changes whose effects must show up live in the metrics.

Prompt length: 817 characters, roughly 230 tokens (estimate).

Erstelle eine interaktive Verkehrssimulation einer kleinen Stadt als eigenständige HTML-Datei. Die Simulation soll enthalten: - Straßennetz mit Kreuzungen - Fahrzeuge, die Ziele anfahren - Ampeln oder Vorfahrtsregeln - Staus und …

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

Vehicles follow roads to their targets and stop at signals; jams form and spread backwards; changing signal timing or closing a road visibly changes throughput, waiting time and hotspots; several vehicle types or priorities; an analysis mode that names the worst bottlenecks; stays smooth with many vehicles.

Scorecard tick what the model got right: 0/6

Runs in your browser; nothing is saved or sent.

0/6

Where models usually fail

Cars drive through each other or ignore lights; metrics that are random numbers; closing a road doesn't reroute anyone.

Running it

Run it one-shot and judge the first answer. Open the result exactly as delivered (double-click for HTML). Give the model a large output budget: long specs get cut off on small context settings.

Source

Author
Arnie (GitHub @Arnie936)
From
Arnie936 / llm-prompting-tests
Exact file or post
https://github.com/Arnie936/llm-prompting-tests/blob/03445cf074852ec5535ece9d123bdff442e63ef5/README.md#9-echtzeit-verkehrssimulation
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?

More in Simulations & physics