oneshotlm
Compare all models on this prompt →

Rubik's Cube · grok-4.3

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 · 8 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 task is to build a single-page web app in one self-contained file named index.html. It must use three.min.js which is already present, loaded with <script src="three.min.js"></script>. No external...
bash {"command":"ls -la"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 22 17:59 . drwxr-xr-x 1 root root 4096 Jul 22 17:59 .. -rw-r--r-- 1 node node 603445 Jul 22 17:59 three.min.js

assistant
thinking
Now I need to create a single self-contained index.html that uses three.min.js (already present) to render an interactive 3D Rubik's Cube.
The task is to create a single self-contained index.html that uses three.min.js to render an interactive 3D Rubik's Cube with clickable face rotations, orbit-drag camera, and a scramble button. It must be fully sandboxed, no external resources.

I need to implement:

- A 3x3x 3 cube using 27 small cubes, but typically render only the visible ones.

- Each small cube has 6 faces with appropriate colors.

- Clickable face rotations: when clicking on a face, rotate that face 90 degrees.

- Orbit-drag camera: allow orbiting and dragging to rotate the view.
write index.html (12350 bytes)
toolResult

Successfully wrote 12350 bytes to index.html

assistant
thinking
The file is created. Let's verify it exists.
bash {"command":"ls -la index.html && head -c 200 index.html"}
toolResult

-rw-r--r-- 1 node node 12354 Jul 22 18:00 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Rubik's Cube</title> <style> body {

assistant

Done. `index.html` is complete with a fully interactive 3D Rubik's Cube using three.min.js only. Features: - Clickable faces to rotate slices (raycast normals) - Orbit-drag + scroll zoom camera - Smooth 90° rotations with easing - 20-move auto-scramble button - Fully self-contained, no external resources Run it in any browser — Done.

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

modelgrok-4.3
vendorxAI · Grok
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Rubik's Cube renders correctly; click rotates a face, drag orbits, wheel zooms; keyboard has no effect.

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 click2.8%
on drag11.6%
on wheel43.5%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread100.3 / 255
console errors0
js errors none

METRICS

runtime51.0s
tokens in4.6k
tokens out3.9k
cached8.0k
cost / run$0.0171