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