It is a 3x3 sudoku, solved using backtracking. It has two versions:
- GUI version in which you can play a game.
- Command-line version that directly solves the sudoku and prints output (solution.py).
Python module pygame
To play the GUI version:
- Run SudokuGUI.py. A window will appear.
- Select an empty cell in the grid.
- Enter any number using keyboard. The number will appear gray i.e. it is not your final input.
- If you want to delete the value you entered, press DEL key.
- If you are sure about the value you entered and want to lock it, press ENTER key.
- If the value is correct, it will turn into black, else a 'X' symbol will appear in the bottom and the cell will again become empty.
- Once all cells are filled, the window will be closed automatically.
Note: In the bottom right hand side of the window, a timer is running that shows the time elapsed.