A simple Sudoku game written in Python using the pygame library.
- Randomly generated Sudoku boards
- Randomly pruned cells
- Check for valid moves
- Check for game completion
- Timer
- Reset the board
- Solve the board using Constraint Satisfaction Problem (CSP) with OR-TOOLS
- Highlight the selected cell
- Highlight the same numbers in the same row, column, and box
- Install the required dependencies:
pip install -r requirements.txt - Run the game:
python main.py
You can change the number of randomly-pruned cells in the Sudoku board in the prune method in board.py.