oneshotlm
Compare all models on this prompt →

Rubik's Cube · gpt-4.1-mini

Output generated Cost / run $0.0090 Runtime 57.6s

Prompt for this run

Using the pre-provided three.min.js (global THREE), render an interactive 3D Rubik's Cube with clickable face rotations, orbit-drag camera, and a scramble button.

⛨ 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-4.1-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime57.6s
tokens in6.6k
tokens out4.2k
cached1.2k
cost / run$0.0090
Transcript · 4 messages
user

Using the pre-provided three.min.js (global THREE), render an interactive 3D Rubik's Cube with clickable face rotations, orbit-drag camera, and a scramble button.

assistant

I will create a single index.html file with embedded CSS and JS. The app will use three.min.js for rendering: - Render a 3x3x3 Rubik's Cube using smaller cubes. - Allow orbit-drag camera control. - Make cube faces clickable for rotation of that face. - Add a scramble button that applies random rotations. Starting work on index.html now.

→ write index.html (13220 bytes)
toolResult

Successfully wrote 13220 bytes to index.html

assistant

I created a self-contained index.html file that uses three.min.js to render an interactive 3D Rubik's Cube. You can: - Orbit-drag the camera with mouse - Click any visible face to rotate that face's slice 90 degrees - Press the Scramble button to apply 20 random face rotations in sequence Open index.html in a browser with three.min.js present to try it out. Let me know if you want improvements or features added!