oneshotlm
Compare all models on this prompt →

Rubik's Cube · qwen3.5-plus-02-15

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 ↗
transcript · 6 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
thinking
The user wants me to create a single-page web app with an interactive 3D Rubik's Cube using Three.js. The requirements are:
1. Use the pre-provided three.min.js file (load with `<script src="three.min.js"></script>`)
2. Render an interactive 3D Rubik's Cube
3. Clickable face rotations
4. Orbit-drag camera
5. A scramble button
6. All in one self-contained index.html file

Let me first check if three.min.js exists in the current directory.
bash {"command":"ls -la /tmp/ws/"}
toolResult

total 592 drwxr-sr-x. 2 node node 26 Aug 1 20:41 . drwxrwsrwx. 3 root node 16 Aug 1 20:41 .. -rw-r--r--. 1 node node 603445 Aug 1 20:41 three.min.js

assistant
thinking
I have the three.min.js file available. Now I'll create a self-contained index.html with an interactive 3D Rubik's Cube that includes:
1. A 3D Rubik's Cube rendered with Three.js
2. Clickable face rotations (click and drag on faces to rotate)
3. Orbit-drag camera controls
4. A scramble button

Let me create this comprehensive implementation.
write /tmp/ws/index.html (20724 bytes)
toolResult

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

assistant

Done! I've created a complete interactive 3D Rubik's Cube in `/tmp/ws/index.html` with: **Features:** - **27 cubelets** with correct Rubik's Cube coloring (white/yellow top/bottom, red/orange front/back, green/blue right/left) - **Orbit camera controls**: Left-drag background to rotate view, right-drag to pan, scroll to zoom - **Face rotation**: Click and drag on any cube face to rotate that slice (drag direction determines rotation) - **Scramble button**: Randomizes the cube with 20 animated moves - **Move counter**: Tracks rotations - **Smooth animations**: Slice rotations are animated with easing - **Visual polish**: Gradient background, styled UI, lighting with shadows The app uses the local `three.min.js` file and runs completely offline with no external dependencies.

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

modelqwen3.5-plus-02-15
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 partial

Rubik's Cube renders and responds to drag (rotate) and wheel (zoom), but keyboard input has no effect, no scramble visible.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.0%
on drag11.9%
on wheel58.7%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread60.4 / 255
console errors0
js errors none

METRICS

runtime68.7s
tokens in10k
tokens out5.1k
cached0
cost / run$0.0106