Code Monkey home page Code Monkey logo

sudoku_solver's Introduction

Sudoku Solver

After learning backtracking concept during 42_Piscine I decided to write a program in C to solve any 9x9 Sudoku using this technique.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

First of all, clone the repository on your computer

git clone https://github.com/jesuserr/Sudoku_solver.git

and then execute 'Make' inside the newly created ´Sudoku_solver' folder to compile the program

cd Sudoku_solver/ && make

Execution

In order to run the program, execute it as shown below

./sudoku_solver .15.....2.....2.4..9....6.15.....4..42..3.9...634...8..86.25........3.6..4......8

The output should show the initial Sudoku and the solution found:

Initial Sudoku:
.15 ... ..2 
... ..2 .4. 
.9. ... 6.1 

5.. ... 4.. 
42. .3. 9.. 
.63 4.. .8. 

.86 .25 ... 
... ..3 .6. 
.4. ... ..8 

Solution Found:
815 364 792 
637 912 845 
294 578 631 

579 286 413 
428 731 956 
163 459 287 

986 125 374 
752 843 169 
341 697 528 

Built With

Resources

Sudoku_solved_by_bactracking

sudoku_solver's People

Contributors

jesuserr 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.