How aknlite48/parallel-cube-solver works
This repository provides command-line Rubik’s-cube solvers: two C++ 3×3 implementations with different state representations, plus a standalone Python 2×2 solver. The documented workflow accepts a random-move count or custom shuffle, searches for a solution with configurable solver options and depth, and prints the configuration and solution. The README documents C++ capabilities; the Python excerpt shows its shuffle and breadth-first search directly. Some C++ input-to-search dispatch details are unsampled, so the graph keeps those links at the documented CLI level.
Main entry points: 20_state/3cube_solver.cpp C++ CLI · 48_state/3cube_solver.cpp 48-state search · 2cube_solver.py Python 2×2 solver
Components 9
Inputs and CLI
- C++ CLI
20_state/3cube_solver.cpp - Shuffle input
20_state/3cube_solver.cpp
Cube models and search
- 20-state model
20_state/3cube_solver.cpp - 20-state search
20_state/3cube_solver.cpp - 48-state model
48_state/3cube_solver.cpp - 48-state search
48_state/3cube_solver.cpp - Python 2×2 solver
2cube_solver.py
Solution output
- Solution and status
20_state/3cube_solver.cpp
Other components
- CLI user
Connections 10
- CLI user → C++ CLI: provides options
README.md - C++ CLI → Shuffle input: accepts shuffle
README.md - Shuffle input → 20-state model: sets cube state
20_state/3cube_solver.cpp - C++ CLI → 20-state search: selects solver
README.md - C++ CLI → 48-state search: selects solver
README.md - 20-state search → 20-state model: applies moves
20_state/3cube_solver.cpp - 48-state search → 48-state model: applies sequences
48_state/3cube_solver.cpp - 20-state search → Solution and status: prints result
20_state/3cube_solver.cpp - CLI user → Python 2×2 solver: sets move count
2cube_solver.py - Python 2×2 solver → Solution and status: prints solution
2cube_solver.py