Questions tagged [one-shot]
Post a PromptSingle-prompt builds: no follow-ups, one prompt in, working artifact out.
26 prompts
12votes
0answers
1.5kviews
Getting a local model to one-shot a Flappy clone with tuned, fair difficulty
I wanted to see how far a local open-weight model could get on a full playable game in one prompt, no follow-ups. Flappy Bird is a good test: simple, but the pipe gap and spacing tuning is what makes
26votes
3answers
6.5kviews
One-shot prompt for a dashboard data table that isn't the same shadcn gray boxes
Every dashboard prompt I tried gave me the identical gray-card-with-a-number-and-a-tiny-line-chart layout, and a table that was just a styled div with none of the behavior that makes a table useful. I
7votes
0answers
1.6kviews
Prompt that turns any CSV into an interactive explorable chart page
Drop a CSV in, get a self-contained exploration UI out. The prompt below produces a page that infers column types, picks sensible defaults, and lets you switch dimensions. I use it weekly for one-off
6votes
0answers
1.2kviews
Endless runner prompt with procedural obstacles that stay fair as speed ramps
Made a Canabalt-style one-button endless runner and the procedural obstacle spawner kept generating impossible sequences: two gaps back to back with no room to land, or a wall the instant you couldn't
37votes
3answers
4.1kviews
Seedable generative poster on canvas where the same seed always renders identically
I built a generative poster tool and the whole point was letting people share a seed so a friend gets the exact same artwork. First version used Math.random() everywhere, so of course nothing was repr
7votes
1answers
1.1kviews
What's the best prompt structure for getting Python scripts with proper error handling?
Every generated Python script I get is happy-path only: no retries, bare excepts, crashes on the first weird input. I've been experimenting with a checklist-style prompt suffix that forces defensive c
22votes
1answers
4.6kviews
How I prompt a platformer jump that feels like Celeste, not like a brick
The single biggest reason AI platformers feel bad is the jump. You get gravity, you get a jump impulse, and it's stiff and unforgiving. The magic is all the invisible assists that pro platformers ship
31votes
2answers
3.2kviews
One-shot prompt for a hero section that doesn't look like every other SaaS gradient
Every time I asked for a "modern SaaS hero" I got the exact same thing: centered headline, full-width purple gradient, a floating dashboard screenshot in fake browser chrome, and a three-emoji feature
11votes
2answers
2.2kviews
One-shot prompt for a subgrid card layout where every card's footer lines up
I kept getting card grids where the CTA button floated at a different height on every card because each card is its own grid. The naive prompt ("responsive card grid with title, body, button") always
22votes
2answers
3.2kviews
One-shot three.js hyperspace starfield that stays 60fps on a laptop trackpad
I wanted the classic warp-speed starfield but every naive attempt spawned 20k separate Mesh objects and my fans took off. The trick was forcing the model to reach for InstancedMesh (or a single Points
22votes
2answers
4.1kviews
One-shot prompt that scaffolds a Next.js 14 App Router SaaS that actually compiles
I kept asking for "a Next.js SaaS starter" and getting a pile of files that referenced components that didn't exist, mixed the pages and app routers, and threw 40 type errors on first pnpm build. The
21votes
0answers
4.2kviews
Three.js solar system with orbit controls from a single prompt - sharing what finally worked
Getting a correct-feeling solar system out of one prompt is surprisingly hard: you either get planets orbiting at the same speed or a camera stuck inside the sun. This prompt gets the scale relationsh
28votes
1answers
3.2kviews
Prompt for a Snake game that actually feels juicy, not just a grid crawler
Every AI-generated Snake I've seen is technically correct and completely lifeless: a square that jumps one cell per tick with zero feedback. I wanted the arcade-cabinet feeling in a single HTML file.
12votes
1answers
2.3kviews
One-shot prompt for a Rust + wasm image filter module wired into a web app cleanly
I wanted a real Rust-to-WASM module doing per-pixel work off the main thread, not a toy that ships 4MB of glue and blocks the UI on load. Most prompts gave me code that assumed a specific bundler and
21votes
1answers
2.8kviews
Accessible hover and focus states in one prompt, with a banned-patterns list
The recurring failure: models give me pretty hover effects that vanish for keyboard users, remove the focus outline "because it's ugly", or convey state with color alone. I got tired of fixing the sam