--- license: mit pretty_name: "Rubik's Cube Solver Benchmark (min2phase solution length)" language: - en tags: - rubiks-cube - kociemba - two-phase - min2phase - solver - benchmark task_categories: - other size_categories: - n<1K configs: - config_name: length_vs_scramble data_files: data/rubik-benchmark.json --- # Rubik's Cube Solver Benchmark — min2phase Solution Length By **[LK Forge](https://lkforge.com)**: privacy-first browser tools & games, nothing to install, nothing uploaded. Solution length and solve time for the [LK Forge Rubik's Cube Solver](https://lkforge.com/tools/rubik/), which uses the **min2phase (Kociemba two-phase) algorithm**. 200 seeded random scrambles per depth, solving the exact shipped module. - **Try it:** https://lkforge.com/tools/rubik/ - **Producer:** [LK Forge](https://lkforge.com) — client-side AI games, solvers, and tools. ## Headline numbers (200 cubes each) | Scramble depth (random turns) | Mean solution moves | Median | Max | Mean solve time | |---|---|---|---|---| | 10 | 12.4 | 10 | 21 | 0.10 ms | | 15 | 19.2 | 20 | 21 | 0.29 ms | | 20 | 20.4 | 21 | 21 | 0.50 ms | | 25 | 20.5 | 21 | 21 | 0.56 ms | | 30 | 20.5 | 21 | 21 | 0.47 ms | | 40 | 20.5 | 21 | 21 | 0.46 ms | **Scrambling more does not make the cube harder to solve.** Past ~20 random turns the cube is already effectively maximally scrambled, so the solution length **plateaus at ~20.5 moves** (this build caps solutions at 21 moves in the half-turn metric — consistent with God's Number = 20). Every solve completes in **well under a millisecond** in plain JavaScript. ## Files - `data/rubik-benchmark.json` — per scramble depth: mean/median/max solution moves and mean solve time; plus one-time pruning-table `initMs`. ## Method - **Engine:** the shipped ES modules (`solver.js` → vendored `min2phase.js`, `scramble.js`, `constants.js`), imported and run unmodified. - **Scrambles:** seeded `randomScramble(depth)` applied to the solved cube, then solved from the resulting facelet string. - **Solution moves** counted in the half-turn metric (HTM), as returned by the solver. ## Reproduce ```bash node scripts/benchmark-rubik.mjs ``` ## Citation > LK Forge (2026). *Rubik's Cube Solver Benchmark — min2phase Solution Length.* > https://lkforge.com/tools/rubik/ Everything runs client-side, no login, no tracking.