You can play sudoku or you can let the computer solve it for you. The algorithm for solving the game uses backtracking technique to fill the blank spaces.
The code execution requires the pygame
library. The installation can be performed by running the following command in terminal.
pip install pygame
Open the terminal and make sure that the working directory is Sudoku-Game-with-Solver
. Make sure also that you have python
installed on the machine. Then execute the following command:
python Sudoku/sudoku_GUI.py
The sudokumatrix.txt
stores the sudoku board. The sudoku_text.py
file implements the backtracking algorithm for solving the game. The main file, sudoku_GUI.py
uses the other files and implements a nice-looking GUI for the game.