8000 GitHub - jesuserr/Sudoku_solver: Sudoku solver using backtracking for any 9x9 sudoku out there
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jesuserr/Sudoku_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sudoku solver using backtracking for any 9x9 sudoku out there

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0