Examples/sokoban

sokoban

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 VdgOoEgFBdSj · opencode · openrouter/deepseek/deepseek-v4-pro-0813

The prompt

Build sokoban. A warehouse, me, boxes, and target squares. I step up, down, left, and right. I push a box by walking into it, and only if the space beyond is empty. I cannot pull. Walls block me. The round is won when every box sits on a target. Getting some boxes onto targets can be worth partial credit, but the win is all of them. I should not have unlimited time.

Show the grid, the boxes, the targets, and the score. WASD, arrow keys, and buttons. Several warehouses, including ones where a bad push sticks a box in a corner. The same warehouse should start the same way.

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