<< Home | Tech
Built a web game with over 25K plays
| Area | Tech |
| AI used | Claude |
| Source | r/ClaudeAI |
| Posted | 2026-07-15 |
The move
Use an AI to generate the code structure and logic for a single-file web application.Steps
- Define the core game mechanics and rules for your project.
- Ask the AI to generate the code structure for a single-file HTML application.
- Iterate with the AI to refine game logic, tone, and edge cases.
- Deploy the code to a simple hosting platform like Cloudflare Workers.
Prompt for your AI
Write the code for a single-file HTML game where [describe game mechanics]. Include logic for [specific feature, e.g., scoring or data handling] and ensure the tone is [describe tone].
What happened
The creator wanted to build a game to settle an argument about market timing. They used Claude to write the code for a game where players trade S&P 500 data against a passive 'couch' strategy. The resulting game has received over 25,000 plays.Watch out
Single-file HTML games may be vulnerable to users viewing the source code to cheat. Ensure your game logic accounts for potential data manipulation if competitive fairness is required.Give it to your agent
Read https://howtheyuse.ai/p/built-a-web-game-with-over-25k-plays.md and help me do this.