WikiWayne
Local AIWikiBenchGamesPrompt LabGrok BotAI ToolsTech NewsAboutBlogContact

As an Amazon Associate I earn from qualifying purchases. This site contains affiliate links.

WikiWayne

Independent notes on local AI, real hardware, Grok, and the games that come out of that stack.

Categories

  • Local AI Hub
  • Local AI Glossary
  • Local AI
  • AI Tools
  • Tech News

Quick Links

  • About Wayne
  • Games
  • Grok Bot
  • Contact
  • Links
  • ADHD MaxxxingSponsored
  • WikiBench
  • Methodology
  • Editorial Standards
  • Disclosures
  • Privacy Policy
  • Sitemap

Follow on X

Hardware, local models, Grok, and what I actually ship.

Follow @wikiwayne
WikiWayne© 2026
PrivacyWikiBenchMethodologyEditorialDisclosuresTermsSitemap
Home/Prompt Lab/Marble Run Machine

Marble Run Machine

PL-065HardMachinesThree.js

A 3D marble run with real physics: 20 to 40 colliding marbles, a looping elevator, shadows, orbit and touch controls, and exact counters.

Marble Run Machine preview
Download fileMade for ChatGPT, Claude, Gemini, Grok and other AI tools

How to run

  1. Download the file or copy the prompt.
  2. Upload or paste it into any AI chat or coding tool, and send.
  3. Save the HTML it gives you as a file and open it in Chrome.

What it tests

A 3D marble run with real physics: 20 to 40 colliding marbles, a looping elevator, shadows, orbit and touch controls, and exact counters.

The checks

  1. No marble falls through or clips into the track
  2. The elevator loops
  3. The funnel swirls the marbles and counters stay honest
  4. Smooth frame rate with shadows, and touch orbit works on a phone

Runs by model

7 models tried this prompt on a first try; 1 passed. Showing 4.

  • swe-2-mediumvia Devin CLI2026-11-07First tryTest rig (automatic)Pass60 fps
  • swe-2-flash-highvia Devin CLI2026-11-06First tryTest rig (automatic)Fail

    No code came back.

  • swe-2-flash-maxvia Devin CLI2026-11-06First tryTest rig (automatic)Fail

    No code came back.

  • swe-2-flash-mediumvia Devin CLI2026-11-06First tryTest rig (automatic)Fail

    A script error stopped the page from starting.

Show the full prompt
Build "Marble Run Machine": a 3D marble run in a single HTML file using Three.js (from a CDN) with real physics (cannon-es from a CDN, or your own physics code).

SCENE
- Low-poly toy style. Warm beige background #f3e9d2, soft shadows, one directional light plus one ambient light. Shadows must be visible under every track piece and marble.
- A tower 6 m tall built from at least 5 track pieces: 2 zig-zag ramps, 1 spiral, 1 funnel, and 1 elevator lift that carries marbles from the bottom back to the top.
- 20 marbles, radius 0.15 m, each one of these 5 colors: #e63946 #f4a261 #2a9d8f #457b9d #9b5de5 (4 of each). Use seed 65 for any randomness.

PHYSICS (the hard part)
- Marbles roll down the track, collide with each other and the walls, and never pass through the track or fall off the tower. If a marble falls below y = -1, it counts as a FAIL. Do not respawn it to hide this.
- The elevator really lifts marbles back to the top, so the run loops forever.
- Marbles in the funnel visibly swirl around at least once before dropping through.

CONTROLS AND UI
- Orbit camera: drag to rotate, scroll or pinch to zoom, and it works on iPhone touch.
- Button "Drop marble" adds one marble at the top (max 40). Button "Slow-mo" toggles half speed.
- Top-left panel in 16px white text on a dark semi-transparent box: "Marbles: N" (always equals the marbles in the scene), "Loops: N" (goes up by 1 only when a marble enters the elevator), "FPS: N".
- The panel must be readable in a frozen frame.

RULES FOR EVERY BUILD
- Output ONE self-contained file named index.html: inline CSS and JS, any library only from a public CDN, no other files, no build step. Add <link rel="icon" href="data:,"> so there is no favicon 404.
- It must open straight from disk in desktop Chrome and on an iPhone in Safari, fill the screen, and resize cleanly with no scrollbars.
- Zero console errors or warnings on load and while interacting.
- Animation runs on requestAnimationFrame and stays smooth (about 60fps on a laptop).

WORK LOOP (do this yourself before answering)
1. Build the file.
2. If you can run code, open it in a browser, read the console, take screenshots at 3 s and 6 s, and test the interactions. If you can't run code, mentally trace the code against the checklist line by line.
3. Mark every checklist item PASS or FAIL. Mark PASS only when it is visibly true on screen, not just present in the code.
4. Fix every FAIL and recheck. Repeat until all items pass.
5. Final answer: the complete index.html in ONE code block, output once, then the checklist with PASS/FAIL. Nothing else.

Built one? Post it on X and tag @wikiwaynePost on X

More Hard prompts

Fourier Scribe

HardCharts & maps
PL-1691 run

Fresnel Beacon

HardMachines
PL-1681 run

Turing Reef

HardGenerative art
PL-1671 run

More Machines prompts

Electric Roadster

MediumMachines
PL-0744 runs

Fresnel Beacon

HardMachines
PL-1681 run

Coin Dozer Royale

HardMachines
PL-1591 run