Skip to content

A GUI for Sudoku Solver built using Python 3 using backtracking algorithm.

Notifications You must be signed in to change notification settings

sgautham2k/SudokuSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Solver - An Introduction

A sudoku solver built using Python 3. I am going to warn you all, that this involves backtracking which is a pretty complex topic to get a grasp on if you are an absolute beginner/ rookie so I would advice looking at getting the grips of loops, functions and the basic instructions of python before you come to trying to understand this code.

Backtracking for Sudoku Solver

Such a program starts with a first possible action at a certain position. This position (and action) can be a random one, a first in the set of all actions and/or positions, or it can be an optimal “move” in a given situation. Program then continues with applying following actions at the following positions until all “moves” were taken and the problem has been solved.

If there is no further action available and the problem is still not solved, the applied action at the last position is backtracked (removed) and another, not yet tried action is applied.

GUI for Sudoku Solver

As you can see, we have the GUI for the sudoku solver which has a timer running to record the time taken to complete the sudoku puzzle.

The red highlighted box in the first grid show us trying to insert a number to check whether the number is valid in the respective position or not.

As you can see, we tried to enter the number "2" which is already present in the first row of the sudoku puzzle. When we try to insert a number if it is present in the row or column, we get an "X" mark on bottom left of the board indicating that the number we inserted is not valid.

About

A GUI for Sudoku Solver built using Python 3 using backtracking algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages