数独解算器
该项目的主要思想是构建Sudoku难题求解器。 解算器必须遵守所有标准的数独难题规则。
数独规则:
Sudoku puzzle is a 9-by-9 grid of squares, consisting of 9 Rows, 9 Columns and 9 Blocks.
1. Sudoku puzzle only uses numbers 1 to 9
2. Each Row and Column needs to consists of numbers from 1 to 9 with no duplicate values
3. Each Block (3x3) needs to have all 9 numbers
代码:
求解器包含3个主要功能:
1. find_next_empty
2. is_valid
3. solve_sudoku
Function