oneshotlm
Compare all models on this prompt →

Rubik's Cube · kat-coder-pro-v2

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

I'll create an interactive 3D Rubik's Cube with clickable face rotations, orbit camera controls, and a scramble button. Let me build this step by step.

write /workspace/index.html (25186 bytes)
toolResult

Successfully wrote 25186 bytes to /workspace/index.html

assistant
bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 25202 Jul 31 08:52 /workspace/index.html

assistant

Done! I've created a complete interactive 3D Rubik's Cube in `/workspace/index.html`. **Features:** - **3D rendering** with Three.js using the provided three.min.js - **Orbit camera** - click and drag to rotate around the cube, scroll to zoom - **Clickable face rotations** - click on any face to rotate that layer 90° - **Scramble button** - randomizes the cube with 20 random moves - **Solve button** - resets the cube to solved state - **Reset button** - returns to original position - **Visual polish** - gradient background, smooth animations, color-coded faces (red, orange, white, yellow, green, blue) - **Status indicator** - shows current state (ready, scrambling, solved) - **Mobile support** - touch gestures for camera control The cube renders with black edges for better visibility, and each face has the standard Rubik's Cube colors. The animation smoothly rotates layers when clicked, and the entire cube slowly rotates when idle for a nice visual effect. Just open `index.html` in a browser to start playing!

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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

EVALUATION

3/5 working

Rubik's cube renders with responsive drag/click/wheel rotation, but cube pieces appear disjointed/gapped, looks glitchy after interactions.

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 motion3.1%
on click7.5%
on drag9.1%
on wheel42.8%
on enter + space16.4%
on arrow keys23.2%
on w/a/s/d37.2%
frame spread57.7 / 255
console errors0
js errors none

METRICS

runtime65.1s
tokens in18k
tokens out6.4k
cached8.0k
cost / run$0.0111