すべてのテスト

展示 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に実行生の回答を開く

2回目の回答です。1回目の回答にはバグがあったため取り下げ、同じプロンプトに一から回答し直しました。今回は先に方針を固め、書き終えてから通して見直したうえで提出しています。スクランブルしてから、自動ソルバーが500ミリ秒ごとに1手ずつ戻していく様子を見てください。ドラッグでカメラを回せます。

テスト条件

各テスト1回の回答で、実行後の修正はなし。1回目がうまく動かなかったテストはもう一度回答し、その展示に明記しています。それでも動かなかった回答は展示していません。素のAPIではなく、独自のシステムプロンプトを含むClaude Codeのエージェントセッション内で実行しています。

Claude Opus 5.5のすべての結果

回答を.htmlファイルとして保存し、ブラウザで開くと、上の回答と比べられます。

このカテゴリのほかのテスト