Skip to content

sakshgupta/Sudoku-Auto-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Why solve Sudoku by hand, when you can write script to solve them for ya ?! 🤯


👨‍🎓 Introduction:

  • Sudoku is one of the most popular logic-based number-placement puzzle game. The literal meaning of "Su-doku" in Japanese is "the number that is single".

  • The objective is to fill a nine-by-nine (9x9) grid with digits so that each row, column and 3x3 section contain number between 1 and 9, with each number used once and only once in each section. The Sudoku game players are provided with partially filled grid meant to be solved.

  • To solve sudoku one doesn't require the knowledge of mathematics but require the logic and reasoning. Solving Sudoku Puzzles daily helps with your brain. It improves the concentration and logical thinking. One can look for sudoku puzzles given in Newspapers or can play them online provided by many websites.

👨‍🏫 About:

This Script is a Sudoku Solver that solves almost any Sudoku Puzzle by visualizing through the Backtracking Algorithm which is made using the Numpy Library in Python. Ever tried but stucked on Sudoku Puzzles given in a website. You can use this script not only to get its solution instantly but also to solve it for you using PyAutoGui Library in Python.

🚴‍♂️ Working:

  • Get a sudoku from sudoku.com (Its important you use this website only, it might not work in other sites)
  • Every time this Script is executed, it asks you to input the rows of the Sudoku(0 for gaps).
  • After entering the last row and just after pressing enter, you have to click on the first cell of the sudoku for the code to solve it.
  • Voilà! the whole sudoku will be solved within seconds.

📐 Requirements:

In order to run the Script, the require Python, numpy & pyautogui and you can install the requirements using:

pip install -r requirements.txt

👨‍💻 Execution:

  • Clone this repository using
https://github.com/Saksham20BCE10288/Sudoku-Auto-Solver.git

OR

Zip Download the Repository and Extract it's contents.

  • Now run the Main.py file directly in your Terminal using
python Main.py

OR

python3 Main.py

Made with ❤ by Saksham Gupta

About

A Sudoku Solver for online sudoku websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages