oneshotlm
Compare all models on this prompt →

Brick breaker · claude-opus-5

Using the pre-provided phaser.min.js (global Phaser), build a playable brick-breaker game with a paddle (arrow keys or mouse), a bouncing ball, and a wall of breakable bricks with a score. Use ONLY procedurally generated graphics via the Phaser Graphics API or generated textures — no external image or audio assets whatsoever.

⛨ sandboxed Open in new tab ↗
transcript · 8 messages
user

Using the pre-provided phaser.min.js (global Phaser), build a playable brick-breaker game with a paddle (arrow keys or mouse), a bouncing ball, and a wall of breakable bricks with a score. Use ONLY procedurally generated graphics via the Phaser Graphics API or generated textures — no external image or audio assets whatsoever.

assistant

I'll build the game in one file.

bash {"command":"ls -la /tmp/ws"}
toolResult

total 1156 drwxr-sr-x. 2 node node 27 Aug 3 00:22 . drwxrwsrwx. 3 root node 16 Aug 3 00:22 .. -rw-r--r--. 1 node node 1181917 Aug 3 00:22 phaser.min.js

assistant
thinking
I'm creating the HTML file to structure the page.
write /tmp/ws/index.html (10352 bytes)
toolResult

Successfully wrote 10352 bytes to /tmp/ws/index.html

assistant
bash {"command":"cd /tmp/ws && node -e \"\nconst h=require('fs').readFileSync('index.html','utf8');\nconst m=h.match(/<script>([\\s\\S]*)<\\/scri
toolResult

script parses OK 1

assistant

Done — `/tmp/ws/index.html`. - Loads local `phaser.min.js` via `<script src="phaser.min.js">`; no other external resources. - All graphics procedural: paddle/ball/bricks/spark textures made with `Graphics.generateTexture`, plus a drawn gradient + starfield background and frame. - Paddle: arrow keys / A-D / mouse move; Space or click launches; R restarts. - Arcade physics ball with angle-based paddle deflection, anti-stall correction, bottom-open world bounds. - 6×11 brick wall with per-row colors/points, particle burst on break, score/lives/level HUD, level progression with speed ramp, game over screen.

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelclaude-opus-5
vendorAnthropic · Claude
harnesspi-agent
generated2026-08-03

EVALUATION

2/5 partial

Breakout clone renders and reacts to input, but score shows NaN and game ends quickly, indicating scoring bugs.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.3%
on drag0.8%
on wheel0.6%
on enter + space2.0%
on arrow keys1.1%
on w/a/s/d0.0%
frame spread44.4 / 255
console errors0
js errors none

METRICS

runtime63.2s
tokens in21k
tokens out5.6k
cached15k
cost / run$0.1829