oneshotlm
Compare all models on this prompt →

Tetris · gpt-5.6-luna-pro

Output generated Cost / run $0.0531 Runtime 50.3s

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

modelgpt-5.6-luna-pro
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime50.3s
tokens in41k
tokens out14k
cached19k
cost / run$0.0531
Transcript · 6 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
thinking
**Creating index.html**

I see that I need to create an index.html file. It might be a good idea to first inspect the current working directory to understand where I'm starting from. This will help me figure out where to save the new file. I want to ensure everything is organized and in the right place. Once I know the location, I can proceed with setting up the HTML structure!
→ bash {"command":"pwd && ls -la"}
toolResult

/tmp/ws total 0 drwxr-sr-x. 2 node node 6 Aug 1 18:02 . drwxrwsrwx. 3 root node 16 Aug 1 18:02 ..

assistant
thinking
**Planning Tetris Implementation**

I need to create a single and polished file for a Tetris game. It seems essential to use canvas, ensuring it supports both keyboard and touch controls since the user requested it to be playable. I plan to write the full HTML without external dependencies and include overlays for starting, game over, and previews. 

The game will feature seven tetrominoes with basic rotation and wall kicks. I'll also implement increasing speed and a pause feature.
→ write /tmp/ws/index.html (11556 bytes)
toolResult

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

assistant

Created `/tmp/ws/index.html` with a self-contained playable Tetris game featuring: - All seven tetrominoes - Rotation in both directions - Line clearing - Increasing drop speed and levels - Score, lines, and level tracking - Next-piece preview - Ghost piece - Soft and hard drop - Keyboard and mobile controls - Pause and game-over states - No external resources or network requests