Build a Playable Mobile Game Directly Inside Claude
How toAgents & ToolsSuperhuman · 4h ago

Build a Playable Mobile Game Directly Inside Claude

Follow these steps to create, test, and share a fully functional mobile browser game using Claude code execution features without needing complex local tools.

Try it yourself

  1. 1Open Claude on the web, choose the Opus 5.5 model, and enable code execution features in settings.
  2. 2Start a chat and prompt the model with a clear, basic game concept designed for mobile screens.
  3. 3Request that Claude generate the result inside an interactive Artifact component.
  4. 4Test the complete gameplay loop inside your browser to verify controls, scoring, and restart features.
  5. 5Open the same Artifact on your mobile device to test touch sensitivity, button scaling, and performance.
  6. 6Ask Claude to apply visual fixes, difficulty scaling, or sound options based on your mobile test.
  7. 7Generate a public share link from the working Artifact to let others play your new game.

Copy this prompt

Build a mobile-friendly browser game called [GAME NAME]. The player should [CORE MECHANIC]. Use large touch controls, responsive portrait layout, a score counter, restart button, increasing difficulty, simple animations, and clear win or lose states. Make it playable entirely inside a Claude Artifact with no external setup. Keep the code lightweight and optimized for phone screens.
Anthropic
Read the original