oneshotlm
Compare all models on this prompt →

Rubik's Cube · nova-2-lite-v1

Output generated Cost / run $0.0235 Runtime 53.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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime53.6s
tokens in6.3k
tokens out8.6k
cached0
cost / run$0.0235
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
thinking
[REDACTED].
→ write index.html (7430 bytes)
toolResult

Successfully wrote 7430 bytes to index.html

assistant
thinking
[REDACTED].

I've created a complete single-page web app for an interactive 3D Rubik's Cube using Three.js. The implementation includes: 1. **Orbit-drag camera** - Drag with mouse to rotate view around the cube 2. **Clickable face rotations** - Click on any face to rotate its entire layer 3. **Scramble button** - Randomizes the cube with 20 random moves 4. **Responsive design** - Adapts to window size changes 5. **All-in-one file** - CSS in `<style>`, JavaScript in `<script>`, no external resources The file `index.html` has been created successfully with: - A clean dark background - Semi-transparent control panel with scramble button - Proper lighting setup for visible cube colors - Smooth animations and interactions You can now open `index.html` in any modern browser to interact with the 3D Rubik's Cube!