Examples/stockfish

stockfish

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

The prompt

Build a chess judging game, not a game where I move pieces. Show one position. White is at the top. I drag a bar from "White is lost" to "White is winning" and submit my guess of White's winning chance.

A strong chess engine grades me. Close guesses score well. A guess that is way off should score much worse than one that is only a little off. Once I submit, the round is over and I see how close I was. I should not be able to move the pieces.

Use a set of real positions, including ones that come from puzzles and from played games. The same position should come back the same way. The page shows the board and my bar. It does not compute the engine score itself.

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