Testing a GPT-5-Generated Rubik’s Cube Simulator

Matthew Berman prompts GPT-5 to build a Three.js cube simulator and tries its scramble and solve controls at several sizes.

MBMatthew Berman登壇者 · Forward Future
チャンネル
Matthew Berman
公開日
2025年8月8日
動画
1:10
読了時間
1 分
スライド
4
原文
英語
YouTube で開く
スクロールすると動画は右下に小さくなって再生を続けます。字幕は閲覧言語に合わせて切り替わります。
閲覧言語2 言語で読めます
この記事はまだ日本語に翻訳されていないため、英語の原文を表示しています。
要約

30 秒でわかる

Matthew Berman shows a short test of a Rubik’s Cube simulator generated in response to a GPT-5 coding prompt. He demonstrates scrambling and solving on 3×3, 5×5, and 20×20 cubes, noting slower rendering on the largest. The visible results appear solved in the presented examples; the clip does not establish how the solver works or whether it handles arbitrary cube states.

  1. 1The coding promptBerman asks GPT-5 for a Three.js simulator supporting interactive cubes up to 20×20×20.
  2. 2Scramble and solveThe 3×3 simulation scrambles, then its visible faces appear solved after he activates the solve control.
  3. 3Larger cubesHe tries 5×5 and 20×20 versions; the larger simulation runs at a lower frame rate.

ポイント

  1. The prompt requests an interactive HTML and JavaScript cube simulator using Three.js, with sizes up to 20×20×20.
  2. The displayed 3×3 and 5×5 examples appear to return to a solved state after Berman uses the solve control.
  3. The 20×20 demonstration shows a drop in frame rate and ends with the visible faces in a uniform state.
  4. The brief demonstration does not independently verify every cube face, all possible inputs, or the solving algorithm.
全文

チャプターごとに整えた全文を読む

文字起こしのみ
01

Prompt and 3×3 test

Berman asks GPT-5 for an interactive Three.js cube simulator. He scrambles the default cube and observes the solve animation.

Three.js simulator prompt
スライド 1 / 4Three.js simulator promptThe prompt requests a dynamically sized interactive cube up to 20×20×20.

I have been trying GPT-5 and want to see what it does with a Rubik’s Cube challenge. I ask it to write a complete HTML and JavaScript program using Three.js for an interactive cube simulator, with sizes up to 20×20×20. The demonstration tests the generated program rather than a physical cube.

The 3×3 scramble animation
スライド 2 / 4The 3×3 scramble animationThe generated simulation shows cube layers in motion during a scramble.

The initial 3×3 cube looks good, though I have seen other models render a cube that falls apart during rotation. Here the scramble animation moves the layers, and when I press Solve, the colors begin to group together. The visible faces return to uniform colors in the shown example; the short clip does not inspect the algorithm or every face.

02

Testing larger cubes

He tries the same controls on a 5×5 cube and then a 20×20 cube. The largest cube slows down, but its visible faces return to uniform colors.

The 5×5 solve animation
スライド 3 / 4The 5×5 solve animationThe larger cube is shown with layers rotating as the solve action runs.

I switch to a 5×5 cube and run the solve action. Its layers move and the colors come together, and I describe the result as solved. This shows the behavior of the presented example, but it does not establish that every possible cube state can be solved.

The 20×20 cube during solving
スライド 4 / 4The 20×20 cube during solvingThe visible colors become grouped while the larger simulation runs more slowly.

Finally, I build and scramble a 20×20 cube. The frame rate visibly drops, but the solve animation continues and the visible faces end up in uniform colors. It is an impressive result to watch, though the video does not show how the solver derives its moves or independently verify all sides.

同じチャンネルの記事

スライド 12 枚34:21EN
Matthew Berman· 2026年10月27日Matthew Berman Examines Anthropic’s IPO Filing, AI Growth and GovernanceMatthew Berman, Sam Altman · Forward FutureThe presenter reviews the S-1’s financial metrics, compute strategy and voting structure while questioning the tension between rapid AI development and safety.AnthropicAI Safetyエンタープライズ AI+2
スライド 2 枚0:36EN
Matthew Berman· 2026年10月25日Kimi K3.1 and a Rubik’s Cube Solver DemonstrationMatthew Berman · Forward FutureMatthew Berman shows a scrambled virtual cube being solved and gives the Kimi K3.1 test a favorable assessment.評価(Evals)コーディングエージェントOpen-weight models
スライド 6 枚25:50EN
Matthew Berman· 2026年10月24日Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
スライド 2 枚32:20EN
Matthew Berman· 2026年10月23日Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1
スライド 6 枚1:03:37EN
Matthew Berman· 2026年10月23日Matthew Berman’s Team Tests Kimi K3.1 on Animation, Games, and ChartsMatthew Berman, Alex, Brian · Forward FutureA live team AMA turns into an informal test of Kimi K3.1, from personal-agent workflows to motion graphics, a browser game, and a benchmark chart.コーディングエージェントGenerative media評価(Evals)+2
0:53EN
Matthew Berman· 2026年10月22日Sam Altman on AI and the Discovery of New KnowledgeSam Altman · OpenAIAltman expects progress in mathematical discovery to extend to biology, materials and energy.AI for scienceMathematicsComputational Biology+1