oneshotlm
Compare all models on this prompt →

Tetris · mistral-large-2512

Output generated Cost / run $0.0090 Runtime 46.1s

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

modelmistral-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime46.1s
tokens in6.5k
tokens out3.8k
cached0
cost / run$0.0090
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 /tmp/ws/index.html (14035 bytes)
toolResult

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

assistant

The Tetris game is ready! Open `/tmp/ws/index.html` in a web browser to play. Here's what it includes: - **All 7 tetrominoes** (I, O, T, Z, S, J, L) with distinct colors - **Rotation** (Up arrow) - **Movement** (Left/Right arrows) - **Soft drop** (Down arrow) - **Hard drop** (Space) - **Next-piece preview** - **Line clears** with scoring (1/2/3/4 lines) - **Increasing speed** (levels up every 10 lines) - **Score, level, and lines cleared** tracking - **Game over detection** No external resources are used—everything is self-contained in the single HTML file. Enjoy!