GithubHelp home page GithubHelp logo

dhhruv / sudoku-solver Goto Github PK

View Code? Open in Web Editor NEW
71.0 6.0 45.0 659 KB

๐ŸŽฏ This Python-based Sudoku Solver utilizes the PyGame Library and Backtracking Algorithm to visualize and solve Sudoku puzzles efficiently. With its intuitive interface, users can input and interact with the Sudoku board, allowing for a seamless solving experience.

License: MIT License

Python 100.00%
python pygame sudoku sudoku-solver sudoku-puzzle backtracking algorithm game games terminal

sudoku-solver's Introduction

Sudoku Solver: A Fun and Challenging Way to Exercise Your Brain!

  • Are you ready to put your logical thinking and reasoning skills to the test? Look no further than Sudoku Solver, the ultimate tool for solving Sudoku puzzles quickly and easily.

  • Sudoku is a popular number-placement puzzle game that requires players to fill a nine-by-nine grid with digits so that each row, column, and 3x3 section contains numbers between 1 and 9, with each number used once and only once in each section. It's a challenging game that helps improve concentration, memory, and cognitive abilities.

  • With Sudoku Solver, you don't have to spend hours solving puzzles by hand. Our powerful algorithm solves almost any Sudoku puzzle in seconds, allowing you to move on to more challenging puzzles quickly. Plus, our visualizer feature demonstrates how the backtracking algorithm works, so you can understand the logic behind each solution.

Features:

  • Generates a random, solvable Sudoku board every time the script is executed
  • Easy-to-use GUI for inputting and solving puzzles
  • Visualizer feature demonstrates how the backtracking algorithm works
  • Option to receive hints for tricky puzzles
  • Improves cognitive abilities, including concentration and logical thinking

How to Use:

To use Sudoku Solver, simply download the repository and run the SudokuGUI.py file. You'll be presented with a random Sudoku board and a GUI for inputting your solutions. Use the left-click to select the box you want to fill, then enter your value and confirm it by pressing the Enter key.

If you get stuck on a tricky puzzle, press the Spacebar key to solve the board using the backtracking algorithm. You can also receive hints by pressing the "h" key, which will display a random correct value on the board.

Input:

Keys Actions
Left Click Selects the Box to enter a value into that cell.
Enter Confirms the Value written on the board.
Backspace/Delete Deletes the value in that cell.
Space Solves the Board using the Algorithm.
h Gives a Hint. Displays a random correct value on the board.

Requirements:

To run Sudoku Solver, you'll need to have Python and PyGame installed on your system. You can install the necessary requirements using pip:

pip install -r requirements.txt

Execution:

  • Clone this repository using
git clone https://github.com/dhhruv/Sudoku-Solver.git

OR

  • Zip Download the Repository and Extract it's contents.
  • Now run the SudokuGUI file directly in your Terminal using
python SudokuGUI.py

OR

python3 SudokuGUI.py

Conclusion:

If you're a fan of Sudoku puzzles, Sudoku Solver is the perfect tool to help you solve them quickly and easily. With its powerful algorithm and easy-to-use GUI, you'll be solving puzzles in no time. Plus, Sudoku is a great way to exercise your brain and improve your cognitive abilities, making it a fun and challenging game for people of all ages. So what are you waiting for? Download Sudoku Solver today and start playing!

Made with โค by Dhruv Panchal

sudoku-solver's People

Contributors

dhhruv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sudoku-solver's Issues

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.