How kgpianghosh006/cubicon-app works
Cubicon accepts a cube state through camera scanning, manual facelet editing, or scramble notation; the frontend validates it, requests a backend solution, and presents the moves in a 3D player. The backend exposes REST endpoints for validation, solving, scrambling, and face scanning, with several cube representations and search algorithms; IDA* uses a corner pattern database. The graph preserves these documented capabilities. Some endpoint internals and UI wiring are unsampled, so only documented or excerpt-supported relationships are connected.
Main entry points: main.cpp REST API and orchestration · App.jsx Solver interface · RubiksCube.h Cube operations · CameraScanner.jsx Camera scanner
Components 24
Frontend experience
- Solver interface
frontend/src/App.jsx - Camera scanner
frontend/src/components/CameraScanner.jsx - Facelet editor
frontend/src/components/CubeNet.jsx - Scramble input
frontend/src/components/ScrambleInput.jsx - 3D solution player
frontend/src/components/CubePlayer.jsx - Move utilities
frontend/src/lib/cubeStateUtils.js - API client
frontend/src/lib/apiClient.js
API and orchestration
- REST API and orchestration
backend/server/main.cpp - HTTP server library
backend/server/httplib.h - JSON library
backend/server/json.hpp
Cube model
- Cube validation
backend/Model/Validator.h - Cube operations
backend/Model/RubiksCube.h - 1D representation
backend/Model/RubiksCube1dArray.cpp - 3D representation
backend/Model/RubiksCube3dArray.cpp - Bitboard representation
backend/Model/RubiksCubeBitboard.cpp
Search and heuristics
- BFS solver
backend/Solver/BFSSolver.h - DFS solver
backend/Solver/DFSSolver.h - IDDFS solver
backend/Solver/IDDFSSolver.h - IDA* solver
backend/Solver/IDAstarSolver.h - Corner pattern database
backend/PatternDatabases/CornerPatternDatabase.h - Pattern database storage
backend/PatternDatabases/PatternDatabase.cpp - Packed move values
backend/PatternDatabases/NibbleArray.cpp - Precomputed corner data
backend/Databases/cornerDepth5V1.txt
Other components
- Cube solver user
Connections 27
- Cube solver user → Solver interface: uses
README.md - Solver interface → Camera scanner: offers scanning
frontend/src/App.jsx - Solver interface → Facelet editor: offers editing
frontend/src/App.jsx - Solver interface → Scramble input: accepts notation
frontend/src/App.jsx - Solver interface → API client: requests validation and solving
frontend/src/App.jsx - Solver interface → Move utilities: formats moves
frontend/src/App.jsx - Solver interface → 3D solution player: renders playback
frontend/src/App.jsx - API client → REST API and orchestration: calls REST endpoints
README.md - Camera scanner → REST API and orchestration: submits scanned face
- REST API and orchestration → HTTP server library: serves routes
backend/server/main.cpp - REST API and orchestration → JSON library: parses requests
backend/server/main.cpp - REST API and orchestration → Cube validation: validates states
backend/server/main.cpp - REST API and orchestration → 1D representation: selects representation
backend/server/main.cpp - REST API and orchestration → 3D representation: selects representation
backend/server/main.cpp - REST API and orchestration → Bitboard representation: selects representation
backend/server/main.cpp - 1D representation → Cube operations: implements
backend/Model/RubiksCube1dArray.cpp - 3D representation → Cube operations: implements
backend/Model/RubiksCube3dArray.cpp - Bitboard representation → Cube operations: implements
backend/Model/RubiksCubeBitboard.cpp - REST API and orchestration → BFS solver: dispatches solver
backend/server/main.cpp - REST API and orchestration → DFS solver: dispatches solver
backend/server/main.cpp - REST API and orchestration → IDDFS solver: dispatches solver
backend/server/main.cpp - REST API and orchestration → IDA* solver: dispatches solver
backend/server/main.cpp - IDA* solver → Corner pattern database: queries heuristic
backend/Solver/IDAstarSolver.h - Corner pattern database → Pattern database storage: extends storage
backend/PatternDatabases/CornerPatternDatabase.h - Pattern database storage → Packed move values: stores packed values
backend/PatternDatabases/PatternDatabase.cpp - REST API and orchestration → Precomputed corner data: loads precomputed data
backend/server/main.cpp - Solver interface → REST API and orchestration: requests scan and scramble services