This project is a Sudoku game with a GUI built using Tkinter.
It includes both the Sudoku Validator (inspired by [LeetCode #36: Valid Sudoku])
and the Sudoku Solver (inspired by [LeetCode #37: Sudoku Solver]).
- Generate a complete Sudoku board.
- Create a playable puzzle with a configurable number of clues.
- Solve any valid Sudoku puzzle using backtracking.
- Validate the current board state.
- Simple GUI built with
tkinter
.
python so.py
Make sure you have Python 3 installed.
Motivation
I wrote this project as daily practice after solving LeetCode 36 (Valid Sudoku)
and LeetCode 37 (Sudoku Solver). It helped me understand how to apply
backtracking and validation logic into a real mini-project.
Example
Click Full Board to generate a complete solution.
Click Puzzle to generate a random Sudoku puzzle.
Fill in the cells manually and use Check to validate.
Use Solve to let the program solve the puzzle for you.