๐Ÿงฉ Sudoku Solver (Unity)

A 2D Sudoku solver built with Unity, focused on algorithmic problem-solving, optimization, and clean game-logic design.

This project explores how different solving strategies behave in real time, from classic backtracking to optimized constraint-based approaches, while keeping the application responsive using Unity coroutines.

๐Ÿ‘‰ See the github page for more informations: https://github.com/nflan/Sudoku_Solver


๐ŸŽฏ Project Purpose

This project was created as a learning and portfolio project with three main goals:

  • Revisit and correctly implement backtracking algorithms

  • Explore faster and smarter alternatives to brute-force solving

  • Strengthen Unity development skills through UI, logic separation, and visual feedback


๐Ÿง  How the Solver Works

The application includes multiple solving strategies:

๐Ÿ”น Basic Backtracking

  • Recursive depth-first search

  • Tries numbers left-to-right

  • Guaranteed to find a solution if one exists

  • Serves as a correctness baseline

๐Ÿ”น Optimized Solver

  • Uses MRV (Minimum Remaining Values) heuristic

  • Applies constraint propagation

  • Detects impossible configurations early

  • Significantly reduces search time compared to brute force

Both solvers run using Unity coroutines, ensuring the UI stays responsive even on complex or unsolvable grids.


โœจ Features

  • Interactive Sudoku grid

  • Manual number input

  • Multiple solving algorithms

  • Detection of impossible Sudoku configurations

  • Non-blocking solving with visual feedback

  • Clear separation between UI and solver logic


๐Ÿ›  Tools & Technologies

  • Unity 2D

  • C#

  • Coroutine-based execution

  • Custom backtracking & constraint logic


๐Ÿ“Œ Notes

This project focuses on clarity, correctness, and learning, rather than raw performance alone.
All algorithms are implemented from scratch to better understand their behavior and limitations.


๐Ÿ‘‰ See the github page for more informations: https://github.com/nflan/Sudoku_Solver

Published 27 days ago
StatusReleased
PlatformsHTML5
AuthorNicolas FLAN
GenrePuzzle
Made withUnity
Tagssolver, sudoku, sudoku-solver

Leave a comment

Log in with itch.io to leave a comment.