This project is a Sudoku game built with Python and Pygame. It includes a Sudoku puzzle generator, a solver based on the backtracking algorithm, and a simple graphical user interface that allows users to interactively solve the puzzle.
The project also checks whether a puzzle has a unique solution before presenting it to the user.
- Generate a complete and valid Sudoku solution
- Remove values from the solution to create a solvable puzzle with a unique solution
- Solve the puzzle automatically using backtracking with visual feedback
- Allow users to input values and verify their solution
- Options to reset the board, auto-solve, or check the current state
- Python 3
- Pygame
- Standard Python libraries (random, sys)
- Clone the repository:
git clone https://github.com/gaeldatascience/sudoku-solver.git
cd sudoku-solver
- Install dependencies:
pip install pygame
- Run the game:
python game.py