oneshotlm
Compare all models on this prompt →

Tetris · grok-4.3

Output generated Cost / run $0.0229 Runtime 54.5s

Prompt for this run

Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.

⛨ sandboxed Open in new tab ↗

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

METRICS

runtime54.5s
tokens in15k
tokens out5.4k
cached9.4k
cost / run$0.0229
Transcript · 8 messages
user

Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.

assistant
thinking
The task is: "Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score." And "write it ALL into one self-contained file ...
→ bash {"command":"ls -la /workspace"}
toolResult

total 4 drwxrwxrwx 2 node node 64 Jul 22 17:56 . drwxr-xr-x 1 root root 4096 Jul 22 17:56 ..

assistant
thinking
The workspace is empty. I need to create index.html with a self-contained Tetris game. No external files or resources.
The task is to build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score. It needs to be a self-contained index.html with CSS in <style> and JS in <script>, no external resources.
→ write /workspace/index.html (12786 bytes)
toolResult

Successfully wrote 12786 bytes to /workspace/index.html

assistant
thinking
The file is complete. Let me verify it exists.
→ bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 12794 Jul 22 17:57 /workspace/index.html

assistant
thinking
The single self-contained Tetris game has been written to index.html in the current directory. All requirements are fulfilled:

Done. Single-file `index.html` with a complete playable Tetris implementing all requested features.