Giter VIP home page Giter VIP logo

killer-sudoku-backjumping-solver's Introduction

✏️ 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.

killer-sudoku-backjumping-solver's People

Contributors

tahmwellrups avatar

Stargazers

Tristan Jay Fernandez avatar Paul Adrian Torres avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.