Skip to content

Following is the code of Sudoku Solver and Sudoku Generator written in Python using pysat library.

License

Notifications You must be signed in to change notification settings

mohitg20/Sudoku-Solver

Repository files navigation

Sudoku-Solver

Following is the code of Sudoku Solver and Sudoku Generator written in Python using the Pysat library.

1. Solver :

For solver run the following command

python main_solver.py

It will ask for input csv file. Provide name of csv in terminal. Eg. "abc.csv" (include extension)

Then provide either 1(True) / 0(False) for diagonal constraint

NOTE : csv file should be in test_cases folder

2. Generator :

For generator run the following command

python main_generator.py

It will ask for input parameter k(k>1). Provide one integer in terminal.

Then provide either 1(True) / 0(False) for diagonal constraint

Then it will generate a parially filled maximal sudoku and its corresponding filled sudoku.

About

Following is the code of Sudoku Solver and Sudoku Generator written in Python using pysat library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages