oneshotlm
Compare all models on this prompt →

Brick breaker · grok-4.3

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
thinking
The task is to build a single-page web app in index.html using Phaser, which is pre-provided as phaser.min.js. It must be self-contained with CSS in <style> and JS in <script>, no external resources e...
bash {"command":"ls -la"}
toolResult

total 2116 drwxrwxrwx 3 node node 96 Jul 22 17:08 . drwxr-xr-x 1 root root 4096 Jul 22 17:08 .. -rw-r--r-- 1 node node 1181917 Jul 22 17:08 phaser.min.js

assistant
thinking
The directory contains only phaser.min.js. Now I need to create a self-contained index.html with a brick-breaker game using Phaser, using only procedural graphics via Graphics API or generated texture...The task is to build a playable brick-breaker game using only phaser.min.js, with procedural graphics via Phaser Graphics API or generated textures, no external images or audio. It has to be in a single index.html file, with inline CSS/JS, loading phaser.min.js via script tag.
write index.html (11137 bytes)
toolResult

Successfully wrote 11137 bytes to index.html

assistant
thinking
The file has been created successfully. Let me verify it's complete and the game setup is correct.
bash {"command":"ls -la index.html && wc -c index.html"}
toolResult

-rw-r--r-- 1 node node 11143 Jul 22 17:09 index.html 11143 index.html

assistant
thinking
The complete, self-contained index.html file has been created with a full Phaser brick-breaker game that:

Self-contained `index.html` created successfully. Game features: - Procedural paddle, ball, and multi-color brick sprites via Phaser Graphics - Arcade physics: ball bounce, paddle hit angle control - Paddle: arrow keys + mouse follow - Launch with click or spacebar - Score on brick breaks, win when all bricks gone - Game-over on bottom miss with restart, win screen showing score All runs sandboxed using provided `phaser.min.js`. No external assets.

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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Brick-breaker with paddle, ball, colorful brick wall, score, and click launched the ball leading to a Game Over screen.

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 click14.0%
on drag14.2%
on wheel0.7%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread39.8 / 255
console errors0
js errors none

METRICS

runtime41.4s
tokens in11k
tokens out3.3k
cached704
cost / run$0.0226