全部考题

展品 No. 005 · 3D 场景

会自己还原的魔方

带转动按钮、打乱和自动还原的 3D 魔方。2025 年这道题把推理模型分出了高下。

提示词

> Create a single HTML file that uses Three.js to visualize a Rubik's Cube with realistic lighting and interactive controls. The cube should be built from 27 cubies with standard Rubik's Cube coloring. Include buttons for standard moves (U, U′, D, D′, L, L′, R, R′, F, F′, B, B′) that animate a 90° rotation on the appropriate face. Also, implement a scramble function that performs a series of random moves (recording each move), and an automatic unscrambler that, every 500 ms, applies the inverse of the recorded moves until the cube is solved. The solved state should be determined by comparing each cubie's current world position and rotation with its originally stored "solved" state (using a small tolerance). Use the following script sources:
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
Provide the complete, self-contained HTML file with all necessary code.

这道题测什么

几十步转动后 3D 旋转仍要精确,还要记录状态、正确判断是否已还原。

来历

@nobody_qwert (re-run by AK) · 2025

原帖 5万 次浏览

难度

●●●

模型答案

Claude Opus 5.5

运行于 2026-10-19打开原始答案

第二次作答。第一次的答案有 bug,已经撤下;同一道题从头重新作答,这次先想清楚方案、写完通读检查后才提交。先点打乱,再看自动还原每 500 毫秒撤回一步。拖动可以旋转视角。

测试条件

每道题作答一次,运行后不做任何修改。第一次没做对的题会再答一次,并在展品上注明;仍然没做对的不展出。在 Claude Code 的 agent 环境里运行(带有它自己的系统提示词),不是裸 API 条件。

查看 Claude Opus 5.5 的全部答案

把答案存成 .html 文件,用浏览器打开,就能和上面的结果对比。

同类别的其他考题