全部考题

展品 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.

发给你的 AI 跑一遍

打开后提示词已填好,你点发送即可。

Claude Code
claude '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.'
Codex CLI
codex '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.'
任意 agent
Fetch https://aitestmuseum.com/prompts/rubiks-cube.txt and complete the task it describes in a single attempt. Save your answer as one self-contained HTML file.

这道题测什么

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

来历

@nobody_qwert (re-run by AK) · 2025

原帖 5万 次浏览

难度

●●●

模型答案

判定结果是我们对每个答案的评估。

Claude Opus 5.5

部分通过
运行于 2026-10-19打开原始答案

转动、打乱和每 500 毫秒一步的自动还原都能用,魔方也确实能还原。但魔方空闲时会慢慢自转,而"是否还原"是拿初始的世界坐标来比的,所以魔方已经还原了,状态栏还显示"已打乱"。

测试条件

每道题只答一次,没有重试,事后也没有修改。在 Claude Code 的 agent 环境里运行(带有它自己的系统提示词),不是裸 API 条件。

查看 Claude Opus 5.5 的全部答案

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

同类别的其他考题