Skip to content

alexey-kozlenkov/sudoku-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sudoku-solver

This should be simple console Sudoku solver. In development now.

Implemented features:

  • Field pretty printing.
  • Checking for correctness.
  • Solving simple (when there is only 1 unknown cell in column, row or square) cells.

TODO:

  • Solving unobvious situations using tree-solution.
  • Examples

Dependencies:

  1. python3.5 required

Usage:

You should create your field 9x9 size with zeros instead of unknown elements. Then import sudoku class, create instance and set your field like this:

import Sudoku
sudoku = Sudoku()
field = [[....]]  # create your field here
sudoku.fill_field(field)

Solve your sudoku like this:

from solver import solve
solve(sudoku)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages