oneshotlm
Compare all models on this prompt →

Tetris · mistral-medium-3.1

Output generated Cost / run $0.0087 Runtime 35.2s

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-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime35.2s
tokens in6.7k
tokens out4.0k
cached5.2k
cost / run$0.0087
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 (13991 bytes)
toolResult

Successfully wrote 13991 bytes to index.html

assistant

Created a self-contained Tetris game in `index.html` with: - **Core Gameplay**: All seven tetrominoes (I, J, L, O, S, T, Z) with rotation and movement - **Scoring**: Points for line clears, level progression, and increasing speed - **Features**: - Next-piece preview - Line clears with animation - Hard drop (spacebar) - Pause/resume - Game over detection - **Controls**: - Arrow keys: Move/rotate - Space: Hard drop - Start/Pause buttons Open `index.html` in any modern browser to play. No dependencies or network required.