board

Class for Sudoku board. Implements import and export, rendering and solving of a Sudoku puzzle

source

Solution

 Solution (*values)

Result of puzzle solution by solver


source

Board

 Board (initial_cells)

Initializes the board given the initial cell state

Details
initial_cells initial cell state

source

Board.show

 Board.show (with_candidates=True)

Gives a textual representation of the actual state of the board

Type Default Details
with_candidates bool True also shows candidate values for cells

source

Board.solve

 Board.solve (use_brute_force=False, print_log=False, print_results=True,
              check_many_solutions=False)

Tries to solve the board given its current state

Type Default Details
use_brute_force bool False if methods based on logic fail, solve the puzzle traying all values for the remaining cells
print_log bool False print logs
print_results bool True print final board
check_many_solutions bool False do not stop after first solution; if more than one solution exist, report it
Returns Solution