oneshotlm
Compare all models on this prompt →

Brick breaker · kimi-k3

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 · 6 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
thinking
Build one index.html with Phaser brick breaker. Generate textures via graphics.generateTexture.
write /workspace/index.html (6159 bytes)
toolResult

Successfully wrote 6159 bytes to /workspace/index.html

assistant
thinking
Quick sanity: particles API — this.add.particles(x,y,key,config) works in Phaser 3.60+. Fine. Verify phaser.min.js exists.
bash {"command":"ls -la /workspace/"}
toolResult

total 2124 drwxrwxrwx 4 node node 128 Jul 28 01:12 . drwxr-xr-x 1 root root 4096 Jul 28 01:11 .. -rw-r--r-- 1 node node 6161 Jul 28 01:12 index.html -rw-r--r-- 1 node node 1181917 Jul 28 01:11 phaser.min.js

assistant

Done — `index.html` is a complete, self-contained brick breaker loading the local `phaser.min.js`: - **Procedural graphics only**: ball, paddle, brick, and wall textures generated with `Phaser.GameObjects.Graphics.generateTexture()`; background gradient + stars drawn with the Graphics API. Zero external assets/network. - **Paddle**: arrow keys or mouse movement, clamped to bounds. - **Ball**: launches on click/Space, angle depends on where it hits the paddle, speed ramps slightly, anti-horizontal-drift guard. - **Bricks**: 6×9 tinted rows with score values (lower rows worth more), particle burst on break, win detection. - **Game flow**: 3 lives, score/lives HUD, win/game-over screens, restart on click/Space. Open `index.html` in a browser to play.

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

4/5 working

Fully functional brick breaker with paddle, ball, colorful bricks, score tracking, and particle effects on brick breaks.

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 click3.2%
on drag9.1%
on wheel7.4%
on enter + space6.7%
on arrow keys6.6%
on w/a/s/d7.1%
frame spread42.8 / 255
console errors0
js errors none

METRICS

runtime50.7s
tokens in3.9k
tokens out2.4k
cached5.1k
cost / run$0.0115