Prompts used with Anthropic's Claude family of models.
24votes
2answers
2.8kviews

Output contract that makes the model write code future-me won't hate

My gripe isn't that AI code is wrong, it's that it is unmaintainable: 80-line functions, clever one-liners, no seams for testing, magic numbers everywhere. It passes review by looking confident. I sto
18votes
1answers
2.4kviews

Prompt for procedural roguelike dungeons that don't have unreachable rooms

Doing a small browser roguelike at 2am and the generated dungeons kept producing rooms with no doors or whole sections cut off from the start. Classic naive procedural gen. Asking for "random rooms an
14votes
1answers
2.0kviews

Asteroids prompt with real thrust inertia and screen wrap that doesn't pop

Wanted a proper Asteroids: momentum-based ship, thrust and rotation, bullets, splitting rocks. The tricky feel bits are the inertia (you drift, you don't stop instantly) and seamless screen wrap so ob