pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Sudoku solver program #116

Closed Swarn10 closed 4 years ago

Swarn10 commented 4 years ago

Feature ✅

Python sudoku solver

Description

A python program to solve a Sudoku board provided by the user as input. If the board is valid it solves the board and displays the final solution, else it raises an error message that the input was invalid.

Example

**Input :-** ![input](https://user-images.githubusercontent.com/54739905/95008708-dddbbc80-0639-11eb-94df-d6b3fc507c91.JPG) **Note :- The 0 s here refer to the empty cells in the board** **Output :-** ![output](https://user-images.githubusercontent.com/54739905/95008736-22675800-063a-11eb-81f0-7d02b199fd4d.JPG) **Note :- The empty cells have been filled up with the correct digits, indicated in red**
Swarn10 commented 4 years ago

@pratik-choudhari I want to contribute this to the repository. The programming language would be Python. Please assign it to me. Will be happy to help.

pratik-choudhari commented 4 years ago

@Swarn10 That's a great project. Place it under Projects

VamsiMudaliar commented 4 years ago

Can i write it in python Console application with backtracking ?

pratik-choudhari commented 4 years ago

@Swarn10 PR is a terminal based too

Swarn10 commented 4 years ago

@pratik-choudhari The program is supposed to be a terminal one only. I think I made a mistake by adding under the Projects directory. Should I add the program under the Python directory ?

pratik-choudhari commented 4 years ago

@Swarn10 no its fine

Swarn10 commented 4 years ago

@pratik-choudhari Let me clarify this that the program that I have added is just a normal Python program that solves the sudoku problem using backtracking. It is not like an application written in Python. So where should I add the program, under Python or Projects directory?

pratik-choudhari commented 4 years ago

Yes @Swarn10 I got it after seeing your PR. Put it under Projects add _cli to the project folder name, so one can distinguish between cli and gui

Swarn10 commented 4 years ago

@pratik-choudhari Ok. Sure. I got it.