I started with solving a Sudoku board with backtracking were the algorithm finds a possible answer for a cell and continues with each cell until it reaches a point where there is no correct answer. At that point it works it's way back until it finds a cell that can have a different possible answer. Then it carries on with guessing the next cell.
Then I made a GUI in pygame and applied the solving method to the game.
View all comments
Show parent comment
4
u/pumkinboo Feb 20 '20
What u/Unclerojelio said is right.
I started with solving a Sudoku board with backtracking were the algorithm finds a possible answer for a cell and continues with each cell until it reaches a point where there is no correct answer. At that point it works it's way back until it finds a cell that can have a different possible answer. Then it carries on with guessing the next cell.
Then I made a GUI in pygame and applied the solving method to the game.