Skip to content

Design a Sudoku in python and its solution using Backtracking Algorithm

License

Notifications You must be signed in to change notification settings

ishpreet-singh/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to Play:

  1. Clone the project or download it as a zip on your system.
  2. Double click sudoku.py.
  3. Enjoy the game:)

Steps to change Level:

  1. By default the game will run in easy mode.
  2. To change the level to medium or hard open the sudoku.py file in any editor like Sublime Text.
  3. At line number 244 change 'easy.txt' to 'medium.txt' or 'hard.txt'
  4. Save the sudoku.py file.
  5. Double click sudoku.py and Enjoy!!!.

Steps to create your own Sudoku:

  1. Find any sudoku sequence online.
  2. create a text file and copy it line by line.
  3. If there is a blank in line then replace it with 0 else with specified digit(1-9).
  4. Make sure no extra space or enter character is used and file contains exactly 9 lines and each line having 9 digits all unique.
  5. Save the file with any name say my_own_level.txt

my_own_level.txt

000020000
054070000
800309057
300004070
009080400
020600008
780901006
000060920
000030000

  1. Repeat the steps mentioned in Steps to change level and enjoy.

About

Design a Sudoku in python and its solution using Backtracking Algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages