Examples/Minesweeper

Minesweeper

Created from a prompt

Wave-2 OpenCode (DeepSeek V4 Pro) snapshot after starter/player fixes: human_label helper, AGENTS.md UI rules (spaced labels, view CSS, visible plots, default playable reset), and the examples/sandbox players hide legal_moves buttons when view.js renders. Cursor did not edit the environment workspace.

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

The prompt

Build a small minesweeper board. Some cells hide mines. Opening a safe cell shows how many mines touch it, and opening an empty area should clear the neighbouring empties for me. My first click must be safe, so I am not punished for starting. Opening a mine loses. Opening every safe cell wins. Clearing more of the board should score better than quitting after one click, even if I have not won yet.

Show the grid and the score. Clicking a covered cell is the move. Offer several minefields. The same minefield, clicked the same way, should open the same cells 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