How amaklakovv/rubiks-solver works
This is a web-based Rubik’s Cube solver: a user uploads six face images, the backend decodes them and identifies sticker colors, then validates and orients the cube state before requesting a move sequence. The frontend displays the returned solution or an error. The source excerpts show the upload/API calls and backend processing calls; deployment and other unsampled behavior are not inferred.
Main entry points: main.py Solve API and decoding · App.jsx Upload and results · solver.py State validation · main.jsx React entry
Components 10
Web interface
- React entry
frontend/src/main.jsx - Upload and results
frontend/src/App.jsx
Image recognition
- Solve API and decoding
backend/main.py - Face aggregation
backend/main.py - Sticker color detection
backend/image_processing.py
Cube solving
- State validation
backend/solver.py - Face orientation
backend/solver.py - Move generation
backend/solver.py
Other components
- Cube owner
- Kociemba library
Connections 10
- Cube owner → Upload and results: selects images
frontend/src/App.jsx - React entry → Upload and results: renders
frontend/src/main.jsx - Upload and results → Solve API and decoding: posts six images
frontend/src/App.jsx - Solve API and decoding → Face aggregation: passes decoded images
backend/main.py - Face aggregation → Sticker color detection: processes each face
backend/main.py - Solve API and decoding → State validation: submits cube state
backend/main.py - State validation → Face orientation: validates before orienting
backend/solver.py - Face orientation → Move generation: builds solver string
backend/solver.py - Move generation → Kociemba library: requests moves
backend/solver.py - Solve API and decoding → Upload and results: returns solution
backend/main.py