Skip to content

Tahmwellrups/killer-sudoku-backjumping-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✏️ Killer Sudoku Solver (Backjumping Algorithm)

Implemented using Pygame with UI

image

Killer Sudoku is a combination of both Sudoku and Kakuro (Cross Sums) puzzles. Typically it takes the form of a 9x9 grid, but for this project, I used 4x4 grid. It also has "cages" to add twist to the traditional Sudoku, it has the sum of the numbers included in that cage.

The game works by clicking squares that will be included in the cage, and the user will input the sum of the cage.

image image

If the whole board is completed with cages, the board will be solved using Backjumping algorithm by clicking the "SOLVE" button.

image

In this algorithm, when a dead end is encountered while solving the board, instead of backtracking all the way to the root of the search tree, the algorithm identifies the most recent decision point that caused the conflict using the find_empty_cell() function and jumps back directly to that point, filling it with value until it satisfies the conditions.

About

Interactive 4x4 killer sudoku solver implemented using Pygame

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages