Skip to content

IsmaelV/Sudoku_Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

Sudoku Solver 🧠

Author: Ismael Villegas Molina πŸ‡²πŸ‡½ πŸ˜€

This is a simple sudoku puzzle solver. If you input a valid puzzle, we will solve all possible solutions.

The algorithm was written by Professor Thorsten Altenkirch on a YouTube video for Computerphile πŸŽ₯ The rest of the process was written by me. Functions show the corresponding author.

Process πŸ“

First you run the system (duh). If using an IDE simply press the play button. If on the terminal it's as simple as:

python sudoku_solver.py

Constructing sudoku puzzle grid πŸ”§

First we will be constructing the grid. This will be done row-by-row. We will literally be asking each cell one at a time for each row. If it's an empty cell, put 0. Otherwise put the right number.

"But Ismael, what if I mess up my input?? 😱" Don't worry! That's why we're checking row-by-row so that we can make sure that if you mess up the input, you can say you messed up and we redo the row πŸ˜ƒ

"But Ismael, isn't there a better way to get these inputs? πŸ€”" Tbh, yea 😞. Probably could enter the full row all in one go, but I wrote this quickly one night when I just finished a final (Fight On ✌). I had seen the Computerphile video and I was like "yo that's sick" and so I put it on my machine and pushed to my profile just in case I wanna use it later. Also it was late and I was very sleepy πŸ’€

Sit back and relax 😎

Legit, that's it πŸ‘Œ You did it πŸ† We will provide you with the answer to the given puzzle grid and if there is more than one solution, we'll give them all to you πŸ’ͺ free of charge πŸ’šπŸ’΅

About

Just a quick sudoku solver :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages