oneshotlm
Compare all models on this prompt →

Tetris · granite-4.1-8b

Output generated Cost / run $0.0005 Runtime 20.6s

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

modelgranite-4.1-8b
vendorIBM · Granite
harnesspi-agent
generated2026-08-01

METRICS

runtime20.6s
tokens in5.8k
tokens out2.5k
cached3.2k
cost / run$0.0005
Transcript · 4 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
→ write index.html (7085 bytes)
toolResult

Successfully wrote 7085 bytes to index.html

assistant

The single‑page Tetris game has been created and written entirely into **index.html** in the current directory. It includes all seven tetrominoes, rotation, line‑clear detection with scoring, a speed that increases as the score rises, a next‑piece preview, and a simple UI for the score and level. Open `index.html` in any browser to play. Enjoy!