I built a multiplayer game where Claude can change the rules while you play
retained text
I built frenslop, a free multiplayer sandbox that runs in the browser, kind of like Garry's Mod. You and your friends join a shared world, and anyone can type a request like "add a giant bouncing cheese wheel" or "make gravity flip every 10 seconds." Claude writes that into the game live, so everyone in the lobby sees the change right away. What it does: * Multiplayer sandbox in the browser, with nothing to download * Anyone in the lobby can type a prompt to add objects, mechanics or rule changes * Changes sync to everyone in the session in real time * If something goes badly wrong, you can undo it or reset the world How the live editing works: When someone sends a prompt, the server sends it to Claude through the API, along with a snapshot of the current game state and docs for a small scripting API I wrote (spawning objects, setting physics, adding timers, hooking into player events). Claude replies with a JavaScript snippet that only uses that API. The game runs the snippet in a sandbox, so it can't touch anything outside the game, then hot-loads it into the session for every player without a restart. If the code throws an error, the change rolls back and the error goes back to Claude to fix. How I used Claude to build it: * I built most of the project with Claude Code, including the multiplayer sync, the physics/game loop, and the sandbox that runs the generated code * Claude helped me design the scripting API and the system prompt. Most of the work was iterating on those until Claude's changes stopped breaking the game every other prompt. * Honestly, I barely wrote any code myself. I mostly described what I wanted, playtested with friends, and pasted the bugs back into Claude Code. Try it free: [https://frenslop.io/](https://frenslop.io/) (it runs in the browser, so you don't need to download anything) The clip is my friends and me completely breaking it. Things got chaotic fast.
document fetched 2026-10-12 00:22 · canonical https://reddit.com/r/ClaudeAI/comments/1x2y04s/i_built_a_multiplayer_game_where_claude_can