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.
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
METRICS
Transcript · 4 messages
Build a playable Tetris on a canvas with all seven tetrominoes, rotation, line clears, increasing speed, a next-piece preview, and score.
/tmp/ws/index.html (14035 bytes)Successfully wrote 14035 bytes to /tmp/ws/index.html
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!