oneshotlm
Compare all models on this prompt →

Rubik's Cube · qwen3.5-flash-02-23

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.min.js. I need to:

1. Check if three.min.js exists in the current directory
2. Create index.html with:
   - CSS in <style> tags for styling
   - JS in <script> tags with:
     - Scene, camera, renderer setup
     - Rubik's cube construction (27 small cubes)
     - Face rotation mechanism
     - Orbit controls for camera dragging
     - Click handling for face rotations
     - Scramble button functionality

Let me first check what's in the current directory.
bash {"command":"ls -la /tmp/ws/"}
toolResult

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

assistant
write /tmp/ws/index.html (15564 bytes)
toolResult

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

assistant
thinking
<think>

I've created a fully self-contained interactive 3D Rubik's Cube in `/tmp/ws/index.html`. The app features: **Key Features:** - **27 individual cubies** arranged in a classic 3×3×3 Rubik's Cube with authentic colors (White, Yellow, Green, Blue, Red, Orange) - **Clickable face rotations** - Buttons U, D, L, R, F, B for each face with proper direction - **Orbit-drag camera** - Left-click drag to rotate view, right-click drag to pan, scroll to zoom - **Scramble button** - Randomly rotates all layers for 20 moves - **Reset button** - Returns cube to solved state - **Smooth animations** - Quarter turns animate over 300ms - **Status display** - Shows current action - **Responsive design** - Adapts to window size **Technical Implementation:** - Uses the pre-provided `three.min.js` via `<script src="three.min.js"></script>` - All CSS styles inline in `<style>` tag - JavaScript inline in `<script>` tag - No external dependencies or network requests - Pure WebGL rendering with shadows and Phong materials - Custom orbit controls using spherical coordinates Open `index.html` in a browser to interact with the Rubik's Cube!

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-flash-02-23
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

3D Rubik's Cube renders with UI controls; drag/wheel rotate camera and zoom, but click on face didn't trigger visible rotation.

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 drag7.5%
on wheel5.1%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread61.9 / 255
console errors0
js errors none

METRICS

runtime26.1s
tokens in9.4k
tokens out4.5k
cached0
cost / run$0.0018