Examples/Welding game

Welding game

Created from a prompt

OpenCode (DeepSeek V4 Pro via OpenRouter) in a Vercel Sandbox. Starter only (AGENTS.md, serve.py, player/, helpers/dom/view_kit). No hardcoded demo code. Cursor did not edit workspace/.

2026-10-15 · task 0DbV6bXW6vfV · opencode · openrouter/deepseek/deepseek-v4-pro-0813

The prompt

Build a welding practice game. I hold a torch over a steel plate and drag it along a straight groove, about a hand's length, in about twenty seconds. The arc should only start if I put the torch in the groove first. While I drag, watch my travel speed. There is a target speed for the level. Staying near it scores. Going much too fast or too slow loses points. Wandering off the groove loses more. The bead behind the torch should look wider when I move slower, as if the wire is feeding at a constant rate.

At the end, show a score and a short verdict, the way a training machine would. Lifting off can end the run early. Show the plate, the groove, the torch, the bead, the target speed, and the score. Different levels ask for different speeds. The same level should ask for the same speed every time.

Live environment

Running the prompt-created workspace on this machine — not a mock. Save an episode, then open Replay below to scrub the timeline.

opening · 0 ms

Generated workspace

Exact files the agent wrote — not rewritten by hand.

# AI : shared Action contract — the page posts {"move": "..."}; keep this shape.
from pydantic import BaseModel


class Action(BaseModel):
    move: str