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.
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.
index.html (13991 bytes)Successfully wrote 13991 bytes to index.html
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.