Sudoku AI Solver Pro is an advanced system for solving Sudoku using modern AI and constraint-based techniques.
It combines:
- 🧠 Constraint Satisfaction Problem (CSP)
- ⚡ Heuristic Search (MRV, Degree, LCV)
- 🔗 Arc Consistency (AC-3)
- 💀 Dancing Links (Algorithm X)
More than a solver — a full algorithm visualization system.
- Backtracking Solver
- CSP Solver (MRV + Degree + LCV)
- AC-3 Constraint Propagation
- DLX (Ultra-fast exact cover solver)
- Dynamic Sudoku grid
- Real-time solving
- Step highlighting
- Execution time
- Steps / Backtracks
- Algorithm comparison (CSP vs DLX)
| Level | Technique |
|---|---|
| Basic | Backtracking |
| Intermediate | MRV + Forward Checking |
| Advanced | CSP + AC-3 |
| 💀 Expert | Dancing Links (DLX) |
Visualization demo (placeholder)
git clone https://github.com/ManucianTeam/sudoku-ai-solver-pro.git
cd sudoku-ai-solver-pro
pip install -r requirements.txtuvicorn server:app --reload
Open:
http://127.0.0.1:8000/docs
Open file:
web/index.html
POST /solve
{
"board": [[...]],
"algorithm": "csp"
}Response:
{
"success": true,
"board": [[...]],
"steps": 123
}sudoku-ai-solver-pro/
│
├── solver/
├── heuristics/
├── utils/
├── web/
│
├── server.py
├── pyproject.toml
├── README.mdpytestFrontend (JavaScript)
↓
FastAPI Backend
↓
CSP / DLX Engine
- CSP → flexible, explainable
- DLX → extremely fast (exact cover)
Hybrid approach = speed + intelligence
- WebSocket real-time solving
- Benchmark dashboard
- AI explanation system
- Mobile UI
MIT License
Pull requests are welcome. For major changes, open an issue first.
This project demonstrates:
- Algorithmic thinking
- AI problem solving
- Full-stack integration
🚀 Built as a portfolio-grade system
