-
sudoku.py
- Main script invoked by the user. -
strategies.py
- Strategies used to reduce the search space of the solution.The implemented strategies are:
- Single Possibility Rule
- Only Choice Rule
- Naked Twins Elimination Rule
- Sub-Group Exclusion Rule
- Hidden Twins Elimination Rule
- Naked Triplets Elimination Rule
- Generalized version of "Hidden Twins Elimination" rule to eliminate singlets/twins/.../nounplets
- Generalization of "Naked Twins Elimination" rule to eliminate singlets/twins/.../nounplets
-
utils.py
- Helper functions for computation and visualization. -
puzzles.txt
- Sample input file for batch solving -
solutions.txt
- Sample output file after batch solving
- $
python sudoku.py --puzzle 2.............62....1....7...6..8...3...9...7...6..4...4....8....52............42
- $
python sudoku.py -f puzzles.txt
- $
python sudoku.py -m --puzzle 2.............62....1....7...6..8...3...9...7...6..4...4....8....52............42
- $
python sudoku.py --help